[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: picking up the correct copy of a library
From: |
Jan Kratochvil |
Subject: |
Re: picking up the correct copy of a library |
Date: |
Fri, 13 Jun 2003 04:41:38 +0200 |
User-agent: |
Mutt/1.4i |
Hi,
On Fri, 13 Jun 2003 03:55:53 +0200, Ted Irons wrote:
...
> In the following there is a version of libNITF.so in
> /swl/opt/ix86-linux/lib and a local copy of libNITF.so
> in /volume19/msife/users/ironst/dev/ix86-linux/lib.
...
> So far OK, but then
>
> [1327.virgo..libs] ldd libXWImage.so
> ...
> libimgtool.so.1 => /swl/opt/ix86-linux/lib/libimgtool.so.1(0x40289000)
> libatrutil.so.1 => /swl/opt/ix86-linux/lib/libatrutil.so.1(0x40292000)
> libNITFUtil.so.1 =>
> /swl/opt/ix86-linux/lib/libNITFUtil.so.1(0x40351000)
> libNITF.so.1 => /swl/opt/ix86-linux/lib/libNITF.so.1 (0x40359000)
> ...
>
> What has gone wrong?
Final binary ("libXWImage.so") contains only the DT_SONAME name field out of
the shared library "NITF" which is set as "libNITF.so.1" string in both
"/swl/opt/ix86-linux/lib/libNITF.so" and
"/volume19/msife/users/ironst/dev/ix86-linux/lib/libNITF.so".
For proper runtime resolve you need to also provide LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=/volume19/msife/users/ironst/dev/ix86-linux/lib/
ldd libXWImage.so
Lace