Linux executable picks up FreeBSD library over linux one and breaks

Daniel O'Connor doconnor at gsoft.com.au
Sat Dec 1 20:45:14 PST 2007


On Sun, 2 Dec 2007, Nikos Ntarmos wrote:
> libraries under /compat/linux so that they match the FreeBSD
> hierarchy (and teach ld-linux to use the same search path as the
> native loader). And yet another solution is to teach the linuxolator
> to first do an exhaustive search for libraries under /compat/linux
> and only then fall back to native ones (this seems similar to the
> above LD_LIBRARY_PATH incantation).

The problem is that the dynamic linker is only opening files based on 
the search path & cache - it doesn't know it isn't on a real linux box.

I think the only way to 'fix' it would be to kludge the linuxulator to 
treat ld.so specially but that would be pretty gross :(

It IS a pain tho! :)

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071202/e8e2b17f/attachment.pgp


More information about the freebsd-hackers mailing list