Date: Thu, 23 Oct 2008 22:50:42 -0400 From: Alexander Kabaev <kabaev@gmail.com> To: "Alexander Sack" <pisymbol@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries? 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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" <pisymbol@gmail.com> 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 <trimmed hackers@ from CC as this question does not belong there> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081023225042.7cb581b0>