Linux executable picks up FreeBSD library over linux one and
breaks
Boris Samorodov
bsam at ipt.ru
Sat Dec 1 08:33:56 PST 2007
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
More information about the freebsd-emulation
mailing list