From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 19:42:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A81916A417 for ; Wed, 13 Feb 2008 19:42:36 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id E21A113C45E for ; Wed, 13 Feb 2008 19:42:35 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 880 invoked from network); 13 Feb 2008 19:42:35 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 13 Feb 2008 19:42:35 -0000 Message-ID: <47B346F9.9090401@chuckr.org> Date: Wed, 13 Feb 2008 14:37:29 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: stevefranks@ieee.org References: <539c60b90802121339k24b09f6hdc07f3faf035ed2f@mail.gmail.com> <539c60b90802130936o3e509fefha9452eb24acb6056@mail.gmail.com> In-Reply-To: <539c60b90802130936o3e509fefha9452eb24acb6056@mail.gmail.com> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: User Questions Subject: Re: linux program only runs from /compat/linux/usr/lib X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 19:42:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Franks wrote: > If I cd to /compat/linux/usr/lib, and start , it > runs fine. If I start it from any other location, I get > /usr/lib/libfontconfig.so.1 : wrong ABI. So the app is finding the > FreeBSD lib instead of the Linux one. I tried putting > /compat/linux/usr/lib at the very front of my path and it doesn't seem > to fix it. Brandelf looks correct (SRV4) for both the app, and > fontconfg.so.1. So, how does FBSD figure out what lib to grab, and > why is it grabbing the wrong one? Do you have the Linuxulator's ld.so.conf (which sits in /compat/linux/etc) set with the correct path(s), and NOT picking up the stuff in /usr/local? I am not at all sure that's what's biting you, but it'd be one way to get bitten. There are parallel ld.so tools for Linux and for FreeBSD, and the Linux one is supposed to stick a prefix of /compat onto it. You could try using the Linux "ldd"program, it should only find the correct libs. Fear of what your suggest is why, a short whioe back, I tried waging a war to get folks to move all their linux libs back into the /compat tree, so this sort of confusion couldn't happen, but I can't honestly say if that's really what bit you here or not. > > Steve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHs0b5z62J6PPcoOkRAvT3AJ4sDG3sX9J5Qy7/XwHYDHZRmV+U/ACbB/Jh /gj4gxYCzsE+J1EGAgoGuxo= =+rcS -----END PGP SIGNATURE-----