Summary: | media-gfx/rawstudio-1.2 and 2.0 - application.o: In function `main': application.c:(.text+0x14f7): undefined reference to `g_thread_init' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Prieß <ap> |
Component: | Current packages | Assignee: | Gentoo Graphics Project <graphics+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alastairmurray, flameeyes, j.echter |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info =media-gfx/rawstudio-2.0
complete build log |
Description
Andreas Prieß
2012-07-02 14:49:30 UTC
Created attachment 316975 [details]
emerge --info =media-gfx/rawstudio-2.0
Created attachment 316977 [details]
complete build log
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. 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. 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 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. So, what does `ld --version` show? I suppose you are using the 'GNU gold' linker instead of the default to hit this... + 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 *** Bug 427578 has been marked as a duplicate of this bug. *** (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 (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 |