I don't think so, because that would remain even running "LD_LIBRARY_PATH..... 
ldd", while it solves it.
I thought RPATH/RUNPATH would force the lib to look where I told it.
Also I find it strange that the same lib shows two different versions.
----------------------------------------------------------------------------------
Da: Alexander Pyhalov
A: [email protected] Gabriele Bulfon
Data: 5 marzo 2015 10.38.52 CET
Oggetto: Re: [discuss] library dependencies clarification
On 03/05/2015 12:20, Gabriele Bulfon via illumos-discuss wrote:
Also, why this happens even though these libs have RUNPATH and RPATH specifying 
correctly?
Here is an example:
bash# elfdump -d libabplo.so
...
[37]  RUNPATH           0x1eec2             
/usr/gcc/4.7/lib:/lib:/usr/lib:/usr/lib/mps:/usr/lib/libreoffice/program:/usr/lib/libreoffice/ure-link/lib
[38]  RPATH             0x1eec2             
/usr/gcc/4.7/lib:/lib:/usr/lib:/usr/lib/mps:/usr/lib/libreoffice/program:/usr/lib/libreoffice/ure-link/lib
...
bash# ldd libabplo.so
libstdc++.so.6 =/usr/gcc/4.7/lib/libstdc++.so.6
...
libgcc_s.so.1 =/usr/gcc/4.7/lib/libgcc_s.so.1
...
libstdc++.so.6 =/usr/gcc/4.4/lib/libstdc++.so.6
libgcc_s.so.1 =/usr/gcc/4.4/lib/libgcc_s.so.1
thanks for any help,
Hello.
Can it happen because of transitive dependency?
E.g. some libA is linked with /usr/gcc/4.4/lib/libstdc++.so.6 and have
RPATH=/usr/gcc/4.4/lib, libabplo is linked to libA and
/usr/gcc/4.7/lib/libstdc++ and so gets both dependencies?
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to