Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78209 - mplayer-1.0_pre5-r5 build failure with USE="gif", incorrectly (?) requires libungif
Summary: mplayer-1.0_pre5-r5 build failure with USE="gif", incorrectly (?) requires li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-16 05:45 UTC by Ylosar Goer
Modified: 2005-01-23 23:38 UTC (History)
1 user (show)

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


Attachments
patch to link against giflib (ungif-to-gif.patch,499 bytes, patch)
2005-01-16 10:16 UTC, Ylosar Goer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ylosar Goer 2005-01-16 05:45:51 UTC
I am not able to successfully emerge mplayer-1.0_pre5-r5 with USE="gif". The build fails with "ld: cannot find -lungif".

AFAIK, with USE="gif", it should try to link against giflib, *not* libungif.

Quick guess: in the ebuild RDEPEND, it is specified that mplayer depends on giflib if "+gif", and depends on libungif if "-gif". So the ebuild should not force config.mak's GIF_LIB = -lungif if "+gif" (ebuild's line #419).

Reproducible: Always
Steps to Reproduce:
1. emerge unmerge libungif
2. USE="gif" emerge --oneshot giflib #(i think libungif and giflib are sharing some files)
3. USE="gif" emerge =mplayer-1.0_pre5-r5

Actual Results:  
cc -I../libvo -I../../libvo -I/usr/X11R6/include -march=pentium3 -O2 -pipe
-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
-Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include       -o mplayer mplayer.o
mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o
asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o
parser-cfg.o m_struct.o unrarlib.o mixer.o parser-mpcmd.o libvo/libvo.a
libao2/libao2.a libmenu/libmenu.a  Gui/libgui.a libmpcodecs/libmpcodecs.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a loader/libloader.a
loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a
libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a
 libavcodec/libavcodec.a   -lmad -lvorbis -logg -ldv  -lfaad -llzo -lmp3lame
-lvorbis -logg -lxvidcore -lm -lpng -lz -lz -ljpeg -lasound -ldl -lpthread
/usr/lib/libxmms.so.1 -export-dynamic   -lfreetype -lz     -lungif    
-lfontconfig    -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule
-lglib -ldl -lXi -lXext -lX11 -lm -L/usr/lib -lglib  -lGL -lXxf86dga -lXv 
-lXxf86vm  -L/usr/X11R6/lib -lXext -lX11 -lnsl -lnsl -L/usr/lib
-Wl,-rpath,/usr/lib -lSDL -lpthread                -lpthread -ldl -rdynamic   -lm
/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

!!! ERROR: media-video/mplayer-1.0_pre5-r5 failed.


Expected Results:  
mplayer be installed (with giflib support, without libungif support).

# emerge -s

media-libs/giflib
  Latest version installed: 4.1.0-r3
media-libs/libungif
  Latest version installed: [ Not Installed ]

# emerge -pv mplayer

[ebuild   R   ] media-video/mplayer-1.0_pre5-r5  -3dfx -3dnow -3dnowex +X -aalib
+alsa (-altivec) -arts -bidi -cdparanoia -debug -directfb -divx4linux -doc -dvb
-dvd -dvdread -edl +encode -esd -fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack
-joystick +jpeg -libcaca -lirc -live +lzo +mad -matroska -matrox +mmx -mmx2
+mpeg -mythtv -nas -network* +nls -nvidia +oggvorbis +opengl -oss +png +real
+rtc -samba +sdl +sse -svga -tga -theora* +truetype -v4l -v4l2 -xanim -xinerama
+xmms +xv +xvid -xvmc 5,866 kB 


# emerge info

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 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
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/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -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/s
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/backup/linux/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms str
ict"
GENTOO_MIRRORS="http://mir.zyrianes.net/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 alsa apm avi berkdb bitmap-fonts cdr crypt cups curl encode f77 flac font
-server foomaticdb gdbm gif gphoto2 gtk imagemagick imlib java jpeg libg++ libww
w mad maildir mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl pam perl p
ic png python quicktime readline real ruby scanner sdl slang speex sse ssl svg t
cltk tcpd tiff truetype truetype-fonts type1-fonts usb wmf x86 xml xml2 xmms xv 
zlib video_cards_rage128"
Comment 1 Ylosar Goer 2005-01-16 10:16:44 UTC
Created attachment 48667 [details, diff]
patch to link against giflib

Here is the modification to the ebuild that made mplayer build ok for me.
Comment 2 Benjamin Gehrels 2005-01-20 08:29:11 UTC
The same problem occurs with the mplayer_1.0-pre6 Version! If it's not possible to fix it, please at least include libungif in the dependency-list...
Comment 3 Chris White (RETIRED) gentoo-dev 2005-01-22 13:28:22 UTC
Fixed
Comment 4 opello@opello.org 2005-01-23 23:38:30 UTC
<a href="http://bugs.gentoo.org/show_bug.cgi?id=16288#c6">16288#6</a> said that if gif is in USE then mplayer should link against libgif otherwise link against libungif, while the current behavior seems to use libungif if gif is specified, but not pull it in as a dependency

I only bring it up because as I helped someone build mplayer, it diec on configure saying it couldn't find libungif, he had gif in his USE, but it wasn't pulled in as a dependency.  Simply emerging media-libs/libungif fixed it, but the way I read the ebuild it should have happened automatically.  He had the current ebuild mplayer-1.0_pre5-r5 (rev 1.14).

Sorry for replying to a resolved bug, but maybe something is still wrong?