[MPlayer-dev-eng] [PATCH] regression: avcodec_pix_fmt_to_codec_tag undefined

Diego Biurrun diego at biurrun.de
Fri Jul 7 09:49:35 CEST 2006


On Fri, Jun 23, 2006 at 02:12:12PM +0200, Chi-Thanh Christopher Nguyen wrote:
> 
> This is an error that was fixed before, but was introduced again:
> 
> gcc -I../libvo -I../../libvo  -O4  -mcpu=v9 -pipe -ffast-math 
> -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
> -I.      -I/usr/sfw/include/freetype2 -I/usr/sfw/include 
> -I/opt/csw/include -I/opt/csw/include/SDL -D_REENTRANT    -I./libavutil 
> -I./libavcodec   -o mplayer mplayer.o m_property.o mp_msg.o asxparser.o 
> codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o 
> m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o 
> subreader.o vobsub.o  unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o  
> libvo/libvo.a libao2/libao2.a input/libinput.a    
> libmpcodecs/libmpcodecs.a  libaf/libaf.a libmpdemux/libmpdemux.a 
> postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit  
> libavcodec/libavcodec.a  libavformat/libavformat.a  
> libavutil/libavutil.a  libpostproc/libpostproc.a  -lmad  -ltheora   
> -lmp3lame     -lz -ljpeg     -lspeex  -lfaac -L/usr/sfw/lib 
> -R/usr/sfw/lib -lfreetype -lncurses  -lsocket -lnsl   -lungif 
> -L/usr/X11R6/lib -lXext -lX11 -lsocket -lnsl    -L/opt/csw/lib -lfribidi 
> -lfontconfig   libfaad2/libfaad2.a  mp3lib/libMP3.a liba52/liba52.a 
> libmpeg2/libmpeg2.a tremor/libvorbisidec.a  -laa -lGL       
> -L/usr/X11R6/lib -lXext -lX11 -lsocket -lnsl  -lsocket -lnsl 
> -L/opt/csw/lib -R/opt/csw/lib -lSDL -lpthread -lposix4         
> -L/opt/csw/kde-gcc/lib -ldl -lartsc -lpthread -L/opt/csw/lib 
> -lgmodule-2.0 -ldl -lgthread-2.0 -lthread -lglib-2.0 -lintl -liconv 
> -L/usr/lib -lesd -laudiofile -lm -lrt -lresolv -lnsl -lsocket   -laudio 
> -lXt -L/usr/X11R6/lib -lXext -lX11 -lsocket -lnsl         -lposix4 
> -lkstat     -liconv -lm
> Undefined                       first referenced
> symbol                             in file
> avcodec_pix_fmt_to_codec_tag        libavformat/libavformat.a(utils.o)
> ld: fatal: Symbol referencing errors. No output written to mplayer
> collect2: ld returned 1 exit status
> gmake-3.80: *** [mplayer] Error 1
> 
> See also 
> http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2005-May/034446.html

No, this was not fixed before as the patch from that mail was never
applied.

More details please, on what system does this error occur?  I'm fine on
PPC Linux.  The linking order has been like this for ages, so apparently
this problem only affects a few platforms.

Diego



More information about the MPlayer-dev-eng mailing list