[PATCH] __libc_multiple_threads declaration should move back?

Austin Foxley austinf at cetoncorp.com
Wed Mar 11 02:33:52 UTC 2009


Hello, this is my first post here.

I just got the latest uClibc working with linuxthreads on sparc32 (Hooray!) In the process ran into a few issues. The 
first seems simple enough. The declaration of __libc_multiple_threads is currently at the top of 
libpthread/linuxthreads/libc-cancellation.c and declared extern in internals.h. I was getting an undefined reference to 
it so I moved it to libc_pthread_init.c where it is actually used. This is where it was in linuxthreads.old. I don't 
know why it doesn't show up since both of the object files end up in the same place. Maybe someone else knows why? Could 
it be that I'm linking to the static libc/libpthread? This is with gcc-4.3.2.

Patch attached.

Austin Foxley - Ceton Corporation - http://cetoncorp.com/



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uClibc-__libc_multiple_threads_move.patch
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090310/ec470f2e/attachment.diff>


More information about the uClibc mailing list