From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 23:24:26 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 4216316A419 for ; Wed, 13 Feb 2008 23:24:26 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id F36CD13C447 for ; Wed, 13 Feb 2008 23:24:25 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.173.17.118] (helo=localhost.my.domain) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1JPQxl-0003WA-2M; Thu, 14 Feb 2008 02:24:25 +0300 To: stevefranks@ieee.org References: <539c60b90802121339k24b09f6hdc07f3faf035ed2f@mail.gmail.com> From: Boris Samorodov Date: Thu, 14 Feb 2008 02:24:05 +0300 In-Reply-To: <539c60b90802121339k24b09f6hdc07f3faf035ed2f@mail.gmail.com> (Steve Franks's message of "Tue\, 12 Feb 2008 14\:39\:09 -0700") Message-ID: <19965370@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 23:24:26 -0000 On Tue, 12 Feb 2008 14:39:09 -0700 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 The app should be branded as Linux. So try to use "brandelf -t Linux ". > fontconfg.so.1. So, how does FBSD figure out what lib to grab, and > why is it grabbing the wrong one? WBR -- bsam