This is a discussion on MPLayer compile error within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium2 -pipe -O2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_T_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/inc-I../loader -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium2 -pipe -O2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_T_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/inc-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_gdemux_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 450, Exitcode 2 !!! Failed to build MPlayer! !!! If you need support, post the topmost build error, NOT this status message. -- Luís Ferreira |
| |||
| In alt.os.linux.gentoo, Luís Ferreira uttered the immortal words: [snip] > 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 450, Exitcode 2 > !!! Failed to build MPlayer! > !!! If you need support, post the topmost build error, NOT this status > message. Re-emerge giflib. It seems a bit rude to me to only post an error message and expect help though. -- Andy. |
| |||
| Luís Ferreira enlightened us with: > [ compiler error ] So what are we supposed to do with this? Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| Luís Ferreira wrote: [Snip - compile error] It appears to be a problem with the giflib header(s). Recompile giflib like this: emerge -av --oneshot media-libs/giflib Then try to compile mplayer again. If that doesn't work, you could disable gif support in /etc/portage/package.use, though that's just a workaround. -- PeKaJe If you see an onion ring -- answer it! |
| |||
| Really doesn't usally matters, but try ether ebuilds and gentlier compile CFLAGS Luís Ferreira wrote: > > cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium2 -pipe > -O2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_T_BITS=64 > -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 > -I/usr/lib/glib/include -I/usr/X11R6/inc-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_gdemux_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 450, Exitcode 2 > !!! Failed to build MPlayer! > !!! If you need support, post the topmost build error, NOT this status > message. > > > > |
| |||
| Andy Fraser enlightened us with: > It seems a bit rude to me to only post an error message and expect > help though. Indeed. That's why I didn't help. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| In alt.os.linux.gentoo, Sybren Stuvel uttered the immortal words: >> It seems a bit rude to me to only post an error message and expect >> help though. > > Indeed. That's why I didn't help. I came across this the other day so the information was fresh in my mind. I certainly wouldn't have looked anything up to help someone who just copied and pasted some text into a newsreader especially when I found the solution in a minute or two by searching the forums and bugs database. -- Andy. |
| |||
| Luís Ferreira has offered us the following clue : > > > cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium2 -pipe > -O2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_T_BITS=64 > -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 > -I/usr/lib/glib/include -I/usr/X11R6/inc-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_gdemux_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 450, Exitcode 2 > !!! Failed to build MPlayer! > !!! If you need support, post the topmost build error, NOT this status > message. > > > > I've solved this problem by forcing the installation of the old version of libdv. emerge =libdv-0.99-r1 By the way, can someone tell me how to keep an old version if I emerge a new one ? It seems portage crashes a necessary library when updating libdv. |
| |||
| Peter Jensen wrote: > Luís Ferreira wrote: > It appears to be a problem with the giflib header(s). Recompile giflib > like this: > > emerge -av --oneshot media-libs/giflib strange, because I've emerge giflib in the past this lib. I do like you said and now compiles fine, but it's stange. -- Luís Ferreira |