GNOME Bugzilla – Bug 661318
glib/tests/private uses pthread without appropriate compiler/linker flags
Last modified: 2011-10-10 15:12:06 UTC
dd09a95543 introduced some pthread calls in glib/tests/private.c, /bin/bash ../../libtool --tag=CC --mode=link gcc -g3 -O0 -Wall -L/scratch/jhbuild/lib64 -L/scratch/jhbuild/lib64 -o private private.o ../../glib/libglib-2.0.la libtool: link: gcc -g3 -O0 -Wall -o .libs/private private.o -L/scratch/jhbuild/lib64 ../../glib/.libs/libglib-2.0.so -Wl,-rpath -Wl,/scratch/jhbuild//lib64 private.c:147: error: undefined reference to 'pthread_create' private.c:148: error: undefined reference to 'pthread_join' collect2: ld returned 1 exit status
The following fix has been pushed: 2c1cbde Compile private test with -pthread on UNIX
Created attachment 198718 [details] [review] Compile private test with -pthread on UNIX We are using explicit pthread calls here, so we should use the right linker flags for that.