low-tech:
Error:
64bit compiled 32bit program, encountered a problem
# gcc test.c -m32 -o test
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
32 installed glibclibraries and header files
#yum install glibc-devel.i686
# gcc test.c -m32 -o test
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
Installed gcc libraries
#yum install libgcc.i686
# gcc test.c -m32 -o test
#
ok!