Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424505 - media-gfx/rawstudio-1.2 and 2.0 - application.o: In function `main': application.c:(.text+0x14f7): undefined reference to `g_thread_init'
Summary: media-gfx/rawstudio-1.2 and 2.0 - application.o: In function `main': applicat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 427578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-02 14:49 UTC by Andreas Prieß
Modified: 2012-08-12 13:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =media-gfx/rawstudio-2.0 (emerge-info-rawstudio-2.0.txt,17.27 KB, text/plain)
2012-07-02 14:51 UTC, Andreas Prieß
Details
complete build log (media-gfx:rawstudio-2.0:20120702-143349.log,341.03 KB, text/plain)
2012-07-02 14:52 UTC, Andreas Prieß
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Prieß 2012-07-02 14:49:30 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -fno-strict-aliasing -DWITH_GCONF -Wall -march=athlon64 -O2 -fomit-frame-pointer -pipe -Wl,-O1 -o .libs/rawstudio application.o rs-actions.o gtk-helper.o gtk-interface.o rs-save-dialog.o gtk-progress.o rs-camera-db.o rs-cache.o rs-batch.o rs-toolbox.o rs-navigator.o rs-photo.o rs-tiff.o filename.o rs-store.o rs-preview-widget.o rs-loupe.o rs-histogram.o eog-pixbuf-cell-renderer.o rs-pixbuf.o rs-external-editor.o rs-dir-selector.o rs-tag-gui.o rs-tethered-shooting.o -pthread  -Wl,--as-needed ../librawstudio/.libs/librawstudio-2.0.so -L/usr/lib64/ -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib64/libfontconfig.so -lfreetype -lz -lbz2 -lexpat -lgobject-2.0 -lgmodule-2.0 -lgconf-2 -llcms -ldbus-1 -lpthread -lrt -lexiv2 /usr/lib64/libfftw3f.so -llensfun -lglib-2.0 -lflickcurl -lxml2 -lcurl -lsqlite3 -lssl /usr/lib64/libgphoto2.so /usr/lib64/libgphoto2_port.so -lm -lexif -lX11 -ljpeg -ltiff -pthread
application.o: In function `main':
application.c:(.text+0x14f7): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status
make[2]: *** [rawstudio] Error 1


Reproducible: Always




# emerge -pqv =media-gfx/rawstudio-2.0
[ebuild     U ] media-gfx/rawstudio-2.0 [1.2]
Comment 1 Andreas Prieß 2012-07-02 14:51:47 UTC
Created attachment 316975 [details]
emerge --info =media-gfx/rawstudio-2.0
Comment 2 Andreas Prieß 2012-07-02 14:52:35 UTC
Created attachment 316977 [details]
complete build log
Comment 3 Andreas Prieß 2012-07-02 15:11:43 UTC
Same problem with rawstudio-1.2:

x86_64-pc-linux-gnu-g++ -Wall -fno-strict-aliasing -O4 -DWITH_GCONF -DDCRAW_NOMAIN -DDCRAW_NOLCMS -DWITH_MMAP_HACK -march=athlon64 -O2 -fomit-frame-pointer -pipe  -Wl,-O1 -Wl,--as-needed -o rawstudio rawstudio.o rs-filetypes.o rs-settings.o rs-utils.o rs-job.o rs-actions.o rs-math.o rs-preload.o gtk-helper.o gtk-interface.o gtk-save-dialog.o gtk-progress.o conf_interface.o adobe-coeff.o rs-cms.o rs-cache.o rs-batch.o toolbox.o rawfile.o mmap-hack.o tiff-meta.o ciff-meta.o mrw-meta.o x3f-meta.o raf-meta.o rs-image.o rs-photo.o dcraw_api.o dcraw.o rs-jpeg.o rs-tiff.o arch-generic.o arch-x86.o filename.o rs-spline.o rs-store.o rs-color-transform.o rs-preview-widget.o rs-histogram.o eog-pixbuf-cell-renderer.o rs-curve.o rs-pixbuf.o rs-external-editor.o rs-dir-selector.o rs-metadata.o rs-exif.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgconf-2 -lglib-2.0 -llcms -ldbus-1 -lpthread -lrt -lexiv2   -ljpeg -ltiff
rawstudio.o: In function `main':
rawstudio.c:(.text+0x11ae): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status
make[2]: *** [rawstudio] Error 1


The already installed version 1.2 is still working but now fails to compile in emerge --emptytree world.
Comment 4 Andreas Prieß 2012-07-02 15:16:40 UTC
This may or may not be relevant: I use the unstable version of glib on a stable system to get rid of a lightdm problem that is resolved by this upgrade of glib.

[ebuild   R   ~] dev-libs/glib-2.32.3

An emerge --emptytree world had no errors but this one with rawstudio.
Comment 5 Rafał Mużyło 2012-07-02 17:17:34 UTC
Well, for glib 2.32, g_thread_init, while still available, is redundant - threads are always initialized.

So the fix should go along the line of:
#if !GLIB_CHECK_VERSION(2, 32, 0)
...g_thread_init...
#endif
Comment 6 j.echter 2012-08-12 09:33:25 UTC
Hi, 

i encountered the same problem today in the stable tree.

1.2 and 2.0 did not compile.

There was an glibc (2.15-r2 stable) update before.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-08-12 09:57:23 UTC
So, what does `ld --version` show? I suppose you are using the 'GNU gold' linker instead of the default to hit this...
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-08-12 10:02:27 UTC
+  12 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> rawstudio-2.0.ebuild,
+  +files/rawstudio-2.0-g_thread_init.patch:
+  Link to -lgthread-2.0 for symbol g_thread_init wrt #424505 by Andreas Prieß

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/rawstudio/files/rawstudio-2.0-g_thread_init.patch?rev=1.1&content-type=text/plain

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/rawstudio/rawstudio-2.0.ebuild?r1=1.2&r2=1.3
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-08-12 10:03:42 UTC
*** Bug 427578 has been marked as a duplicate of this bug. ***
Comment 10 j.echter 2012-08-12 12:45:41 UTC
(In reply to comment #7)
> So, what does `ld --version` show? I suppose you are using the 'GNU gold'
> linker instead of the default to hit this...

ld --version
GNU ld (GNU Binutils) 2.22
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-08-12 13:03:15 UTC
(In reply to comment #10)
> (In reply to comment #7)
> > So, what does `ld --version` show? I suppose you are using the 'GNU gold'
> > linker instead of the default to hit this...
> 
> ld --version
> GNU ld (GNU Binutils) 2.22

OK, then it's just one of the reverse dependency that's built differently on your machine in a way that Libs: or Requires: doesn't have -lgobject-2.0 in it's pkg-config file

Aaanyway, this is fixed now and the fixed version is going stable in bug 431060