Unix Technical Forum

MPLayer compile error

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:11 AM
=?ISO-8859-15?Q?Lu=EDs?= Ferreira
 
Posts: n/a
Default MPLayer compile error



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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:12 AM
Andy Fraser
 
Posts: n/a
Default Re: MPLayer compile error

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:12 AM
Sybren Stuvel
 
Posts: n/a
Default Re: MPLayer compile error

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:12 AM
Peter Jensen
 
Posts: n/a
Default Re: MPLayer compile error

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:12 AM
=?ISO-8859-15?Q?Jonas_Lyckeg=E5rd?=
 
Posts: n/a
Default Re: MPLayer compile error

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.
>
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 09:12 AM
Sybren Stuvel
 
Posts: n/a
Default Re: MPLayer compile error

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 09:12 AM
Andy Fraser
 
Posts: n/a
Default Re: MPLayer compile error

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 09:12 AM
Albert
 
Posts: n/a
Default Re: MPLayer compile error

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 09:12 AM
=?ISO-8859-15?Q?Lu=EDs?= Ferreira
 
Posts: n/a
Default Re: MPLayer compile error

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 09:12 AM
=?ISO-8859-15?Q?Lu=EDs?= Ferreira
 
Posts: n/a
Default Re: MPLayer compile error

Sybren Stuvel wrote:


> Indeed. That's why I didn't help.


Because when you born you just know everthing.
Thankyou boss.

--
Luís Ferreira
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com