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 667412 - build: Correctly link to gthread
build: Correctly link to gthread
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
unspecified
Other All
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2012-01-06 14:25 UTC by Vincent Untz
Modified: 2012-02-22 00:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Correctly link to gthread (1.22 KB, patch)
2012-01-06 14:25 UTC, Vincent Untz
none Details | Review

Description Vincent Untz 2012-01-06 14:25:40 UTC
Due to changes in pkg-config files in recent versions of glib/gtk+, gthread-2.0 is not brought in through pkg-config anymore. And it turns out that the way it's included in the build system for gparted is wrong. This results in:

/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: Dialog_Progress.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation

Here's a patch to fix this.
Comment 1 Vincent Untz 2012-01-06 14:25:42 UTC
Created attachment 204751 [details] [review]
build: Correctly link to gthread
Comment 2 Curtis Gedak 2012-01-06 20:07:49 UTC
Thank you Vincent for discovering this problem and especially for providing a patch.

I have tested your patch successfully on Ubuntu 10.04, 11.04, Fedora 13, and 16 (GParted configures, compiles, and runs).

Your patch has been applied to the GNOME git repository for inclusion in the next release of GParted.

The relevant git commit can be viewed at the following link:
http://git.gnome.org/browse/gparted/commit/?id=e52384b258c29c83d972a977b86df036ae548cce
Comment 3 Curtis Gedak 2012-02-22 00:45:42 UTC
This enhancement has been included in GParted 0.12.0 released on February, 21, 2012.