GNOME Bugzilla – Bug 667412
build: Correctly link to gthread
Last modified: 2012-02-22 00:45:42 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.
Created attachment 204751 [details] [review] build: Correctly link to gthread
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
This enhancement has been included in GParted 0.12.0 released on February, 21, 2012.