[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#395177: libc6: default library search path is inconsistent with gcc



On Wed, Oct 25, 2006 at 02:37:04PM +0200, Vincent Lefevre wrote:

>   5. Run it. You should get:
> 
> GMP .....  Library: 4.2.1  -  Header: 4.2.17

This means the soname of gmp 4.2.1 and 4.2.17 is the same (or you'd have
got an "error while loading shared libraries ..." message). But that
also means that adding /usr/local/lib to /etc/ld.so.conf would _NOT_
solve your problem since the loader would still find libgmp.so.X in
/usr/lib first.

If you want to have two different shared libraries sharing the same
soname on the same system, then there is no other solution than setting
LD_LIBRARY_PATH to point explicitely to the version you want to use.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------



Reply to: