[MPlayer-users] Mplayer "libm.so.6" missing..

Peter B pb at ludd.luth.se
Tue Nov 26 13:39:02 CET 2002


OS:   FreeBSD 4.7-RELEASE #0
App:  MPlayer-0.90pre10 compiled from source

Anyone had "libm.so.6" not found problem with mplayer/freebsd ..?

==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
Cannot open dll: Shared object "libm.so.6" not found
ADecoder preinit failed :(
ADecoder init failed :(
*** Try to upgrade /home/pb/.mplayer/codecs.conf from etc/codecs.conf
*** If it still does not work, read DOCS/codecs.html!
Can't find codec for audio format 0x72706973!
==========================================================================

Using LD_LIBRARY_PATH to a directory with:
lrwx------  1 pb  wheel  33 Nov 26 13:01 ld-linux.so.2@ -> /usr/compat/linux/lib/ld-2.2.4.so
lrwx------  1 pb  wheel  35 Nov 26 13:00 libc.so.6@ -> /usr/compat/linux/lib/libc-2.2.4.so
lrwx------  1 pb  wheel  35 Nov 26 13:00 libm.so.6@ -> /usr/compat/linux/lib/libm-2.2.4.so
(pkg: linux_base-7.1_1)


Gives:
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
Cannot open dll: /tmp/libc.so.6: Undefined symbol "_rtld_global"
ADecoder preinit failed :(
ADecoder init failed :(
*** Try to upgrade /home/pb/.mplayer/codecs.conf from etc/codecs.conf
*** If it still does not work, read DOCS/codecs.html!
Can't find codec for audio format 0x72706973!
==========================================================================


By adding the line "int _rtld_global;" ahead of the preinit() function in 
libmpcodecs/ad_realaud.c 
(symbol found in libc-2.3.1.so)

==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
Audio codec: [1] 8.5 Kbps Voice
Audio bitrate: 8.500 kbit/s (1063 bps)  
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 1063->16000 (8.5 kbit)
Selected audio codec: [rasipr] afm:realaud (RealAudio Sipro)
==========================================================================

And thus makes things work ;)
Seems dlopen() misses to use proper linux path (/usr/compat/linux) to load
linux libraries.

Is there a more right way(tm) to make this work without messing with 
LD_LIBRARY_PATH ..?

         /P




More information about the MPlayer-users mailing list