MPLAYER -- missing symbols from libungif

Kay Lehmann kay_lehmann at
Sun Nov 16 05:23:08 PST 2003

walt schrieb:
> cc -O -pipe -mcpu=pentiumpro -D_THREAD_SAFE -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo 
> -I/usr/local/include/freetype2 -I/usr/local/include 
> -I/usr/local/include/freetype2 -I/usr/local/include 
> -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 
> -I/usr/local/include -I/usr/X11R6/include     -o mplayer mplayer.o 
> mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.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  vidix/libvidix.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/libpostproc.a postproc/libswscale.a 
> linux/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a   
> -lvorbis -logg   -llzo   -lpng -lz -lz -ljpeg  /usr/X11R6/lib/ 
> -export-dynamic -L/usr/local/lib -lfreetype -lz -ltermcap        
> -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/local/lib 
> -Wl,-E -lgmodule12 -lglib12 -lintl -lXi -lXext -lX11 -lm 
> -L/usr/local/lib -lglib12  -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama 
> -L/usr/X11R6/lib -lXext -lX11            -L/usr/local/lib -lesd 
> -laudiofile -lm   -L/usr/local/lib -L/usr/local/lib   -lc_r  -rdynamic 
> -liconv -lintl -lm
> libvo/libvo.a(vo_gif89a.o): In function `config':
> vo_gif89a.o(.text+0x26d): undefined reference to `EGifOpenFileName'
> vo_gif89a.o(.text+0x2de): undefined reference to `MakeMapObject'
> [plus many more missing libungif symbols]
> Seems like there is a missing -lungif maybe?
> _______________________________________________
> freebsd-ports at mailing list
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"


same problem here. Workaround seems to be disabling explicit configure 
option: --enable-gif in the ports-Makefile. This seems to disable 
autodetection of libungif and so _ld_gif isn't set properly from configure.

To Thomas (Maintainer):
I don't know if there is a special reason in setting the configure 
option, so maybe you could take a look at this?

-------------- next part --------------
--- Makefile.orig	Sun Nov 16 14:16:21 2003
+++ Makefile	Sun Nov 16 14:07:13 2003
@@ -385,7 +385,7 @@
 .if defined(WITH_LIBUNGIF)
 LIB_DEPENDS+=	ungif.5:${PORTSDIR}/graphics/libungif
-CONFIGURE_ARGS+=	--enable-gif
+#CONFIGURE_ARGS+=	--enable-gif
 CONFIGURE_ARGS+=	--disable-gif

More information about the freebsd-ports mailing list