From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 2 04:45:14 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 6B6ED16A41A for ; Sun, 2 Dec 2007 04:45:13 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id CEF7413C442 for ; Sun, 2 Dec 2007 04:45:12 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-70-253.lns10.adl6.internode.on.net [121.45.70.253]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id lB24j52m043596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Dec 2007 15:15:06 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sun, 2 Dec 2007 15:15:02 +1030 User-Agent: KMail/1.9.7 References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201230022.R74097@fledge.watson.org> <20071202013010.GA6198@ace.netcins.ceid.upatras.gr> In-Reply-To: <20071202013010.GA6198@ace.netcins.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8672414.XfB2oCkLW8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200712021515.03884.doconnor@gsoft.com.au> X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: Nikos Ntarmos 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: Sun, 02 Dec 2007 04:45:14 -0000 --nextPart8672414.XfB2oCkLW8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 2 Dec 2007, Nikos Ntarmos wrote: > libraries under /compat/linux so that they match the FreeBSD > hierarchy (and teach ld-linux to use the same search path as the > native loader). And yet another solution is to teach the linuxolator > to first do an exhaustive search for libraries under /compat/linux > and only then fall back to native ones (this seems similar to the > above LD_LIBRARY_PATH incantation). The problem is that the dynamic linker is only opening files based on=20 the search path & cache - it doesn't know it isn't on a real linux box. I think the only way to 'fix' it would be to kludge the linuxulator to=20 treat ld.so specially but that would be pretty gross :( It IS a pain tho! :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart8672414.XfB2oCkLW8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHUjhP5ZPcIHs/zowRAoPdAJ0YMLLmTP1WinI3JcGmItTM6kB76gCeLQEd Zhh23Xbo5THo05GbjAdnRjs= =UVyC -----END PGP SIGNATURE----- --nextPart8672414.XfB2oCkLW8--