--nextPart2327398.b7KMbKCc0Q Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 28 October 2007, Allan Sandfeld Jensen wrote: > I didn't mean RPATH. The elf-binaries has a list of libraries, if > these libraries are relative they use RPATH of LD_LIBRARY_PATH, but > they can also be absolute with a full path. However it is only used > in special cases, so it is unlikely. > > Using "readelf -d" you will find a list of libraries like this: > 0x00000001 (NEEDED) Shared library: [libQtCore.so.4] > or like this: > 0x00000001 (NEEDED) Shared library: > [/opt/qt-4/lib/libQtCore.so.4] > > I doubt it is the case, it is just the only explanation I can think > of, if you haven't set any RPATHs. When running cmake I didn't add any extra flags. I removed=20 not /opt/kde4/lib64 fro /etc/ld.so.conf to reproduce the problem=20 agains. Let's take ksmserver (as an important, base binary): ldd /opt/kde4/bin/ksmserver libkdeinit4_ksmserver.so=20 =3D> /opt/kde4/lib64/libkdeinit4_ksmserver.so (0x00002b7ca536d000) libplasma.so.1 =3D> /opt/kde4/lib64/libplasma.so.1=20 (0x00002b7ca559e000) libQtOpenGL.so.4 =3D> /opt/qt4/lib/libQtOpenGL.so.4=20 (0x00002b7ca58e5000) [...] libkparts.so.4 =3D> not found libkpty.so.4 =3D> not found readelf -d /opt/kde4/bin/ksmserver 0x0000000000000001 (NEEDED) Shared library:=20 [libkdeinit4_ksmserver.so] 0x0000000000000001 (NEEDED) Shared library:=20 [libplasma.so.1] 0x0000000000000001 (NEEDED) Shared library:=20 [libQtOpenGL.so.4] [...] 0x000000000000000f (RPATH) Library rpath:=20 [/opt/kde4/lib64:/usr/local/lib:/opt/qt4/lib:/opt/kde4/lib64] 0x000000000000001d (RUNPATH) Library runpath:=20 [/opt/kde4/lib64:/usr/local/lib:/opt/qt4/lib:/opt/kde4/lib64] [...] linkparts and libkpty DO NOT appear here! And I have an RPATH and=20 RUNPATH poiting to /opt/kde4/lib64. I think the problem is somewhere here. Some libraries are needed=20 probably as a dependency of other libraries, but they are not found. readelf -d /opt/kde4/lib64/libkparts.so 0x0000000000000001 (NEEDED) Shared library:=20 [libQtCore.so.4] 0x0000000000000001 (NEEDED) Shared library:=20 [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library:=20 [libkdecore.so.5] 0x0000000000000001 (NEEDED) Shared library: [libkdeui.so.5] 0x0000000000000001 (NEEDED) Shared library: [libkio.so.5] [...] 0x000000000000000e (SONAME) Library soname:=20 [libkparts.so.4] and there is no RPATH or RUNPATH. In case of KDE3 libraries there is one. Shouldn't the KDE4 libraries also have RPATH and RUNPATH entries inside=20 them? I think this is the bug I see. And all the solutions with=20 LD_LIBRARY_PATH, ld.so.conf and -DKDE4_USE_ALWAYS_FULL_RPATH=3DON=20 (untested yet) are probably only workarounds. Andras =2D-=20 Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org --nextPart2327398.b7KMbKCc0Q Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHJLd7TQdfac6L/08RAsmFAKC3fwEE0C3fyq6bRDMwN7qEkrN9HQCaAukx BP/LbWpWMRTBsVWcBXcHGAU= =71FA -----END PGP SIGNATURE----- --nextPart2327398.b7KMbKCc0Q--