From owner-freebsd-questions Sat Dec 28 12:20:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 295F637B401 for ; Sat, 28 Dec 2002 12:20:51 -0800 (PST) Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFDF343EB2 for ; Sat, 28 Dec 2002 12:20:50 -0800 (PST) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.166.23.138]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0H7U00EZVJ6PWO@mta6.snfc21.pbi.net> for freebsd-questions@freebsd.org; Sat, 28 Dec 2002 12:20:50 -0800 (PST) Date: Sat, 28 Dec 2002 12:20:49 -0800 (PST) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Subject: Re: linux compatability In-reply-to: <20021228144050.H965@sorrow.ashke.com> X-X-Sender: mikko@atlas.home To: Adam K Kirchhoff Cc: freebsd-questions@freebsd.org Message-id: <20021228121434.B18514-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 28 Dec 2002, Adam K Kirchhoff wrote: > Hey folks, > > I'm noticing some odd behaviour with the linux compatability > recently. I have this small gnome app called gnome-run. It links against > a number of gnome libraries that I've copied from my linux partition over > to /compat/linux and put in the appropriate directories. > > The problem is, when executing this app, the linker seems to try > and load the libaudiofile.so.0 file from my FreeBSD installation instead > of my /compat/linux installation. When running gnome-run it only does > this for that one library (though other apps have shown this to be a > problem with other libraries such as libgmodule-2.0.so.0, > libglib-2.0.so.0, and libgobject-2.0.so.0) > > This is what happens when I try to launch "gnome-run" from an > xterm: > > [ adamk@sorrow ~ ]$ gnome-run > gnome-run: error while loading shared libraries: > /usr/local/lib/libaudiofile.so.0: ELF file OS ABI invalid > > Well, of course the OS ABI is invalid. The libaudiofile library > it's trying to load is for FreeBSD, not Linux. But, if I move the > libaudiofile.so.0 file from /usr/local/lib to /usr/local/lib/old, and > try to launch gnome-run, everything works fine. So, if the FreeBSD > version of the library isn't present, it then looks for the Linux version. > > Any ideas what's going on or how to fix this? Run "/compat/linux/sbin/ldconfig". That should update the path cache of the (linux) dynamic linker. I assume the permissions on the libs already are reasonable. $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message