Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379077 - dev-libs/dbus-glib-0.92 build fails because of underlinking
Summary: dev-libs/dbus-glib-0.92 build fails because of underlinking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2011-08-13 15:50 UTC by Andreas K. Hüttel
Modified: 2012-03-02 01:00 UTC (History)
2 users (show)

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


Attachments
compressed build log (dbus-glib-0.92:20110813-072055.log.gz,5.78 KB, application/x-gzip)
2011-08-13 15:50 UTC, Andreas K. Hüttel
Details
emerge --info (emerge-info.txt,18.10 KB, text/plain)
2011-08-13 15:52 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 2011-08-13 15:50:09 UTC
Created attachment 283191 [details]
compressed build log

Build fails with gcc-4.5.2 and forced --as-needed --no-add-needed, log is attached
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-08-13 15:52:07 UTC
Created attachment 283193 [details]
emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-03-02 01:00:06 UTC
<cut>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libdbus-gtool.a(dbus-gidl.o): undefined reference to symbol 'g_boxed_type_register_static'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_boxed_type_register_static' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libgobject-2.0.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libgobject-2.0.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
</cut>

This seems fixed in 0.98 where $(DBUS_GLIB_LIBS) is included in LDADD like for dbus-bash-completion-helper. And gobject is part of it, added in configure.ac
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-03-02 01:00:33 UTC
and if not, provide new logs for 0.98 :)