ravikant var # screen screen: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory ravikant root # ldd /usr/bin/screen linux-gate.so.1 => (0xffffe000) libelf.so.1 => not found libutil.so.1 => /lib/libutil.so.1 (0x40027000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4002a000) libpam.so.0 => /lib/libpam.so.0 (0x40057000) libc.so.6 => /lib/libc.so.6 (0x4005f000) libdl.so.2 => /lib/libdl.so.2 (0x40170000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) (libelf.so.1 is provided by elfutils) - found this by doing a slocate libelf.so.1 | xargs qpkg -I -f on a system on which screen does work. ravikant screen # emerge -evDp screen | grep elf ravikant screen # (from this we can conclude that nothing in screen's dependency tree provides elfutils). Reproducible: Always Steps to Reproduce: ravikant root # emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r6) ================================================================= System uname: 2.6.7-gentoo-r6 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -msse -mmmx" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -msse -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb cdr crypt cups curl dga dnd dv dvb dvd dvdr encode esd faad fam flac flash fltk foomaticdb gdbm gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 imagemagick imap imlib imlib2 java javascript jpeg kde lcms ldap libg++ libwww linguas_hi lufsusermount mad maildir mbox mikmod mmx mng motif mozilla mozinterfaceinfo moznoirc mozp3p mozsvg mozxmlterm mpeg mysql ncurses nls oav oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang slp speex spell sse ssl svga tcltk tcpd tiff truetype unicode usb vim-with-x wmf x86 xml xml2 xmms xprint xv xvid zlib"
Run revdep-rebuild. you have broken deps. screen doesn't need libelf, I can build it just fine without it. Go ahead and reopen if you still have problems.
Can we have this bug reopened? I consider it a bug despite the fact that screen doesn't *need* elfutils. If it doesn't need it, we should patch configure to not link against it. It'd be a waste of time to make it an optional USE RDEPEND since I can't for the life of me figure out what it does with libelf.so.1.
I'v removed the check from configure. If you re-emerge screen it should no more try to link against libelf.