symbol clashes in libpthread.a and libc.a

Cheung Yik Pang yp.cheung at pithk.com
Mon Feb 6 10:47:35 UTC 2006


Hi list,

     I have just updated my toolchain from gcc 3.4.3, uclibc 0.9.26 to gcc
3.4.5, uclibc snapshot 20060121 under an armnommu platform.  The
binutils version is 2.15.90.0.1.1.  The reason that I updated was
that I needed to use vfork and pthread at the same time in my
application.  And uClibc 0.9.26 failed with "undefined reference to
`__libc_vfork'".

     I wrote a small program test.c (attached) to see if the new toolchain
could handle the linking properly.

     The result was a whole lot of symbol clashes with libpthread.a and
libc.a.  Please see the attachment.

     I have also built a toolchain with gcc 3.4.5 and uclibc 0.9.26.  It
gave the same "undefined reference" error as the gcc 3.4.3 toolchain.
 So I think the problem is in uclibc.

     The .config file of my uClibc settings is attached and my gcc config is:

arm-elf-gcc -v
Reading specs from
/root/pang/pmp_8620l/armutils_2.5.91.0/custom_toolchain.uclibc-cvs.nolocale/arm-uclinux-tools/lib/gcc/arm-uclinux-elf/3.4.5/specs
Configured with:
/root/pang/pmp_8620l/armutils_2.5.91.0/custom_toolchain.uclibc-cvs.nolocale/gcc-3.4.5/configure
--target=arm-uclinux-elf
--prefix=/root/pang/pmp_8620l/armutils_2.5.91.0/custom_toolchain.uclibc-cvs.nolocale/arm-uclinux-tools
--enable-languages=c,c++ --enable-multilib --enable-target-optspace
--with-gnu-ld --disable-__cxa_atexit --enable-cstdio=stdio
--disable-clocale --disable-nls --disable-checking --enable-threads=posix
--disable-libstdcxx-pch --enable-cxx-flags=-D_ISOC99_SOURCE -D_BSD_SOURCE
-D_LIBC -D_GNU_SOURCE --with-float=soft --disable-shared --enable-c99
--enable-c-mbchar
Thread model: posix
gcc version 3.4.5

     Could anyone shed some light on this problem please?? Thank you very
much.

-Cheung
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: application/octet-stream
Size: 983 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060206/e75f6ae1/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbolclash.log
Type: application/octet-stream
Size: 6546 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060206/e75f6ae1/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.28-svn-arm.config
Type: application/octet-stream
Size: 4283 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060206/e75f6ae1/attachment-0002.obj 


More information about the uClibc mailing list