Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282091 - gnome-base/gnome-panel-2.26.3 failes to compile in @preserved-rebuild after libxcb update to 1.4
Summary: gnome-base/gnome-panel-2.26.3 failes to compile in @preserved-rebuild after l...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.26
  Show dependency tree
 
Reported: 2009-08-20 11:42 UTC by Steffen Hau
Modified: 2009-12-30 01:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2009-08-20 11:42:20 UTC
I updated my system and libxcb was updated to 1.4. emerge told me to that preserved libs exists on my system. So i ran emerge with @preserved-rebuild and gnome-panel failed to compile with following error:
gtk-doc: Compiling scanner
  CC    panel-applet-scan.o
gtk-doc: Linking scanner
  LINK  panel-applet-scan
gtk-doc: Running scanner panel-applet-scan

/var/tmp/portage/gnome-base/gnome-panel-2.26.3/work/gnome-panel-2.26.3/doc/reference/panel-applet/.libs/panel-applet-scan: symbol lookup error: /usr/lib/libxcb-xlib.so.0: undefined symbol: _xcb_lock_io
Scan failed: 
make[4]: *** [scan-build.stamp] Error 127
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I digged this down a bit and I came up, that panel-applet-scan is linked against /usr/lib/libpanel-applet-2.so, which itself is linked against the preserved lib /usr/lib/libxcb-xlib.so. To overcome this, I had to unmerge gnome-panel before I reemerged it again. Perhaps there is a way, to have panel-applet-scan using the libpanel-applet-2.so freshly build in libpanel-applet/.libs instead of /usr/lib/libpanel-applet-2.so.

Reproducible: Always

Steps to Reproduce:
1. compile gnome-panel after updating libxcb to version 1.4
2.
3.

Actual Results:  
Fails to compile


Portage 2.2_rc38 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-rc6-HAUIHAU i686)
=================================================================
System uname: Linux-2.6.31-rc6-HAUIHAU-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 19 Aug 2009 14:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="i686-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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fakeroot fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
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/local/portage/layman/sectools /usr/local/portage/layman/gnome /usr/local/portage/layman/hauihau"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl acpi alsa apache2 bash-completion berkdb bidi bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli cracklib crypt ctype cups curl dbus dedicated dga directfb doc dri dts dv dvd dvdr dvdread encode examples exif ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz glut gmp gnome gnome-keyring gnutls gphoto2 gstreamer gtk gtk2 hal htmlhandbook iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 isdnlog java java5 java6 javascript jpeg jpeg2k lame lcms ldap libcaca libnotify libsamplerate lua mad mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcmcia pcre pdf perl php plasma png policykit posix ppds pppd python qt4 quicktime readline reflection rss rtc ruby samba sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb userlocales v4l2 vcd vim-syntax visualization vorbis win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" 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_ftp proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-08-20 16:05:19 UTC
That sounds like a libtool error. I'd bet a buck that it was generated with libtool 1.5
Comment 2 Billy DeVincentis 2009-08-27 13:30:44 UTC
I am having the same problem after updating libxcb to 1.4, I have the latest libtool installed and get the same error. I am still in the process of rebuilding my system after the mess that the libxcb and jpeg updates left. I will see if after repairing everything else if the same error occurs.
Comment 3 Steffen Hau 2009-08-27 15:19:41 UTC
On my system, thos occured as long as /usr/lib/libpanel-applet.so* existed. Removing it solved this issue for me. But of course, there must be another way.
Comment 4 Billy DeVincentis 2009-08-28 02:03:23 UTC
Are you talking about emerging it after the libxcb-1.4 upgrade? I tried moving those files to trash and then emerging only to get the same error.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-08-28 05:34:50 UTC
(In reply to comment #4)
> Are you talking about emerging it after the libxcb-1.4 upgrade? I tried moving
> those files to trash and then emerging only to get the same error.

emerge -C gnome-panel && emerge -1 gnome-panel
Comment 6 Billy DeVincentis 2009-08-28 22:08:29 UTC
Fixed it.
emerge -1 gnome-desktop && emerge --unmerge gnome-panel && emerge -1 gnome-panel
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-29 12:50:35 UTC
so that means gnome-panel is linking against with its old installation maybe.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-08-30 08:19:52 UTC
That's why I was betting the tarball was generated with libtool 1.5 and not 2.2 where lots of such bugs have been fixed. (same bug we had with e-d-s a while ago)

Cheers
Comment 9 Randall Wald 2009-09-14 20:22:20 UTC
Not directly related to this bug, but I had a similar problem with a different package (app-i18n/uim-1.5.6-r1) linking against its already-installed version, causing problems with the libxcb-1.4 update (Bug #284815). I figured I'd cross-link these bugs in the event that there's some common cause.
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2009-09-14 22:20:51 UTC
Like I said in comment #8, libtool 1.5 is usually the culprit. Especially when you have a library that deps on another library. That use case is very common in big gnome apps (e-d-s, evolution, anjuta, ...).

I'm not sure what uim uses, but it does look like libtool so that'd be a first start.

The problem is that the libtool you have on your system isn't used at all. The broken libtool scripts are the ones shipped inside the tarball, so you have to convince upstream to stop building their tarballs with a broken and dead libtool.

Thanks
Comment 11 Lars Schonert 2009-09-15 13:37:30 UTC
Same problem after upgrade from 1.5x to 2.2.6a.

Following workarround works for me.

echo "sys-devel/libtool **" >> /etc/portage/packages.keywords/sys-devel
emerge libtool (libtool-9999)
revdep-rebuild --library libxcb-xlib.so.0.0.0

This build the cvs-version of libtool (also 2.2.6).

After this run revdep-rebuild to fix broken packages. This is not the best way, i know.
Comment 12 Lars Schonert 2009-09-20 09:51:19 UTC
Please read this ...

http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml

... the correct way to fix the problem.
Comment 13 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-12-30 01:52:26 UTC
(In reply to comment #12)
> Please read this ...
> 
> http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml
> 
> ... the correct way to fix the problem.
> 

@reporter: please follow the guide to fix the problem (if you haven't already)