From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 15 05:50:29 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 108BF16A41F for ; Fri, 15 Jun 2007 05:50:29 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 8F67E13C46A for ; Fri, 15 Jun 2007 05:50:28 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5DFA4.dip.t-dialin.net [84.165.223.164]) by redbull.bpaserver.net (Postfix) with ESMTP id D5B9F2E241; Fri, 15 Jun 2007 07:50:17 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E0C305B4AAB; Fri, 15 Jun 2007 07:49:59 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l5F5nxdl071634; Fri, 15 Jun 2007 07:49:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 15 Jun 2007 07:49:59 +0200 Message-ID: <20070615074959.e18is1dass88wwso@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 15 Jun 2007 07:49:59 +0200 From: Alexander Leidinger To: "Sean C. Farley" References: <20070614152441.C1140@baba.farley.org> In-Reply-To: <20070614152441.C1140@baba.farley.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=5.196, required 8, BAYES_50 2.50, DKIM_POLICY_SIGNSOME 0.00, J_CHICKENPOX_62 0.60, J_CHICKENPOX_92 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-SpamScore: sssss X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: Library loading problem for Linux applications 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: Fri, 15 Jun 2007 05:50:29 -0000 Quoting "Sean C. Farley" (from Thu, 14 Jun =20 2007 15:40:40 -0500 (CDT)): > Since the xorg 7.2 upgrade, I have been unable to run games/linux-ut > (maintainer is yours truly). I believe it to be the way the libraries > are being loaded that is causing the problem. > > If I try to run the ut (shell script that runs ut-bin), I believe > SDLDrv.so is having trouble finding the Linux libXext.so.6. > > ut -log output (snipped): > Bound to SDLDrv.so > appError called: > Couldn't initialize SDL: No available video device > > ktrace output: > 52006 ut-bin CALL open(0xbfbfc5c0,0,0x287078ab) Please use linux_kdump or truss, the FreeBSD kdump doesn't translate =20 Linux syscalls. > If I fix the problem by running (cd /compat/linux/usr && ln -s X11R6 > local), then this is solved. Of course, there has to be a second > problem; it cannot find the Linux libGL.so.1. > > ut -log output (snipped): > Bound to OpenGLDrv.so > Loaded render device class. > Initializing OpenGLDrv... > binding libGL.so.1 > appError called: > Failed loading libGL.so.1: /usr/local/lib/libGL.so.1: ELF file OS ABI inva= lid > > ktrace output: > 1395 ut-bin CALL open(0xbfbfc870,0,0) > 1395 ut-bin NAMI "./tls/libGL.so.1" > 1395 ut-bin RET open JUSTRETURN > 1395 ut-bin CALL open(0xbfbfc870,0,0) > 1395 ut-bin NAMI "./libGL.so.1" > 1395 ut-bin RET open JUSTRETURN > 1395 ut-bin CALL open(0xbfbfc870,0,0) > 1395 ut-bin NAMI "/compat/linux/usr/local/lib/tls/libGL.so.1" > 1395 ut-bin NAMI "/usr/local/lib/tls/libGL.so.1" > 1395 ut-bin RET open JUSTRETURN > 1395 ut-bin CALL open(0xbfbfc870,0,0) > 1395 ut-bin NAMI "/compat/linux/usr/local/lib/libGL.so.1" > 1395 ut-bin NAMI "/usr/local/lib/libGL.so.1" > 1395 ut-bin RET open 49/0x31 > > What is the correct solution to have the Linux application search all > relevant directories in /compat first? LD_LIBRARY_PATH is ignored by That's the default. > these open() calls. The nVidia libGL.so.1 is installed in > /compat/linux/usr/lib. Do you have the right ld.so.conf (LINUXBASE/etc/) and =20 ld.so.conf.d/xorg-x11-i386.conf? The linux ldconfig has to be run =20 (chrooted). To be on the safe side remove all linux ports, clean =20 /compat/linux, and resinstall the linux ports. Currently it sounds =20 like a ldconfig problem... Bye, Alexander. --=20 If sarcasm were posted on Usenet, would anybody notice? =09=09-- James Nicoll http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137