Some libraries are not found without LD_LIBRARY_PATH mangling

Michael Pyne michael.pyne at kdemail.net
Fri Oct 26 22:40:57 BST 2007


On Friday 26 October 2007, Andras Mantia wrote:
> On Saturday 27 October 2007, Michael Pyne wrote:
> > You may have to recompile/reinstall kdesupport but I'm not sure why
> > CMake wouldn't have added the appropriate flags.
>
> This was a clear compilation: empty build dir, empty install dir, no
> sign of other KDE4 libraries on my disk.

To confirm use the readelf tool on the libraries in question:

readelf -d /path/to/lib.so | grep 'R.*PATH'

You should get output display the RUNPATH and RPATH entries.  (RUNPATH is 
preferred if present).

e.g.

$ readelf -d /usr/lib64/libkdeinit_koshell.so | grep 'R.*PATH'
 0x000000000000000f (RPATH)              Library rpath: 
[/usr/kde/3.5/lib64:/usr/qt/3/lib64:/usr/lib64]
 0x000000000000001d (RUNPATH)            Library runpath: 
[/usr/kde/3.5/lib64:/usr/qt/3/lib64:/usr/lib64]

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071026/d63eab12/attachment.sig>


More information about the kde-core-devel mailing list