If I try to emerge libungif it says: /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -mcpu=athlon -march=athlon -funroll-loops -pipe -I/usr/X11R6/include -c dev2gif.c libtool: ltconfig version `' does not match ltmain.sh version `1.3.3' Fatal configuration error. See the libtool docs for more information. make[2]: *** [dev2gif.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/libungif-4.1.0.1b/work/libungif-4.1.0b1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libungif-4.1.0.1b/work/libungif-4.1.0b1' make: *** [all-recursive-am] Error 2 !!! ERROR: media-libs/libungif-4.1.0.1b failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) I added the following to lines to the ebuild of libungif on top of src_compile() aclocal libtoolize -f Now the error is gone. Reproducible: Always Steps to Reproduce: 1.emerge libungif 2.see the error ... Actual Results: It crashed Expected Results: Install... Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4) ================================================================= System uname: 2.6.4 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon -march=athlon -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon -march=athlon -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb crypt cups doc dvd dvdr encode flac foomaticdb gdbm gif gnome gpm gtk gtk2 imlib ipv6 java jpeg kde kerberos libg++ libwww mad mikmod mmx motif mozcalendar moznocompose mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xinerama xml2 xmms xv zlib"
I had the same problem, and the suggested workaround fixed it. (Please bump the priority to critical as it blocks a stage 2 install of a Gnome or KDE desktop.)
*** Bug 45264 has been marked as a duplicate of this bug. ***
libungif-4.1.3 should have this resolved (and is now stable)