Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 13:08:21 +0100 (MET)
From:      Peter B <pb@ludd.luth.se>
To:        freebsd-multimedia@freebsd.org
Cc:        mplayer-users@mplayerhq.hu
Subject:   Mplayer "libm.so.6" missing..
Message-ID:  <200211261208.gAQC8Lj22635@brother.ludd.luth.se>

next in thread | raw e-mail | index | archive | help

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211261208.gAQC8Lj22635>