I have install RHEL3 up 7 with all RPMs. I have application which have to be compiled with a help of compat-glibc RPM. I define LDFLAGS=-I/usr/lib/i386-redhat-linux7/include -L/usr/lib/i386-redhat-linux7/lib I relink /usr/bin/gcc to /usr/bin/gcc296 and tried to compile this application. I've get an error: ========================= /usr/lib/gcc-lib/i386-redhat-linux7/2.96/../../../crt1.o(.text+0xc): In function `_start': : undefined reference to `__libc_csu_fini' /usr/lib/gcc-lib/i386-redhat-linux7/2.96/../../../crt1.o(.text+0x11): In function `_start': : undefined reference to `__libc_csu_init' /app/oracle/product/8.0.5//lib/libclntsh.so: undefined reference to `sys_nerr' /app/oracle/product/8.0.5//lib/libclntsh.so: undefined reference to `sys_errlist' ========================= As I understand right the problem with linking of /usr/lib/libc.a or /usr/lib/libc_nonshared.a. I've attached main part of log. Could you help me?
Created attachment 143138 [details] all output after make command
The first 2 errors are because -B/usr/lib/i386-redhat-linux7/lib/ wasn't passed to the compiler driver, so that it picks up glibc-2.2.4 crtfiles (crt*.o) as opposed to glibc 2.3.2. The second two errors just show that you can't link against compat-glibc if any of the libraries have been linked against a newer glibc. So, either you compile/link /app/oracle/product/8.0.5//lib/libclntsh.so against compat-glibc and then you can compile/link your program against compat-glibc too (note, -I/usr/lib/i386-redhat-linux7/include/ in LDFLAGS is wrong, you need that in CFLAGS, so that all sources are using compat-glibc headers).