When I try to emerge mplayer, I get errors saying it can't find gif_lib.h Reproducible: Always Steps to Reproduce: 1.emerge mplayer 2.???? 3.bug Actual Results: gcc -c -I../libvo/ -I../../libvo -O4 -march=athlon-tbird -mcpu=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../loader -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o demux_gif.o demux_gif.c demux_gif.c:21:21: gif_lib.h: No such file or directory demux_gif.c: In function `demux_gif_fill_buffer': demux_gif.c:43: error: `GifFileType' undeclared (first use in this function) demux_gif.c:43: error: (Each undeclared identifier is reported only once demux_gif.c:43: error: for each function it appears in.) demux_gif.c:43: error: `gif' undeclared (first use in this function) demux_gif.c:43: error: syntax error before ')' token demux_gif.c:45: error: `GifRecordType' undeclared (first use in this function) demux_gif.c:45: error: syntax error before "type" demux_gif.c:48: error: `ColorMapObject' undeclared (first use in this function) demux_gif.c:48: error: `effective_map' undeclared (first use in this function) demux_gif.c:51: error: `type' undeclared (first use in this function) demux_gif.c:51: error: `IMAGE_DESC_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:52: error: `GIF_ERROR' undeclared (first use in this function) demux_gif.c:56: error: `TERMINATE_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:58: error: `SCREEN_DESC_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:64: error: `EXTENSION_RECORD_TYPE' undeclared (first use in this function) demux_gif.c: In function `demux_open_gif': demux_gif.c:154: error: `GifFileType' undeclared (first use in this function) demux_gif.c:154: error: `gif' undeclared (first use in this function) demux_gif.c: In function `demux_close_gif': demux_gif.c:211: error: `GifFileType' undeclared (first use in this function) demux_gif.c:211: error: `gif' undeclared (first use in this function) demux_gif.c:211: error: syntax error before ')' token demux_gif.c:216: error: `GIF_ERROR' undeclared (first use in this function) make[1]: *** [demux_gif.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r7/work/MPlayer-1.0pre4/libmpdemux' make: *** [libmpdemux/libmpdemux.a] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r7 failed. !!! Function src_compile, Line 311, Exitcode 2 !!! Failed to build MPlayer! Expected Results: * media-libs/giflib Latest version available: 4.1.0-r3 Latest version installed: 4.1.0-r3 * media-libs/libungif Latest version available: 4.1.0.1b Latest version installed: 4.1.0.1b
Ah, possibly a regression from a fix to this bug: http://bugs.gentoo.org/show_bug.cgi?id=18820 Also, emerge -info: Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -funroll-loops -mmmx -m3dnow -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/mirror/www.ibiblio.org/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm arts avi berkdb cdr crypt cups dvd encode esd ethereal fbcon foomaticdb gdbm gif gphoto2 gpm gtk gtk2 imap imlib ipv6 java jpeg kde lib libg++ libwww mad mbox mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib pdlib perl png ppds python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype usb www x86 xml2 xmms xv zlib" -- Tom
This was fixed with some makefile sed-ing.
This bug seems to be back with mplayer-1.0_pre5-r5 When I emerge mplayer with USE="-gif", everything is fine. Otherwise, It doesn't compile, with a very similar error message : cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O2 -march=athlon-xp -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../loader -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o demux_gif.o demux_gif.c demux_gif.c:21:21: gif_lib.h: No such file or directory demux_gif.c: In function `demux_gif_fill_buffer': demux_gif.c:43: error: `GifFileType' undeclared (first use in this function) demux_gif.c:43: error: (Each undeclared identifier is reported only once demux_gif.c:43: error: for each function it appears in.) demux_gif.c:43: error: `gif' undeclared (first use in this function) demux_gif.c:43: error: parse error before ')' token demux_gif.c:45: error: `GifRecordType' undeclared (first use in this function) demux_gif.c:45: error: parse error before "type" demux_gif.c:48: error: `ColorMapObject' undeclared (first use in this function) demux_gif.c:48: error: `effective_map' undeclared (first use in this function) demux_gif.c:51: error: `type' undeclared (first use in this function) demux_gif.c:51: error: `IMAGE_DESC_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:52: error: `GIF_ERROR' undeclared (first use in this function) demux_gif.c:56: error: `TERMINATE_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:58: error: `SCREEN_DESC_RECORD_TYPE' undeclared (first use in this function) demux_gif.c:64: error: `EXTENSION_RECORD_TYPE' undeclared (first use in this function) demux_gif.c: In function `demux_open_gif': demux_gif.c:154: error: `GifFileType' undeclared (first use in this function) demux_gif.c:154: error: `gif' undeclared (first use in this function) demux_gif.c: In function `demux_close_gif': demux_gif.c:211: error: `GifFileType' undeclared (first use in this function) demux_gif.c:211: error: `gif' undeclared (first use in this function) demux_gif.c:211: error: parse error before ')' token demux_gif.c:216: error: `GIF_ERROR' undeclared (first use in this function) make[1]: *** [demux_gif.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre5-r5/work/MPlayer-1.0pre5try2/libmpdemux' make: *** [libmpdemux/libmpdemux.a] Error 2 !!! ERROR: media-video/mplayer-1.0_pre5-r5 failed. !!! Function src_compile, Line 443, Exitcode 2 !!! Failed to build MPlayer! !!! If you need support, post the topmost build error, NOT this status message.
Same here mplayer-1.0_pre5-r5 fails at gif_lib.h.
I also had this problem with mplayer-1.0_pre5-r5. Re-emerging giflib fixed it. I wonder why?
I had the same problem with mplayer-1.0_pre5-r5, and re-emerging giflib worked for me, too. Very mysterious.
I've got the same problem az #4,5,6. Remerging giflib fixed for me too. You should reopen this bug or something.
I have also encountered this problem, re-emerging giflib fixed it, mplayer then compiled properly. But I had to find this bug report in order to solve the problem. This should not be marked as
I have also encountered this problem, re-emerging giflib fixed it, mplayer then compiled properly. But I had to find this bug report in order to solve the problem. This should not be marked as ¨FIXED¨, clearly the problem still exists and should be looked into further.