amd64/171250: ldd32 cannot find some i386 libraries
ambrisko at ambrisko.com
Wed Sep 5 16:58:20 UTC 2012
On Tue, Sep 04, 2012 at 11:05:12AM -0400, John Baldwin wrote:
| > On the other hand, I do not know what to do with non-default pathes,
| > that is /usr/local/lib in your case. Please note that some library can
| > be find there for many reasons, and I cannot imagine a sane way to
| > translate to 32bit compat path without involving some additional config.
| Doug Ambrisko has patches to do this that I think are close to reasonable.
| I believe his current patches allow you to use commands to ldconfig (or
| lines in libmap.conf) to map specific directories in RPATH to alternate
| directories. His specific use case is supporting binaries from older
| OS versions (so having an alternate /usr/local/lib for 6.x binaries for
| example), but it should solve the 32-bit problem equally well.
I'm not sure my patches will address this specific case since looking
at the email trail the path was hard-coded in the library. My patches
delt with the default search path which is already unique in this
case (lib32). It also modified the search paths for LD_LIBRARY_PATH
So this is probably another case to look at. Dealing with this
might be good to do via an extension libmap.conf. I haven't
had a chance to look at doing that to make things more flexible.
More information about the freebsd-amd64