Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351590 - dev-libs/glib-2.26.1 Build error
Summary: dev-libs/glib-2.26.1 Build error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 19:14 UTC by Moonfire
Modified: 2011-03-23 20:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,552.23 KB, text/plain)
2011-01-13 19:15 UTC, Moonfire
Details
libdbus-1.so.output (libdbus.txt,13.44 KB, text/plain)
2011-01-14 21:00 UTC, Moonfire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moonfire 2011-01-13 19:14:41 UTC
After running update "emerge -uav system" and rebuild of some other needed packages, I can't update glib to 2.26.1 or other 2.26.x verions.

I run allready python-update and revdep-rebuild to fix some issues, but I got all time same problem.
I attached the build.log here.

moonx moonfire # emerge --info =dev-libs/glib-2.26.1
Portage 2.1.9.31 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.35 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Thu, 13 Jan 2011 14:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.5-r3, 2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.4, 4.4.4-r2, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/portage/local/layman/mozilla /usr/portage/local/layman/enlightenment /usr/portage/local/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit aac aalib acl acpi alsa amd64 apache2 asf berkdb bzip2 cli cracklib crypt cups cxx dbus divx dri dvd dvdr dvdread fam fame flac fortran freetype gdbm gpm hal iconv ipv6 jack java mailbox maildir matroska mmx mmx2 modules mp3 mp4 mpeg mpeg2 mpeg4 mplayer mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nvidia nvtv opengl openmp pam pcre perl pppd pulseaudio python readline session smp sse ssl sysfs tcpd threads tiff truetype unicode usb utf8 v4l v4l2 vcd wma wma123 wmf wmv wxwindows x264 xine xinerama xorg xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias version" APACHE2_MPMS="prefork" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

moonx moonfire # emerge -pqv =dev-libs/glib-2.26.1
[ebuild     U ] dev-libs/glib-2.26.1 [2.24.2] USE="fam static-libs%* -debug -doc (-introspection) (-selinux) -test% -xattr"
Comment 1 Moonfire 2011-01-13 19:15:23 UTC
Created attachment 259735 [details]
build.log
Comment 2 Rafał Mużyło 2011-01-13 21:27:19 UTC
Seems, there's something wrong with your libdbus-1.0 - those symbols should be there.
Comment 3 Moonfire 2011-01-14 15:23:51 UTC
(In reply to comment #2)
> Seems, there's something wrong with your libdbus-1.0 - those symbols should be
> there.
> 

I've updated allready all related *dbus* packages and libs, that I can build without glib-2.26.x, but without success. I alos run allready lafilefixer, but whithout sueccess to.

glib crashes all time @ /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/gio/tests/gdbus-serialization.c
Comment 4 Moonfire 2011-01-14 15:45:27 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Seems, there's something wrong with your libdbus-1.0 - those symbols should be
> > there.
> > 
> 
> I've updated allready all related *dbus* packages and libs, that I can build
> without glib-2.26.x, but without success. I alos run allready lafilefixer, but
> whithout sueccess to.
> 

> glib crashes all time @
> /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/gio/tests/gdbus-serialization.c
> 

What I found out at internet, that new glib depends on dbus. dbus-glib need glib and new glib needs dbus, so I can't fix this problem myself.
I hope, any developer have a look to this bug to fix it.

------- snip -------
moonx moonfire # emerge -av dbus-python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-libs/glib-2.26.1 [2.24.2] USE="fam static-libs%* -debug -doc (-introspection) (-selinux) -test% -xattr" 0 kB
[ebuild     U ] dev-libs/dbus-glib-0.92 [0.86] USE="-bash-completion -debug -doc -static-libs% -test" 0 kB
[ebuild     U ] dev-python/dbus-python-0.83.2 [0.83.1] USE="-doc -examples -test" 0 kB
------ snip end -------
Comment 5 Rafał Mużyło 2011-01-14 20:16:07 UTC
google better.
glib 2.26 has dbus interface wrapper (gdbus), but it doesn't use libdbus-1.0.
Check your libdbus-1.0.so with 'nm -C -D' - those symbols should be present,
if they're not, your lib is broken.
We're talking here only about sys-apps/dbus here, not the wrappers.
Comment 6 Moonfire 2011-01-14 21:00:29 UTC
Created attachment 259887 [details]
libdbus-1.so.output

As you can see, there are all arguments included in my lib. dbus works fine and only the package within glib can't be build, so it crashes any time.
To use google better is not constructive and wont help anyone.
libdbus-1.so and libdbus-1.0.so exist.
Comment 7 Rafał Mużyło 2011-01-14 23:59:47 UTC
> What I found out at internet, that new glib depends on dbus
And that's not true. As already said, only a few tests depend on libdbus.

Are you sure you don't have more than one copy of libdbus on the system ?

Does i.e. 'scanelf -lq -s dbus_free' mention libdbus ?
(it will print all the libraries using that symbol, not just the one containing it)
Comment 8 Moonfire 2011-01-15 08:31:02 UTC
(In reply to comment #7)
> > What I found out at internet, that new glib depends on dbus
> And that's not true. As already said, only a few tests depend on libdbus.
> 
> Are you sure you don't have more than one copy of libdbus on the system ?
> 
> Does i.e. 'scanelf -lq -s dbus_free' mention libdbus ?
> (it will print all the libraries using that symbol, not just the one containing
> it)
> 

That's my output:
scanelf -lq -s dbus_free
dbus_free  /usr/lib64/libeggdbus-1.so.0.0.0
dbus_free  /usr/lib64/libpulsecommon-0.9.21.so
dbus_free  /usr/lib64/libdbus-1.so.3.5.3
dbus_free  /usr/lib64/libdbus-glib-1.so.2.1.0
dbus_free  /usr/lib32/libdbus-1.so.3.4.0
dbus_free  /usr/lib32/libdbus-glib-1.so.2.1.0
dbus_free  /usr/lib/qt4/libQtDBus.so.4.6.3
dbus_free  /usr/lib64/qt4/libQtDBus.so.4.6.3
dbus_free  /usr/lib32/qt4/libQtDBus.so.4.5.3

There are two libdubus libs, 3.5.3 and 3.4.0. Why is there an old version and how can I fix it (I gues, only delete it is not okay)?
Comment 9 Rafał Mużyło 2011-01-15 15:43:23 UTC
Note, that one of them is lib64 and the other lib32, so again, that's not it.

Actually, both the lib is given with a path and compile line seems to give correct includes.

Perhaps it's a parallel make problem ?
Comment 10 Moonfire 2011-01-15 16:48:26 UTC
(In reply to comment #9)
> Note, that one of them is lib64 and the other lib32, so again, that's not it.
> 
> Actually, both the lib is given with a path and compile line seems to give
> correct includes.
> 
> Perhaps it's a parallel make problem ?
> 
I'm not sure what you mean with "parallel make", but I only build one package per time, so emerge can't have problems with two processes at same time.
I tested now a lot of things, runs revdep-rebuild, fixed libs but all without success. Sorry, I'm no developer, so for me it looks all time as glib problem.
If you have an other idea what I can try, please let me know.
Comment 11 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-01-15 21:47:16 UTC
(In reply to comment #10)
> I'm not sure what you mean with "parallel make"

He means, give it a try with MAKEOPTS="-j1" in your make.conf. I resolve this as TEST-REQUEST. Please, reopen if it still fails. 

Comment 12 René 'Necoro' Neumann 2011-03-23 19:55:43 UTC
The linking command obviously misses "-ldbus-1". The question is: why is it missing?

--- the important bit from the attached build.log ----
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=athlon64 -O2 -pipe -msse3 -Wall -Wl,-O1 -o .libs/gdbus-serialization gdbus_serialization-gdbus-serialization.o gdbus_serialization-gdbus-tests.o  -Wl,--as-needed ../../glib/.libs/libglib-2.0.so ../../gthread/.libs/libgthread-2.0.so ../../gobject/.libs/libgobject-2.0.so ../../gio/.libs/libgio-2.0.so /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/gobject/.libs/libgobject-2.0.so /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/gthread/.libs/libgthread-2.0.so /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/gmodule/.libs/libgmodule-2.0.so -ldl /var/tmp/portage/dev-libs/glib-2.26.1/work/glib-2.26.1/glib/.libs/libglib-2.0.so -lresolv -lz /usr/lib64/libdbus-glib-1.so /usr/lib64/libgobject-2.0.so -L/usr/lib64 /usr/lib64/libgthread-2.0.so /usr/lib64/libglib-2.0.so -lpthread -lrt -pthread
--- snip ---
Comment 13 Moonfire 2011-03-23 20:21:07 UTC
We got success with these steps by Rene:

1.) dbus-glib save: quickpkg dbus-glib

2.) dbus and dbus-glib uninstall: emerge -C --nodeps dbus dbus-glib
3.) new install of glib

4.a) if 3 works: emerge -av dbus dbus-glib
b) if 3 doesn't work: emerge -kav dbus "=dbus-glib-0.86" (use "k" to use the binary package we have saved before with step 1)

Forum entry for this case: http://forums.gentoo.org/viewtopic-t-870169.html