[MPlayer-users] compile error

Adam Sulmicki adam at cfar.umd.edu
Sun Nov 26 19:32:31 CET 2006


[please cc on reply, if any]

0) svn sources as of 26.11.2006

1) trying to configure as :

# ./configure --prefix=/usr/local/mp-fb --target=pentium2 --enable-fbdev
--enable-s3fb --enable-menu --enable-static --disable-x11
--disable-mencoder --disable-fribidi --disable-gif --disable-cdparanoia
--disable-speex --disable-esd --disable-sdl --disable-mmxext
--disable-3dnow --disable-3dnowext --disable-sse --disable-sse2
--disable-ftp --disable-tv --disable-dvb --disable-dvbhead
--disable-xanim --disable-ivtv --disable-tga --disable-pnm --disable-png
--disable-md5sum --disable-ossaudio --disable-vidix-internal
--disable-vidix-external --disable-dvdnav --disable-dvdread
--disable-dvdread-internal --disable-libdvdcss-internal
--disable-network

2) results in following error on make :

# make
[...]
cc -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 libmenu/libmenu.a
libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a
stream/stream.a libswscale/libswscale.a libvo/libosd.a
libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a
libpostproc/libpostproc.a loader/libloader.a mp3lib/libMP3.a
liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a
tremor/libvorbisidec.a osdep/libosdep.a  -Wl,-z,noexecstack   -lncurses
-lasound -ldl -lpthread -lz -lmad  -ltheora -logg   -llirc_client
-static -lm  -lpthread -ldl
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libasound.a(dlmisc.o): In
function `snd_dlopen':
(.text+0x2fc): warning: Using 'dlopen' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
libavformat/libavformat.a(matroska.o): In function
`matroska_read_header':
matroska.c:(.text+0x58c7): undefined reference to `put_le16'
matroska.c:(.text+0x58d6): undefined reference to `put_le16'
matroska.c:(.text+0x58e5): undefined reference to `put_le16'
matroska.c:(.text+0x58f4): undefined reference to `put_le32'
matroska.c:(.text+0x5914): undefined reference to `put_le32'
collect2: ld returned 1 exit status
make: *** [mplayer] Bd 1

3) poking in sources shows that put_le32 depends on:

# grep -wC3  "void put_le32" mplayer/libavformat/aviobuf.c
}

#if defined(CONFIG_MUXERS) || defined(CONFIG_PROTOCOLS)
void put_le32(ByteIOContext *s, unsigned int val)
{
     put_byte(s, val);
     put_byte(s, val >> 8);

4) commenting out the above ifdef makes the compile succeed


now if I only knew what made my OSD go away :(

-- 
Adam Sulmicki
http://www.eax.com 	The Supreme Headquarters of the 32 bit registers



More information about the MPlayer-users mailing list