Using GCC 3.2.2 20030322 (Gentoo Linux 1.4 3.2.2-r2), the ebuild fails while linking mpeg_encode. Reproducible: Always Steps to Reproduce: 1. emerge mpeg-tools Actual Results: Tail of emerge output is as follows: gcc -Iheaders -I/usr/include -Ijpeg -O -Wall -Wmissing-prototypes -o mpeg_encode mfwddct.o postdct.o huff.o bitio.o mheaders.o mpeg.o subsample.o param.o rgbtoycc.o readframe.o combine.o jrevdct.o frame.o fsize.o frametype.o libpnmrw.o specifics.o rate.o opts.o iframe.o pframe.o bframe.o psearch.o bsearch.o block.o parallel.o jpeg.o main.o -Ljpeg jpeg/libjpeg.a -lm libpnmrw.o(.text+0x139): In function `pm_perror': : `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead libpnmrw.o(.text+0x132): In function `pm_perror': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [mpeg_encode] Error 1 !!! ERROR: media-video/mpeg-tools-1.5b failed. !!! Function src_compile, Line 27, Exitcode 2 !!! (no error message) Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Duron(tm) processor GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/work/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla cdr scanner" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 10509 [details, diff] Proposed fix
thanks ian