When trying to emerge faad2-2.0-r3, get this output during linking: /bin/sh ../libtool --mode=link g++ -O2 -O2 -ftracer -fweb -pipe -fomit-frame-pointer -march=k8 -o faad main.o audio.o getopt.o ../libfaad/libfaad.la ../common/mp4ff/libmp4ff.la -lmp4v2 -lmp4v2 mkdir .libs libtool: link: cannot find the library `/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/libstdc++.la' make[2]: *** [faad] Error 1 make[2]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/frontend' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2' make: *** [all] Error 2 !!! ERROR: media-libs/faad2-2.0-r3 failed. !!! Function src_compile, Line 65, Exitcode 2 !!! (no error message) My system was compiled completely with GCC 3.4.0. I thought this might be an issue with a old GCC 3.3.3 C++ lib, so I rebuilt the entire system (minus faad2) with GCC 3.4.1, then tried to emerge faad2 again. Same issue. I have no idea why it's trying to find a gcc 3.3.3 libstdc++. my emerge info: Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 x86_64 4 Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -ftracer -fweb -pipe -fomit-frame-pointer -march=k8" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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="-O2 -ftracer -fweb -pipe -fomit-frame-pointer -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.noved.org/ ftp://gentoo.noved.org/ ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 apm arts avi berkdb bonobo crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtkgtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg multilib ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang spell ssl tcltk tcpd tiff truetype usb xineramaxml2 xmms xv zlib"
This is a bug with libtool. if you unmerge faad2 and remerge, it works. problem is, that libtool uses /usr/lib/libmp4v2.la instead of the one it generated earlier. WORKAROUND: rm /usr/lib/libmp4v2.la and merge or unmerge before remerging.
Confirmed that unmerging and remerging faad2 works. Leaving the bug as new because I'm not sure if this really closes the bug of if there's some way to fix the ebuild to avoid this problem.
cantfix is close enough