From owner-freebsd-multimedia Tue Nov 26 4: 8:27 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCC2337B401 for ; Tue, 26 Nov 2002 04:08:25 -0800 (PST) Received: from mother.ludd.luth.se (mother.ludd.luth.se [130.240.16.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21CAB43EC2 for ; Tue, 26 Nov 2002 04:08:24 -0800 (PST) (envelope-from pb@ludd.luth.se) Received: from brother.ludd.luth.se (brother.ludd.luth.se [130.240.16.78]) by mother.ludd.luth.se (8.11.6+Sun/8.9.3) with ESMTP id gAQC8LX07409; Tue, 26 Nov 2002 13:08:21 +0100 (MET) From: Peter B Received: (from pb@localhost) by brother.ludd.luth.se (8.11.6+Sun/8.9.3) id gAQC8Lj22635; Tue, 26 Nov 2002 13:08:21 +0100 (MET) Message-Id: <200211261208.gAQC8Lj22635@brother.ludd.luth.se> Subject: Mplayer "libm.so.6" missing.. To: freebsd-multimedia@freebsd.org Date: Tue, 26 Nov 2002 13:08:21 +0100 (MET) Cc: mplayer-users@mplayerhq.hu X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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