From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 24 23:50:40 2008 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 0CD05106566B; Fri, 24 Oct 2008 23:50:40 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id 453728FC0C; Fri, 24 Oct 2008 23:50:39 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAM/4AUl5LaeE/2dsb2JhbACBdsAvg08 X-IronPort-AV: E=Sophos;i="4.33,481,1220193000"; d="asc'?scan'208";a="239427316" Received: from ppp121-45-167-132.lns11.adl2.internode.on.net (HELO midget.dons.net.au) ([121.45.167.132]) by ipmail05.adl2.internode.on.net with ESMTP; 25 Oct 2008 10:05:21 +1030 Received: from inchoate.dons.net.au (Inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.14.3/8.14.3) with ESMTP id m9ONZI5l018075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Oct 2008 10:05:18 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 25 Oct 2008 09:58:04 +1030 User-Agent: KMail/1.9.10 References: <3c0b01820810231731s1b4d4659j7d1df8bf4abb229c@mail.gmail.com> <20081024104232.X21603@wojtek.tensor.gdynia.pl> <20081024125059.GE1137@server.vk2pj.dyndns.org> In-Reply-To: <20081024125059.GE1137@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6130417.c3uBpPzu6d"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810250958.15130.doconnor@gsoft.com.au> X-Spam-Score: -1.906 () BAYES_00,SPF_FAIL X-Scanned-By: MIMEDefang 2.64 on 10.0.2.7 Cc: Alexander Sack , freebsd-questions@freebsd.org, Wojciech Puchar Subject: Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries? 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: Fri, 24 Oct 2008 23:50:40 -0000 --nextPart6130417.c3uBpPzu6d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 24 October 2008 23:20:59 Peter Jeremy wrote: > >this will make system trying to bind 32-bit libs to 64-bit program. it > >can't work > > rtld shouldn't attempt to bind 32-bit libs to 64-bit programs. The same problem happens with the Linux run time linker - it merrily tries = to=20 link FreeBSD libraries to Linux binaries with predictable results.. One trick I use for that is to put a symlink in /compat/linux in the place = the=20 problematic FreeBSD library is.. That said it would be really nice if it ignored incompatible libraries :) =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 --nextPart6130417.c3uBpPzu6d Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBJAloP5ZPcIHs/zowRAisRAJ9jgqSxkyHKIbBfaT9ljWoFizmR5gCgo5lt +1NM25mggxvIOlXthJmB+h4= =Akc8 -----END PGP SIGNATURE----- --nextPart6130417.c3uBpPzu6d--