Date: Sat, 01 Dec 2007 18:56:39 +0300 From: Boris Samorodov <bsam@ipt.ru> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: emulation@freebsd.org Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks Message-ID: <63824184@srv.sem.ipt.ru> In-Reply-To: <20071201162930.5c9fd4dd@deskjail> (Alexander Leidinger's message of "Sat\, 1 Dec 2007 16\:29\:30 %2B0100") References: <1196470143.4750af7f6accf@webmail.rawbw.com> <20071201162930.5c9fd4dd@deskjail>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Dec 2007 16:29:30 +0100 Alexander Leidinger wrote: > > My LD_LIBRARY_PATH is set to /usr/compat/linux/lib:/usr/compat/linux/usr/lib. > The recommendation is to _not_ set the LD_LIBRARY_PATH. > > Why FreeBSD version is being picked up even though it's not > > in LD_LIBRARY_PATH? > 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 A work around to what? The unexpected behaviour of linuxulator with non-null LD_LIBRARY_PATH? (BTW why does it happen?) And do you propose a link _only_ for librt or some other libraries as well? WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63824184>