static link with NPTL on ARM fails

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Mon Nov 28 21:51:04 UTC 2011


On Nov 28, 2011 6:43 PM, "Johannes Stezenbach" <js at sig21.net> 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

Can you reproduce this with current master?
Thanks,


More information about the uClibc mailing list