How to prevent 64bit library paths being searched for 32bit binaries on amd64?

Steven Hartland killing at multiplay.co.uk
Sun Oct 4 02:55:47 UTC 2009


I've just been trying to get a 32bit binary to work on amd64 7.0-RELEASE,
the binary had some qt4 dependencies so I set about copying these into
/usr/local/lib32 but it seems that for some reason /usr/local/lib is
searched first which obviously causes problems when here is a 64bit
library of the same name.

/etc/rc.d/ldconfig start 
shows:-
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
 /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
 /usr/local/lib/mysql /usr/local/lib/pth
32-bit compatibility ldconfig path: /usr/lib32 /usr/local/lib32
 /usr/local/lib32/mysql /usr/local/lib32/qt4

LD_LIBARY_PATH isn't set

So the question is why is /usr/local/lib searched for a 32bit binary?

Is it possible the binary itself is setting it and if so how to I
override it?

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-hackers mailing list