Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497192 - games-board/gtkboard-0.11_pre0 - ld: ui.o: undefined reference to symbol 'g_module_error'
Summary: games-board/gtkboard-0.11_pre0 - ld: ui.o: undefined reference to symbol 'g_m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-01-06 00:38 UTC by Nico Baggus
Modified: 2014-05-24 17:59 UTC (History)
0 users

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


Attachments
gtkboard-0.11_pre0-underlinking.patch (gtkboard-0.11_pre0-underlinking.patch,481 bytes, patch)
2014-01-29 00:18 UTC, Ted Tanberry
Details | Diff
gtkboard-0.11_pre0-underlinking.patch (gtkboard-0.11_pre0-underlinking.patch,525 bytes, patch)
2014-01-29 10:26 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Baggus 2014-01-06 00:38:06 UTC
It complains about missing symbols found in unmention libraries.

with LDFLAGS="-lgmodule-2.0 -lm" it does compile & link.

Reproducible: Always

Steps to Reproduce:
1. LDFLAGS="-lgmodule-2.0 -lm" emerge gtkboard 
2.
3.
Actual Results:  
Does compile, without the LDFLAGS is doesn't on a fresh installed stage3
Comment 1 Ted Tanberry 2014-01-29 00:17:45 UTC
--- gtkboard-0.11_pre0.ebuild	2013-06-29 19:01:17.000000000 +0200
+++ gtkboard-0.11_pre0.ebuild	2014-01-29 00:17:26.856796226 +0100
@@ -3,7 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/games-board/gtkboard/gtkboard-0.11_pre0.ebuild,v 1.19 2013/06/29 16:39:05 mr_bones_ Exp $
 
 EAPI=5
-inherit eutils games
+inherit eutils games autotools
 
 MY_P=${P/_}
 DESCRIPTION="Board games system"
@@ -27,8 +27,17 @@
 PATCHES=(
 	"${FILESDIR}"/${P}-gcc41.patch
 	"${FILESDIR}"/${P}-gcc45.patch
+	"${FILESDIR}"/${P}-underlinking.patch
 )
 
+src_prepare() {
+	for x in "${PATCHES[@]}"; do
+		epatch "${x}"
+	done
+
+	eautoreconf
+}
+
 src_configure() {
 	egamesconf \
 		--disable-dependency-tracking \
Comment 2 Ted Tanberry 2014-01-29 00:18:16 UTC
Created attachment 369018 [details, diff]
gtkboard-0.11_pre0-underlinking.patch
Comment 3 Ted Tanberry 2014-01-29 00:19:12 UTC
My patch adds checks for libgmodule and whether -lm is necessary.
Comment 4 Ted Tanberry 2014-01-29 10:26:07 UTC
Created attachment 369042 [details, diff]
gtkboard-0.11_pre0-underlinking.patch

Check for cos with -lm was slightly awkward, changed it to AC_SEARCH_LIBS now.
Comment 5 Tupone Alfredo gentoo-dev 2014-05-24 17:59:50 UTC
Fixed. Thanks for report