When I tried to emerge clamav it failed, complaining about libidn. Re-emerging libidn did not help. Reproducible: Always Steps to Reproduce: 1. Emerge clamav 2. 3. Actual Results: Clamav failed to compile Expected Results: Successfully compiled, then given me the correct numbers for next weeks lottery ;) Error: grep: /var/tmp/portage/libidn-0.3.7/image//usr/lib/libidn.la: No such file or directory sed: can't read /var/tmp/portage/libidn-0.3.7/image//usr/lib/libidn.la: No such file or directory libtool: link: `/var/tmp/portage/libidn-0.3.7/image//usr/lib/libidn.la' is not a valid libtool archive make[2]: *** [libclamav.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/clamav-0.83/work/clamav-0.83/libclamav' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/clamav-0.83/work/clamav-0.83' make: *** [all] Error 2 !!! ERROR: app-antivirus/clamav-0.83 failed. !!! Function src_compile, Line 52, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Emerge info: Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6-1337 i686) ================================================================= System uname: 2.6.10-gentoo-r6-1337 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 7 2005, 03:48:30)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa apm arts avi berkdb bitmap-fonts crypt cups curl dlz emboss encode font-server foomaticdb fortran gdbm gif gnome gtk2 imlib ipv6 jpeg kde ldap libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Please do `emerge libtool libidn`. If this doesn't help, the following will: `find /usr/lib -iname "*\.la" -exec sed -i -r -e "s:/var/tmp/portage/.*/image/:/:g" '{}' \;`
Remerging didn't help, but the find/sed command did wonderfully. What on earth was wrong?