Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 379077

Summary: dev-libs/dbus-glib-0.92 build fails because of underlinking
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: [OLD] LibraryAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: cardoe, steev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: compressed build log
emerge --info

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 :)