Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417665 - sys-power/upower-0.9.16 build fails in introspection code
Summary: sys-power/upower-0.9.16 build fails in introspection code
Status: RESOLVED DUPLICATE of bug 417659
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-26 16:23 UTC by Andreas K. Hüttel
Modified: 2012-05-27 15:24 UTC (History)
0 users

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


Attachments
build log (upower-0.9.16:20120526-160709.log,13.84 KB, text/plain)
2012-05-26 16:23 UTC, Andreas K. Hüttel
Details
emerge --info (emerge-info.txt,16.06 KB, text/plain)
2012-05-26 16:24 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2012-05-26 16:23:34 UTC
Created attachment 313153 [details]
build log

GISCAN UPowerGlib-1.0.gir
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.o: in function main:/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.c:457: error: undefined reference to 'g_module_open'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.o: in function main:/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.c:86: error: undefined reference to 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.o: in function main:/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.c:111: error: undefined reference to 'g_module_symbol'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.o: in function main:/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.c:460: error: undefined reference to 'g_module_error'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0', '-export-dynamic', '-march=native', '-O2', '-pipe', '-ggdb', '-L.', 'libupower-glib.la', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib/tmp-introspectd1R03d/UPowerGlib-1.0.o']' returned non-zero exit status 1
make[2]: *** [UPowerGlib-1.0.gir] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16/libupower-glib'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/sys-power/upower-0.9.16/work/upower-0.9.16'
make: *** [all] Fehler 2
 * ERROR: sys-power/upower-0.9.16 failed (compile phase):
 *   emake failed
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-05-26 16:24:18 UTC
Created attachment 313155 [details]
emerge --info
Comment 2 Rafał Mużyło 2012-05-26 17:34:27 UTC
Most likely dupe of bug 417659.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2012-05-27 13:58:15 UTC
Problem goes away after updating gobject-introspection to 1.32.1.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-05-27 15:21:41 UTC
(In reply to comment #3)
> Problem goes away after updating gobject-introspection to 1.32.1.

Yet it works with older gobject-introspection, and upower-0.9.16 is current stable.

My best bet is that something was out of sync in your system, glib-2.32 and too old gobject-introspection, perhaps? Nothing specific to upower's ebuild then...
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-05-27 15:24:53 UTC
glib's ebuild even has:

pkg_preinst() {
	# Only give the introspection message if:
	# * The user has gobject-introspection
	# * Has glib already installed
	# * Previous version was different from new version
	if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then
		ewarn "You must rebuild gobject-introspection so that the installed"
		ewarn "typelibs and girs are regenerated for the new APIs in glib"
	fi
}

So supposedly a rebuild of the current gobject-introspection might have helped too, not sure...

*** This bug has been marked as a duplicate of bug 417659 ***