Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467528 - =x11-libs/gtk+-3.2.4-r1 with =sys-devel/binutils-2.23.2 - undefined reference to symbol 'g_module_symbol'
Summary: =x11-libs/gtk+-3.2.4-r1 with =sys-devel/binutils-2.23.2 - undefined reference...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Keywords: PATCH
Depends on:
Blocks: underlinking
  Show dependency tree
Reported: 2013-04-27 17:54 UTC by Ted Tanberry
Modified: 2013-05-01 01:20 UTC (History)
0 users

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

gtk+-3.2.4-cups-1.6.patch (gtk+-3.2.4-cups-1.6.patch,35.36 KB, patch)
2013-04-27 17:55 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ted Tanberry 2013-04-27 17:54:02 UTC
With sys-devel/binutils-2.23.2 x11-libs/gtk+-3.2.4-r1 fails to link:

 CCLD   gtk-query-immodules-3.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: queryimmodules.o: undefined reference to symbol 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib64/ so try adding it to the linker command line
/usr/lib64/ could not read symbols: Invalid operation

I've fixed this underlinking issue.

Reproducible: Always

Furthermore, and in the same go, I've fixed an (unrelated) cups-1.6 issue with the same ebuild. This is a known issue and has been adressed in gtk+-3.3 ( The patches all apply with some minor offsets. I've combined all of these and included the patch as well.
Comment 1 Ted Tanberry 2013-04-27 17:54:44 UTC
diff -u /usr/portage/x11-libs/gtk+/gtk+-3.2.4-r1.ebuild /usr/local/portage/x11-libs/gtk+/gtk+-3.2.4-r1.ebuild
--- /usr/portage/x11-libs/gtk+/gtk+-3.2.4-r1.ebuild	2012-12-06 07:31:33.000000000 +0100
+++ /usr/local/portage/x11-libs/gtk+/gtk+-3.2.4-r1.ebuild	2013-04-27 19:18:54.800350946 +0200
@@ -88,6 +88,15 @@
 	replace-flags -O3 -O2
+	# patch for cups 1.6
+	# see
+	if ( use cups ) && ( has_version '>=net-print/cups-1.6.0' ); then
+		epatch "${FILESDIR}/${P}-cups-1.6.patch" || die
+	fi
+	# underlinking patch
+	sed -i 's/gtk_query_immodules_3_0_LDADD = $(LDADDS)/gtk_query_immodules_3_0_LDADD = $(LDADDS) $(GLIB_LIBS)/g' gtk/ || die 
 	epatch "${FILESDIR}/${PN}-3.2.4-fallback-theme.patch"
Comment 2 Ted Tanberry 2013-04-27 17:55:27 UTC
Created attachment 346722 [details, diff]
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-01 01:20:42 UTC
Please use gtk+-3.4.4.

The gtk+-3.2.x series is obsolete and will soon be removed from portage.