While performing an upgrade yesterday I ran across this bug. My system didn't want to compile libmpeg2 and was giving me errors (copied below). I did try an emerge --sync and recompile libmpeg2, with the same problems. Upon a suggestion from the forums, I installed svgalib-1.9.21-r1 (that's the version pulled from emerge, I didn't specify the version number on the emerge line) and then re-emerged libmpeg2 with no problems. Below is my emerge --info, and the error from the original libmpeg2 [emerge --info] Portage 2.1_pre6-r7 (default-linux/x86/no-nptl/2.4, gcc-3.4.5, glibc-2.3.5-r2, 2.4.28-gentoo-r8 i586) ================================================================= System uname: 2.4.28-gentoo-r8 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.oregonstate.edu http://www.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 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt ctype cups dba dri eds emboss encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 imlib irc jabber jpeg libg++ libwww lj mad memlimit mikmod motif mp3 mpeg ncurses nls ogg opengl oss pam pcre pdflib perl png posix python qt quicktime readline rss sdl session simplexml soap sockets spell spl ssl tcpd tokenizer truetype truetype-fonts type1-fonts vorbis xml xmms xsl xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY [original libmpeg2 errors] /usr/lib/gcc/i586-pc-linux-gnu/3.4.5/../../../../i586-pc-linux-gnu/bin/ld: cannot find -lvga collect2: ld returned 1 exit status make[1]: *** [mpeg2dec] Error 1 make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.4.0b/work/mpeg2dec-0.4.0/src' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libmpeg2-0.4.0b failed. Call stack: ebuild.sh, line 1526: Called dyn_compile ebuild.sh, line 923: Called src_compile libmpeg2-0.4.0b.ebuild, line 62: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
I confirm this issue. I cc: the herd. x86 media-libs/libmpeg2-0.4.0b USE="X sdl"
and i add myself :) i think you can change the hardware arch to "All" and change the summary to "media-libs/libmpeg2: (...)"
Nothing in mpeg2dec (libmpeg2) sources refers to -lvga. You probably had something built against svgalib and then removed it. Please run revdep-rebuild and make sure that everything is linked correctly, then try this: grep -r --include '*.la' -- -lvga /usr/lib and look if something is bringing it in.