Linux compiler problem

Linux compiler problem.

Symptom

When compiling the C and C++ samples on a 64-bit Linux® operating system, the samples might fail to build with one of the following errors:

[root@myhost]# make -f samp.mak
Creating Basic ECI C Sample
cc -c -g -DCICS_LNX -m32 -I../../../include -I../../include 
-I..  ecib1.c
In file included from /usr/include/features.h:385,
                 from /usr/include/stdio.h:28,
                 from ecib1.c:39:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such 
file or directory
make[1]: *** [ecib1] Error 1
make[1]: Leaving directory `/opt/ibm/cicstg/samples/c/eci'
[root@myhost]# make -f samp.mak
Creating Basic ECI C++ Sample
c++ -c -g -DCICS_LNX -m32 -I../../include -I../../../include 
ecib1.cpp
In file included from /usr/include/features.h:385,
                 from /usr/include/string.h:27,
                 from ecib1.cpp:39:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such 
file or directory
make[1]: *** [ecib1] Error 1
make[1]: Leaving directory `/opt/ibm/cicstg/samples/cpp/eci'
[root@myhost]# make -f samp.mak
Creating Basic ECI C++ Sample
c++ -c -g -DCICS_LNX -m32 -I../../include -I../../../include 
ecib1.cpp
c++  -o ecib1 ecib1.o -L../../../lib -m32 -lpthread -lc -lcclcp
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/libstdc++.so 
when searching for -lstdc++
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/libstdc++.a 
when searching for -lstdc++
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/libstdc++.so 
when searching for -lstdc++
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/libstdc++.a 
when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[1]: *** [ecib1] Error 1
make[1]: Leaving directory `/opt/ibm/cicstg/samples/cpp/eci'

Probable cause

The 32-bit glibc-devel package is not installed on the machine.

Action

Install the 32-bit glibc-devel and libstdc++ Linux packages for your distribution; the applications should now compile successfully.