Fwd: Re: compile error qt-dbus
David Faure
faure at kde.org
Tue Jun 6 10:30:36 CEST 2006
Any reason why there would be no rpath on binaries for this person?
cmake version 2.4-patch 2
This is about kdesupport/qt-dbus, so there isn't any kde customizations of the rpath stuff
happening there.
The binary is run during compilation, but doesn't find the library it links to (which is in the builddir).
Since it works for me, I'm guessing there's some cmake behavior difference somewhere...
---------- Forwarded Message ----------
Subject: Re: compile error qt-dbus
Date: Monday 05 June 2006 18:18
From: Jan Callewaert <jan.callewaert at gmail.com>
To: kde-devel at kde.org
Op maandag 5 juni 2006 17:58, schreef David Faure:
> Hmm actually the rpath is correct here even without any changes to the
> CMakeLists.txt
>
> (from the builddir)
> $ ldd ./dbusidl2cpp
> libdbus-qt4-1.so.1 =>
> /d/kde/build/4/kdesupport/qt-dbus/src/libdbus-qt4-1.so.1 (0xb7ed5000) $
> readelf -d ./dbusidl2cpp | grep RPATH
> 0x0000000f (RPATH) Library rpath:
> [/d/kde/build/4/kdesupport/qt-dbus/src:/d/kde/src/4/qt-copy/lib]
>
> Which system is this on? Linux/BSD, or Mac OSX?
> I don't see why the rpath setting would fail (except if this is about Mac
> OS, which doesn't support rpath).
This a Gentoo/Linux system
$ uname -a
Linux yakima 2.6.16-gentoo-r7 #1 SMP PREEMPT Wed May 10 09:58:24 CEST 2006
i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux
after a make clean && make (that fails at the examples)
$ ldd tools/dbusidl2cpp
linux-gate.so.1 => (0xffffe000)
libdbus-qt4-1.so.1 => not found
libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb7dad000)
libQtXml.so.4 => /usr/lib/qt4/libQtXml.so.4 (0xb7d62000)
libdbus-1.so.2 => /usr/lib/libdbus-1.so.2 (0x464c6000)
libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6
(0x46f57000)
libm.so.6 => /lib/tls/libm.so.6 (0x46dfa000)
libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libgcc_s.so.1
(0x47026000)
libc.so.6 => /lib/tls/libc.so.6 (0x46ce3000)
libz.so.1 => /lib/libz.so.1 (0x46e24000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x46f33000)
libdl.so.2 => /lib/libdl.so.2 (0x46e1e000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4807b000)
/lib/ld-linux.so.2 (0x464ad000)
$ readelf -d tools/dbusidl2cpp | grep RPATH
There doesn't seem to be an RPATH defined in the binary...
Jan
-------------------------------------------------------
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list