From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 23 14:52:37 2007 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3862016A419 for ; Sun, 23 Sep 2007 14:52:37 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id B0AF513C447 for ; Sun, 23 Sep 2007 14:52:36 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1IZSp0-000JKD-WD for freebsd-emulation@FreeBSD.org; Sun, 23 Sep 2007 18:52:35 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IZSpt-000269-PW for freebsd-emulation@FreeBSD.org; Sun, 23 Sep 2007 18:53:29 +0400 To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Date: Sun, 23 Sep 2007 18:53:29 +0400 Message-ID: <75454726@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Can't get audio in realvideo X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2007 14:52:37 -0000 Please, keep freebsd-emulation@ cc'ed. At the list there are significantly more people capable to help you... On Sun, 23 Sep 2007 05:48:10 +0200 (CEST) Andreas Davour wrote: > On Sat, 22 Sep 2007, Boris Samorodov wrote: > > On Sat, 22 Sep 2007 08:03:56 +0200 (CEST) Andreas Davour wrote: > > > >> I have stumbled upon a realvideo file that I want to play, and mplayer > >> is for some reason not very forthcoming. > > > >> Anyone care to tell me why this doesn't work? I do have a libm.so.6 on > >> my computer in /usr/compat/linux/lib and have both the newest > >> linux-base_fc4 and the newest mplayer installed. > > > >> Note that I get video, even if mplayer complains about not finding > >> video decoders. > > > >> Any hints? > > > > Can you give a link (http/ftp) to the result of "ktrace -i "? > Thanks. > http://www.update.uu.se/~ante/ktrace.out > I hope you can make some sense out of it. Here is what happens: ----- 1149 mplayer RET write 75/0x4b 1149 mplayer CALL write(0x1,0x87f1000,0x33) 1149 mplayer GIO fd 1 wrote 51 bytes "Opening video decoder: [realvid] RealVideo decoder " 1149 mplayer RET write 51/0x33 1149 mplayer CALL sigprocmask(0x1,0x286589e0,0xbfbfd520) 1149 mplayer RET sigprocmask 0 1149 mplayer CALL open(0x286626c0,0,0) 1149 mplayer NAMI "/usr/local/lib/RealPlayer/codecs/drvc.so" [1] 1149 mplayer RET open 5 1149 mplayer CALL fstat(0x5,0xbfbfd500) 1149 mplayer RET fstat 0 1149 mplayer CALL read(0x5,0x28658aa0,0x1000) 1149 mplayer GIO fd 5 read 4096 bytes ----- Before [1] there was a pure FreeBSD executable and environment. And codecs/drvc.so is a linux library: ----- # file drvc.so drvc.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped # strings drvc.so | grep lib libstdc++.so.5 libm.so.6 libgcc_s.so.1 libc.so.6 ----- Back to our trace: ----- 1149 mplayer RET read 4096/0x1000 1149 mplayer CALL mmap(0,0x51000,0x5,0x20002,0x5,0,0,0) 1149 mplayer RET mmap 702193664/0x29daa000 1149 mplayer CALL mprotect(0x29df6000,0x1000,0x7) 1149 mplayer RET mprotect 0 1149 mplayer CALL mprotect(0x29df6000,0x1000,0x5) 1149 mplayer RET mprotect 0 1149 mplayer CALL mmap(0x29df7000,0x1000,0x3,0x12,0x5,0,0x4d000,0) 1149 mplayer RET mmap 702509056/0x29df7000 1149 mplayer CALL mmap(0x29df8000,0x3000,0x3,0x1012,0xffffffff,0,0,0) 1149 mplayer RET mmap 702513152/0x29df8000 1149 mplayer CALL close(0x5) 1149 mplayer RET close 0 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/lib/libstdc++.so.5" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/lib/libstdc++.so.5" 1149 mplayer RET access 0 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/lib/compat/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/X11R6/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/compat/pkg/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/compat/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/gcc/i386-portbld-freebsd6.2/3.4.6/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/graphviz/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/kde3/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/mplayer/vidix/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/mysql/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/nss/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/pth/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/lib/wine/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/local/libexec/openldap/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL access(0x28661000,0) 1149 mplayer NAMI "/usr/lib/libm.so.6" 1149 mplayer RET access -1 errno 2 No such file or directory 1149 mplayer CALL munmap(0x29daa000,0x51000) 1149 mplayer RET munmap 0 1149 mplayer CALL sigprocmask(0x3,0x286589f0,0) 1149 mplayer RET sigprocmask 0 1149 mplayer CALL sigprocmask(0x1,0x286589e0,0xbfbfd520) 1149 mplayer RET sigprocmask 0 1149 mplayer CALL sigprocmask(0x3,0x286589f0,0) 1149 mplayer RET sigprocmask 0 1149 mplayer CALL write(0x2,0xbfbfc990,0x42) 1149 mplayer GIO fd 2 wrote 66 bytes "Error: Shared object "libm.so.6" not found, required by "drvc.so" " ----- Realplayer uses FreeBSD native libraries. There is no libm.so.6 among them. While mplayer (should it?) does not know anything about linuxulator paths/libraries. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve