glibc-2.2.4 link error (glibc-2.2.4 uses libgcc.so twice (?) ... conflicts)

David Lamparter (LFS 822) david.lamparter at t-online.de
Mon Oct 29 06:41:45 PST 2001


Hi,

when trying to compile glibc-2.2.4 on my chrooted system (base system is
SuSE/7.1, Kernel 2.4.13, AMD Athlon 1100 MHz, VMware Emulation), I get this
errors:

(...)
make  -C locale others
make[1]: Entering directory `/usr/src/packages/glibc-2.2.4/locale'
gcc   -shared -Wl,-O1  -Wl,-dynamic-linker=/usr/local/lib/ld-linux.so.2  -B.
./csu/  -Wl,--version-script=../libBrokenLocale.map -Wl,-soname=libBrokenLoc
ale.so.1   -L.. -L../math -L../elf -L../dlfcn -L../nss -L../nis -L../rt -L..
/resolv -L../crypt -L../linuxthreads -Wl,-rpath-link=..:../math:../elf:../dl
fcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads -o
libBrokenLocale.so.new ../csu/abi-note.o -Wl,--verbose  2>&1 | sed -e
'/^=========/,/^=========/!d;/^=========/d' -e 's/^.*\.hash[  ]*:.*$/
.note.ABI-tag : { *(.note.ABI-tag) } &/' > libBrokenLocale.so.lds
rm -f libBrokenLocale.so.new
gcc   -shared -Wl,-O1  -Wl,-dynamic-linker=/usr/local/lib/ld-linux.so.2  -B.
./csu/  -Wl,--version-script=../libBrokenLocale.map -Wl,-soname=libBrokenLoc
ale.so.1   -L.. -L../math -L../elf -L../dlfcn -L../nss -L../nis -L../rt -L..
/resolv -L../crypt -L../linuxthreads -Wl,-rpath-link=..:../math:../elf:../dl
fcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads -o
libBrokenLocale.so -T libBrokenLocale.so.lds
../csu/abi-note.o -Wl,--whole-archive libBrokenLocale_pic.a
../elf/interp.os ../libc.so ../libc_nonshared.a
/scsidisk/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a(__dummy.o)
: In function `__dummy':
/scsidisk/usr/src/packages/gcc-2.95.3/gcc/./libgcc2.c(.text+0x0): multiple
definition of `__dummy'
/scsidisk/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a(__dummy.o)
(.text+0x0):/scsidisk/usr/src/packages/gcc-2.95.3/gcc/./libgcc2.c: first
defined here

(... the 3 lines above repeat for different functions)

It looks like glibc is including libgcc.a twice, but I don't know why it
does this and how to solve this problem.

Thanks for help,


David Lamparter ( david.lamparter at t-online.de / LFS 822 )

_________________________
Note: there may be spelling and grammatical errors ... please excuse them,
I'm living in germany


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list