From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 1 23:01:55 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 776F016A419 for ; Sat, 1 Dec 2007 23:01:55 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 33E4F13C467 for ; Sat, 1 Dec 2007 23:01:54 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 73CD946BD6; Sat, 1 Dec 2007 18:06:18 -0500 (EST) Date: Sat, 1 Dec 2007 23:01:46 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Alexander Leidinger In-Reply-To: <20071201162930.5c9fd4dd@deskjail> Message-ID: <20071201230022.R74097@fledge.watson.org> References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, freebsd-hackers@freebsd.org, Yuri Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2007 23:01:55 -0000 On Sat, 1 Dec 2007, Alexander Leidinger wrote: > 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 > > I want to do something like this in the FC4 port, but hadn't time to do it > and test it so far. It sounds like the real problem is that there are some cases where we don't want the Linuxulator to merge the underlying and Linux views of the file system -- we don't want the union of /compat/linux/lib and /lib, we just want /compat/linux/lib? Robert N M Watson Computer Laboratory University of Cambridge