Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77463 - media-video/mplayer-1.0_pre5-r5 failed in libmpdemux
Summary: media-video/mplayer-1.0_pre5-r5 failed in libmpdemux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 77468 77801 77831 77868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-10 20:58 UTC by mike
Modified: 2005-03-19 13:57 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2005-01-10 20:58:10 UTC
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium3 -pipe -O2 -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
distcc[11386] ERROR: compile demux_gif.c on sp700 failed
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.


Reproducible: Always
Steps to Reproduce:
1.emerge mplayer
2.
3.

Actual Results:  
fails to compile

Expected Results:  
successfull compile

I found compilation error bugs for libmpdemux...#42956 and #42820, but I think
this fails on soemthing different...I don't have the matroska USE flag enabled.


# emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aim alsa apm arts audiofile avi berkdb bitmap-fonts bonobo cdr
crypt cups divx4linux dvd dvdr encode esd evo exif fam firebird foomaticdb
fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml icq imagemagick
imap imlib innodb ipv6 jack java jpeg junit libwww lirc mad mikmod motif mozilla
mpeg msn mysql mysqli nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl
php png postgres ppd python quicktime readline real samba sdl slang sockets
spell spl sse ssl svga tcpd tiff tokenizer truetype usb videos x86 xml xml2 xmms
xosd xv xvid yahoo zlib"
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-01-10 23:02:51 UTC
*** Bug 77468 has been marked as a duplicate of this bug. ***
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-01-11 10:24:28 UTC
Same here, but the error is a little bit different:

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium4 -pipe -O2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_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/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

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-nitro4 i686)
=================================================================
System uname: 2.6.10-nitro4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 28 2004, 15:04:06)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -ffast-math -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -ffast-math -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo  http://lame.lut.fi/linux/gentoo "
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://aria/portage"
USE="x86 X acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bzlib cdb cdparanoia cdr crypt cups directfb divx4linux dvdvd dvdr dvdread encode fam fbcon flac foomaticdb freetype ftp gdbm gif gpm gtk gtk2 imagemagick java jpeg junit kde libwww lzo mad makecheck mikmod mmx mmx2 motif mozilla mpeg ncurses network nptl nptlonly nvidia oggvorbis opengl pam pdflib perl png python qt quicktime readline real rtc ruby samba slang slp spell sse sse2 ssl svga tcpd tiff truetype unicode usb userlocales v4l v4l2 xine xml2 xmms xosd xv xvidxvmc zlib video_cards_nvidia"

Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-01-11 10:38:50 UTC
MPlayer compiles without problems if gif use flag is turned off. 
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-13 06:18:17 UTC
*** Bug 77801 has been marked as a duplicate of this bug. ***
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-13 06:18:26 UTC
*** Bug 77831 has been marked as a duplicate of this bug. ***
Comment 6 Boyd Stephen Smith Jr. 2005-01-13 08:17:50 UTC
From gentoo-user:

> http://bugs.gentoo.org/show_bug.cgi?id=18820. 

> I've run into this one too. There was a problem that both libungif and
> giflib installed this file. It seems this was fixed and now only one
> (depending on your gif use flag) installs it. Recently, libungif was
> updated, so (if you have gif use flag set at least) it removed its
> version of the file given during unmerge of previous version but
> didn't install replacement. Solution is pretty straightforward:
> emerge giflib

The dependencies in the affected ebuild may be wrong.  I was expecting:
gif? ( giflib ) !gif? ( libungif ) but instead got: gif? ( giflib libungif ).
I am far from an expert in this matter, however.

Or, it could be pure regression from 18820.

I will try the emerge giflib solution and report back.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-13 10:54:13 UTC
*** Bug 77868 has been marked as a duplicate of this bug. ***
Comment 8 Boyd Stephen Smith Jr. 2005-01-13 11:14:23 UTC
I can confirm that 'emerge media-libs/giflib' will allow the emerge to complete.

Based on the proposed resolution (http://bugs.gentoo.org/show_bug.cgi?id=18820#c3) to this issue, I'd say the solution is different depending on your gif use flag:
 gif -> emerge media-libs/giflib
-gif -> emerge media-libs/libungif
Comment 9 Chris White (RETIRED) gentoo-dev 2005-01-13 14:45:54 UTC
<sigh> someone messed with my gif USE flag logic.. I sense a great fire brewing.  Fixed in cvs.
Comment 10 Toralf Förster gentoo-dev 2005-01-15 09:24:12 UTC
The ebuild I use is from 14.01.2005:
-rw-r--r--  1 root root 16400 Jan 14 10:39 mplayer-1.0_pre5-r5.ebuild
but mplayer still does not (re)build :

...
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)
Comment 11 hodak 2005-01-15 15:40:42 UTC
I reemerged giflib (I have gif USE flag set), but emerging still fails:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lungif
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

Can this bug be reopend?
Comment 12 rhywek 2005-01-16 08:35:30 UTC
emerging mplayer fails also for me. But it is not a solution to manually emerge some needed packages, the ebuild should be constructed in such a way that it satisfies dependencies. And I have gif flag on and giflib installed and still mplayer fails.

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium4 -pipe -O2 -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.

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -pipe -O2 -fomit-frame-pointer -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -pipe -O2 -fomit-frame-pointer -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl ftp://pandemonium.tiscali.de/pub/gentoo/ http://src.gentoo.pl http://pandemonium.tiscali.de/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd emacs encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jikes jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xmms xv zlib"

This bug must be reopened. I didn't have this problem with previous mplayer versions.
Comment 13 Toralf Förster gentoo-dev 2005-01-17 07:03:55 UTC
The solution:
http://bugs.gentoo.org/attachment.cgi?id=48667
Comment 14 hodak 2005-01-17 09:33:14 UTC
This patch fixes the problem. Can this be applied to the official portage tree?