After upgrading some xorg packages yesterday (to up-to-date ~amd64), evince doesn't run anymore. % evince evince: symbol lookup error: /usr/lib/libxcb-xlib.so.0: undefined symbol: _xcb_lock_io revdep-rebuild detects that linking failure and tries to emerge it anew. Infortunately, the emerge fails with the same error. x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fomit-frame-pointer -Wl,-z -Wl,now -o .libs/evince eggfindbar.o ev-application.o ev-file-monitor.o ev-history.o ev-keyring.o ev-marshal.o ev-media-player-keys.o ev-message-area.o ev-metadata-manager.o ev-navigation-action.o ev-navigation-action-widget.o ev-page-action.o ev-page-action-widget.o ev-password-view.o ev-print-operation.o ev-progress-message-area.o ev-properties-dialog.o ev-properties-fonts.o ev-open-recent-action.o ev-utils.o ev-window.o ev-window-title.o ev-sidebar.o ev-sidebar-attachments.o ev-sidebar-layers.o ev-sidebar-links.o ev-sidebar-page.o ev-sidebar-thumbnails.o ev-stock-icons.o main.o -pthread ../cut-n-paste/zoom-control/.libs/libephyzoom.a ../cut-n-paste/toolbar-editor/.libs/libtoolbareditor.a ../cut-n-paste/totem-screensaver/.libs/libtotemscrsaver.a ../cut-n-paste/gedit-message-area/.libs/libgeditmsgarea.a ../cut-n-paste/gimpcellrenderertoggle/.libs/libgimpcellrenderertoggle.a ../cut-n-paste/evmountoperation/.libs/libevmountoperation.a ../cut-n-paste/smclient/.libs/libsmclient.a /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so ../properties/.libs/libevproperties.a ../libdocument/.libs/libevdocument.so ../libview/.libs/libevview.so /var/tmp/portage/app-text/evince-2.26.2/work/evince-2.26.2/libdocument/.libs/libevdocument.so /usr/lib64/libxml2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libdbus-glib-1.so /usr/lib64/libdbus-1.so -lpoppler-glib /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libexpat.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -lz -lm /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io' /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io' collect2: ld returned 1 exit status make[3]: *** [evince] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-text/evince-2.26.2/work/evince-2.26.2/shell' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/app-text/evince-2.26.2/work/evince-2.26.2/shell' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/evince-2.26.2/work/evince-2.26.2' make: *** [all] Error 2 !!! ERROR: app-text/evince-2.26.2 failed. !!! Call stack: !!! ebuild-daemon.sh, line 192: Called execute_phases 'compile' !!! ebuild.sh, line 627: Called dyn_compile !!! ebuild-default-functions.sh, line 266: Called src_compile !!! ebuild.sh, line 3667: Called gnome2_src_compile !!! ebuild.sh, line 2875: Called die !!! The die message: !!! compile failure !!! !!! If you need support, post the topmost build error, and the call stack if relevant. phases failed !!! Failed to build config wrapped(use): ebuild src: app-text/evince-2.26.2: Failed build operation: compile: Failed building (False/0 return from handler) Reproducible: Always root@localhost> pmerge --info /home/horn Usage: pmerge [options] pmerge: error: no such option: --info [2] root@localhost> emerge --info /home/horn Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 13 Sep 2009 18:30:01 +0000 app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9 dev-lang/python: 2.6.2-r1, 3.1.1 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.8.5-r3, 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="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://de-mirror.org/distro/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-z,now" MAKEOPTS="-j3" 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/sunrise /usr/local/portage/layman/emacs /usr/local/overlays/private" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi aio alsa amd64 aspell avahi berkdb bzip2 cairo caps cleartype cli consolekit cracklib crypt cups dbus djvu dri dvi emacs exif ffmpeg flac fortran gdbm gif gnutls gpm gtk hal iconv idn imagemagick ioctl ipv6 isdnlog jpeg libnotify mmap mmx mng mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ntp ogg opengl openmp pam pango pcre pdf perl png policykit pppd python qt3 qt3support qt4 readline reflection samba schroedinger sdl session slp smp spl sse sse2 ssl ssse3 startup-notification svg sysfs syslog t1lib taglib tcpd theora tiff truetype unicode vorbis webkit x264 xcb xcomposite xft xine xinerama xorg xpm xrandr xulrunner zeroconf zlib zsh-completion" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I already tried recompiling libX11 (1.2.2) and libxcb (1.4), but the error remains.
Delete /usr/lib/libxcb-xlib* , it doesn't belong to new xcb
Or follow http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml Anyhow.. The problem is in your system.
Indeed, following the upgrade guide solved the issue. Sorry for the noise.