From owner-freebsd-questions@FreeBSD.ORG Fri Oct 24 02:50:52 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 B55B5106567F for ; Fri, 24 Oct 2008 02:50:52 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id 537A78FC08 for ; Fri, 24 Oct 2008 02:50:52 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so16380wra.27 for ; Thu, 23 Oct 2008 19:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=Dzx903sh9SEh1L93ZF9Sc9r/9bELI34AcVRM/RAbnzU=; b=HTFVkwYtveOlLNN30hSDs3+f9y8jqTobhJuVdBS4UQX+RJsFf5Gx2Sfl6HnG+S6dbb hN4OijztsN2xW4H5LGIJoJigetYztWQlrXzF7d1q5bRCMA0YvXfIlL4TCeK9cb8j4T7T Ui3+smXl3E3WXlpudSMRhXdj10HO5A1TYH4jE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=M2jXKe+MSCMd1NvoybiZe29/RFCTUvBFuLO8EAlSbkg2ZzdvtTsPCWrnWgE3o7qPMt 7w2BDiEUE1vbvsiaaPmQ6UEeYY20rRwKZxTGDDV8pM8gFcaj1yRiOScvWO9xiM1rJ6ht 6qDjDx9ZEFG2ji6AYumSc4aSXdbT5/csH38cQ= Received: by 10.101.71.6 with SMTP id y6mr1747462ank.44.1224816651306; Thu, 23 Oct 2008 19:50:51 -0700 (PDT) Received: from kan.dnsalias.net (c-24-62-106-68.hsd1.ma.comcast.net [24.62.106.68]) by mx.google.com with ESMTPS id c4sm4758538anc.28.2008.10.23.19.50.49 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Oct 2008 19:50:50 -0700 (PDT) Date: Thu, 23 Oct 2008 22:50:42 -0400 From: Alexander Kabaev To: "Alexander Sack" Message-ID: <20081023225042.7cb581b0@kan.dnsalias.net> In-Reply-To: <3c0b01820810231931p2acbf426m7f1b94b73b466e5d@mail.gmail.com> References: <3c0b01820810231731s1b4d4659j7d1df8bf4abb229c@mail.gmail.com> <86hc72x0nx.fsf@ds4.des.no> <86d4hqwzur.fsf@ds4.des.no> <3c0b01820810231848r3e3e297cl3dc9bf1d0edcd588@mail.gmail.com> <20081023220949.7f304bbb@kan.dnsalias.net> <3c0b01820810231931p2acbf426m7f1b94b73b466e5d@mail.gmail.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8LAXxRSnJzF5u=PxuO58Blc"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-questions@freebsd.org Subject: Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries? 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: Fri, 24 Oct 2008 02:50:52 -0000 --Sig_/8LAXxRSnJzF5u=PxuO58Blc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 23 Oct 2008 22:31:40 -0400 "Alexander Sack" wrote: >=20 > Yes I figured that out on my own but my question still exists, why > isn't /usr/lib similar in format to /usr/lib32 though with respect to > major numbers? Actually now that I re-read your paragraph I suppose > this isn't such a bad idea but for some reason I believe that if you > have /usr/lib before /usr/lib32 it should *just* work. >=20 The last statement is as wrong as it gets. I tried but I still fail to see the reason why you would possibly expect that to work reliably. By setting LD_LIBRARY_PATH to /usr/lib:/usr/lib32, you cause dynamic linker to look for libraries in /usr/lib, usr/lib32 and /lib in that exact order, so if library in /usr/lib32 shadows one in /lib, it will be rightly picked up and you will get exactly what you asked for. --=20 Alexander Kabaev --Sig_/8LAXxRSnJzF5u=PxuO58Blc Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD4DBQFJATgCQ6z1jMm+XZYRAokhAJ4lAr4wmCDtjPdrdLHYtQ8rzjQXVwCWMx6s O5I/QH8uAAihSw6pyt7hQQ== =WeV5 -----END PGP SIGNATURE----- --Sig_/8LAXxRSnJzF5u=PxuO58Blc--