From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 1 16:33:56 2007 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 259A016A46C for ; Sat, 1 Dec 2007 16:33:56 +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 D674D13C4CC for ; Sat, 1 Dec 2007 16:33:55 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from doc.sem.ipt.ru ([192.168.12.1] helo=srv.sem.ipt.ru) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1IyUe0-0001b0-JX; Sat, 01 Dec 2007 18:52:40 +0300 To: Alexander Leidinger References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail> From: Boris Samorodov Date: Sat, 01 Dec 2007 18:56:39 +0300 In-Reply-To: <20071201162930.5c9fd4dd@deskjail> (Alexander Leidinger's message of "Sat\, 1 Dec 2007 16\:29\:30 +0100") Message-ID: <63824184@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: emulation@freebsd.org Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks 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: Sat, 01 Dec 2007 16:33:56 -0000 On Sat, 1 Dec 2007 16:29:30 +0100 Alexander Leidinger wrote: > > My LD_LIBRARY_PATH is set to /usr/compat/linux/lib:/usr/compat/linux/usr/lib. > The recommendation is to _not_ set the LD_LIBRARY_PATH. > > Why FreeBSD version is being picked up even though it's not > > in LD_LIBRARY_PATH? > Have a look at the search order of libs in linux. Correlate this with > the fact that when in linux an access is done to e.g. /lib/libX.so.y > which means that the linuxulator first looks > if /compat/linux/lib/libX.so.y is there, and if it isn't it looks > if /lib/libX.so.y is available. > AFAIR a work around is to add a link > in /compat/linux/usr/lib/librt.so.1 -> /lib/librt.so.1 A work around to what? The unexpected behaviour of linuxulator with non-null LD_LIBRARY_PATH? (BTW why does it happen?) And do you propose a link _only_ for librt or some other libraries as well? WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve