On 28/11/2011 18.43, Johannes Stezenbach wrote: > Hi, > > I'm in the process of building a toolchain with crosstool-ng, > with uClibc-0.9.32 + NPTL for ARM926EJ-S. > > Trying to statically link a simple testcase with NPTL fails: > > $ cat t.c > #include <pthread.h> > > int main(int argc, char *argv[]) > { > return (int)pthread_create; > } > $ arm-linux-gcc -Wall -Os t.c -lpthread -static -Wl,-Map=m > /tmp/tc/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(sigaction.o): > In function `__libc_sigaction': > sigaction.c:(.text+0x0): multiple definition of `__libc_sigaction' > /tmp/tc/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(pt-sigaction.o):pt-sigaction.c:(.text+0x0): > first defined here > /tmp/tc/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(sigaction.o): > In function `sigaction': > sigaction.c:(.text+0x78): multiple definition of `__sigaction' > /tmp/tc/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(pt-sigaction.o):pt-sigaction.c:(.text+0xa0): > first defined here > collect2: ld returned 1 exit status > > > (Well, actually there were more duplicates e.g. to __aeabi_unwind_cpp_pr0 > but I've started to poke the subject with a stick to find out what's up ;-), > but see also > https://bugs.busybox.net/show_bug.cgi?id=4117 > More on that later.) >
Yes that's true. I have a cleaner fix somewhere where I've include an unique implementation into uclibc_shared.a. I-ll try to rebase it soon. Carmelo _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc