compile glibc 2.2.93 with gcc 3.2.2 problem

Le, Van VAN.HOA.LE at
Thu Feb 19 10:43:19 PST 2004


I am sorry if this is not a right group to ask this kind of question. I that
is the case, please send me packing elsewhere.

I have problems compiling some old package that was compiled fine under
gcc-2.9.6 (RH7.3). Recently, I upgraded my box to RH9.0 with gcc 3.2.2-5 and
can't compile those package any more. Here are the errors I got:

/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
elf-init.oS(.text+0xb): undefined reference to `__init_array_end'
elf-init.oS(.text+0x10): undefined reference to `__init_array_start'
elf-init.oS(.text+0x23): undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_fini':
elf-init.oS(.text+0x36): undefined reference to `__fini_array_end'
elf-init.oS(.text+0x3b): undefined reference to `__fini_array_start'
elf-init.oS(.text+0x57): undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make: *** [obj.i686-linux/viz] Error 1

After poking around, I have come to conclusion that I need to downgrade my
glibc to 2.2.93. Am I right on this?

Compiling glibc-2.2.93-5 (I got the source from RH ftp site) also failed.
The setting I use was: gcc-3.3.3-5, glibc-2.2.93-5. Here is what happened:
  % export CFLAGS="-s -Os -fomit-frame-pointer -Wall -march=i686
  % ./configure --enable-add-ons --prefix=/usr/i686-glibc-2.2.93/
  % make

I did not get the add-ons since I thought that they were included in the
source, should I?

Any words of wisdom please share. 

Best regards,

More information about the lfs-support mailing list