After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661318 - glib/tests/private uses pthread without appropriate compiler/linker flags
glib/tests/private uses pthread without appropriate compiler/linker flags
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-10-09 13:42 UTC by Frederic Peters
Modified: 2011-10-10 15:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Compile private test with -pthread on UNIX (1.11 KB, patch)
2011-10-10 15:12 UTC, Matthias Clasen
committed Details | Review

Description Frederic Peters 2011-10-09 13:42:04 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
Comment 1 Matthias Clasen 2011-10-10 15:11:53 UTC
The following fix has been pushed:
2c1cbde Compile private test with -pthread on UNIX
Comment 2 Matthias Clasen 2011-10-10 15:12:04 UTC
The following fix has been pushed:
2c1cbde Compile private test with -pthread on UNIX
Comment 3 Matthias Clasen 2011-10-10 15:12:06 UTC
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.