Bug 218912

Summary: Compiling with gcc296.
Product: Red Hat Enterprise Linux 3 Reporter: Andrew <ppavliks>
Component: compat-gcc-296Assignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-08 19:47:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
all output after make command none

Description Andrew 2006-12-08 10:06:05 UTC
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?

Comment 1 Andrew 2006-12-08 10:06:05 UTC
Created attachment 143138 [details]
all output after make command

Comment 2 Jakub Jelinek 2006-12-08 19:47:12 UTC
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).