[uClibc] pthread probs with 0.9.25

Manuel Novoa III mjn3 at codepoet.org
Sat Jan 3 22:48:36 UTC 2004


Hello,

On Sat, Jan 03, 2004 at 12:34:47PM -0500, Rob McMullen wrote:
> Erik,
> 
> Using 0.9.25, I persuaded X to build by adding -lpthread globally to
> the EXTRA_LIBRARIES in its configuration, but compiling anything that
> depends on -lX11 now is missing the definitions for pthreads.
> Configure, for example, fails:
> 
> configure:5412: gcc -o conftest -march=pentium-mmx -O3 -pipe -fomit-frame-pointer     -Wall  -I/usr/X11R6/include     -L/usr/X11R6/lib conftest.c -lX11    1>&5
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_signal'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_equal'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_broadcast'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_init'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_unlock'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_self'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_destroy'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_lock'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_wait'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_destroy'
> /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_init'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 5401 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char XOpenDisplay();
> 
> int main() {
> XOpenDisplay()
> ; return 0; }
> 
> 
> Any clues?  0.9.24 didn't require any -lpthread fudging.  Is it
> something in uClibc itself, or some automatically searched-for library
> that could be added to the gcc toolchain somehow?

My fault I'm afraid.  I wasn't thinking and did something dumb.
Testing a fix now.  Should be in cvs later today.

Manuel



More information about the uClibc mailing list