[MPlayer-users] [BUG] (?) trouble compiling mplayer with --enable-static

Corey Hickey bugfood-ml at fatooh.org
Sat Jan 31 11:10:41 CET 2004


Hi,

I'm trying to compile current mplayer CVS using static linking, but it
has some trouble at the final step with (I think) conflicts between
/usr/lib/libmp3lame.a and mp3lib/libMP3.a. Here's the output (kinda long):

===BEGIN===
gcc-3.3 -O4 -march=i486 -mcpu=i686 -pipe -ffast-math
-fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -Ilibmpdemux -Iloader -Ilibvo
-I/usr/include/freetype2          -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  vidix/libvidix.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 -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a
-lmad     -lmp3lame  -lxvidcore -lm -lpng -lz -static -lz -ljpeg
-lasound -ldl -lpthread    -lfreetype -lz -ltermcap -lcdda_interface
-lcdda_paranoia -lnsl   -lungif    -Llibmpflac -lmpflac
libfaad2/libfaad2.a  -static   -lmad -lnsl     -lvgagl -lvga -lm
-L/usr/lib -lesd -laudiofile -lm      -static -lpthread -ldl -rdynamic   -lm
/usr/lib/libmp3lame.a(common.o)(.bss+0x0): multiple definition of
`pcm_point'
mp3lib/libMP3.a(sr1.o)(.bss+0x38): first defined here
/usr/lib/libmp3lame.a(layer2.o)(.rodata+0x0): multiple definition of
`alloc_0'
mp3lib/libMP3.a(sr1.o)(.data+0x1da0): first defined here
/usr/lib/libmp3lame.a(layer2.o)(.rodata+0x480): multiple definition of
`alloc_1'
mp3lib/libMP3.a(sr1.o)(.data+0x2220): first defined here
/usr/lib/libmp3lame.a(layer2.o)(.rodata+0x940): multiple definition of
`alloc_2'
mp3lib/libMP3.a(sr1.o)(.data+0x26e0): first defined here
/usr/lib/libmp3lame.a(layer2.o)(.rodata+0xa80): multiple definition of
`alloc_3'
mp3lib/libMP3.a(sr1.o)(.data+0x2820): first defined here
/usr/lib/libmp3lame.a(layer2.o)(.rodata+0xc40): multiple definition of
`alloc_4'
mp3lib/libMP3.a(sr1.o)(.data+0x29e0): first defined here
/usr/lib/libmp3lame.a(layer3.o)(.rodata+0x1680): multiple definition of
`bandInfo'
mp3lib/libMP3.a(sr1.o)(.data+0x33c0): first defined here
/usr/bin/ld: Warning: size of symbol `bandInfo' changed from 2592 in
mp3lib/libMP3.a(sr1.o) to 1296 in mp3lib/libMP3.a(sr1.o)
/usr/lib/libmp3lame.a(layer3.o)(.text+0x0): In function `init_layer3':
: multiple definition of `init_layer3'
mp3lib/libMP3.a(sr1.o)(.text+0x1b0): first defined here
/usr/bin/ld: Warning: size of symbol `init_layer3' changed from 2630 in
mp3lib/libMP3.a(sr1.o) to 5923 in mp3lib/libMP3.a(sr1.o)
/usr/lib/libmp3lame.a(tabinit.o)(.data.rel.local+0x0): multiple
definition of `pnts'
mp3lib/libMP3.a(sr1.o)(.data+0x1798): first defined here
/usr/lib/libmp3lame.a(tabinit.o)(.text+0x0): In function
`make_decode_tables':
: multiple definition of `make_decode_tables'
mp3lib/libMP3.a(sr1.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `make_decode_tables' changed from
424 in mp3lib/libMP3.a(sr1.o) to 911 in mp3lib/libMP3.a(sr1.o)
vidix/libvidix.a(vidixlib.o)(.text+0x73): In function `vdlOpen':
: warning: Using 'dlopen' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/usr/lib/libcdda_interface.a(scan_devices.o)(.text+0x135): In function
`cdda_find_a_cdrom':
: warning: Using 'getpwuid' in statically linked applications requires
at runtime the shared libraries from the glibc version used for linking
libmpdemux/libmpdemux.a(network.o)(.text+0x596): In function
`check4proxies':
: warning: Using 'gethostbyname' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
libmpdemux/libmpdemux.a(network.o)(.text+0x129): In function
`connect2Server_with_af':
: warning: Using 'gethostbyname2' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
===END===

My configure command is:
./configure --enable-runtime-cpudetection --disable-gui
-enable-largefiles --disable-lirc --disable-tv --disable-tv-v4l
--disable-edl --cc=gcc-3.3 --enable-static --disable-sdl --disable-aa

System info:
Linux bugfood 2.6.1-mm1 #1 Fri Jan 9 20:19:11 PST 2004 i686 GNU/Linux
Libc version 2.3.2
gcc version 3.3.2 (Debian)
GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux
GNU assembler 2.14.90.0.7 20031029 Debian GNU/Linux
lame version 3.94

I am attaching config.h, config.mak, and a full log of the compilation.
Each file is bzipped, of course.

Thanks,
Corey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mak.bz2
Type: application/octet-stream
Size: 1352 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040131/1c7ec162/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h.bz2
Type: application/octet-stream
Size: 4680 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040131/1c7ec162/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log3.log.bz2
Type: application/octet-stream
Size: 14547 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040131/1c7ec162/attachment-0002.obj>


More information about the MPlayer-users mailing list