trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

Re: [trinity-devel] tdebase FTBFS /usr/bin/ld: cannot find -ldbus-tqt-1

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 19 Jan 2014 18:49:51 -0600
On 01/19/2014 06:05 PM, Darrell Anderson wrote:
>> It failed again:
>>
>> Any thoughts?
> 
> My memory is slow most days and other days is not fast. I now 
> remember a similar bug hitting me a while back when trying to build 
> 3.5.13.2:
> 
> http://bugs.trinitydesktop.org/show_bug.cgi?id=1727
> 
> The problem turned out to be the way I had my build scripts 
> configured. I hadn't paid attention for months and discovered I was 
> installing dbus-1-tqt to /usr. Yet the remainder of my build 
> scripts were built to install to /opt/trinity. Therefore the other 
> build scripts were looking for the dbus-1-tqt files in /opt/trinity 
> (${PREFIX}). After I commented out those hard-coded lines I no 
> longer had any problems. You can still see them commented out in 
> the coppies you got from me.
> 
> Now that specific failure was with 3.5.13.2, not R14. Yet who 
> knows, could be something similar. Check into where your dbus-1-tqt 
> files are actually being installed.
> 
> BTW, make sure you are not concurrently using WITH_HAL and 
> WITH_TDEHWLIB. One or the other.
> 
> Darrell
> 

I have them installing to:

18:18 phoinix:/dat_e/tde/pkg/x86_64> pacman -Qpl
tde-dbus-1-tqt-14.0.0-1-x86_64.pkg.tar.xz
tde-dbus-1-tqt /opt/
tde-dbus-1-tqt /opt/trinity/
tde-dbus-1-tqt /opt/trinity/bin/
tde-dbus-1-tqt /opt/trinity/bin/dbusxml2qt3
tde-dbus-1-tqt /opt/trinity/include/
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusconnection.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusdata.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusdataconverter.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusdatalist.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusdatamap.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbuserror.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusmacros.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusmessage.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusobject.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusobjectpath.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusproxy.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusunixfd.h
tde-dbus-1-tqt /opt/trinity/include/dbus-1-tqt/tqdbusvariant.h
tde-dbus-1-tqt /opt/trinity/lib/
tde-dbus-1-tqt /opt/trinity/lib/libdbus-1-tqt.la
tde-dbus-1-tqt /opt/trinity/lib/libdbus-1-tqt.so
tde-dbus-1-tqt /opt/trinity/lib/libdbus-1-tqt.so.0
tde-dbus-1-tqt /opt/trinity/lib/libdbus-1-tqt.so.0.0.0
tde-dbus-1-tqt /opt/trinity/lib/pkgconfig/
tde-dbus-1-tqt /opt/trinity/lib/pkgconfig/dbus-1-tqt.pc
18:18 phoinix:/dat_e/tde/pkg/x86_64> pacman -Qpl
tde-dbus-tqt-14.0.0-1-x86_64.pkg.tar.xz
tde-dbus-tqt /opt/
tde-dbus-tqt /opt/trinity/
tde-dbus-tqt /opt/trinity/include/
tde-dbus-tqt /opt/trinity/include/dbus-1.0/
tde-dbus-tqt /opt/trinity/include/dbus-1.0/dbus/
tde-dbus-tqt /opt/trinity/include/dbus-1.0/dbus/connection.h
tde-dbus-tqt /opt/trinity/include/dbus-1.0/dbus/dbus-qt.h
tde-dbus-tqt /opt/trinity/include/dbus-1.0/dbus/message.h
tde-dbus-tqt /opt/trinity/include/dbus-1.0/dbus/server.h
tde-dbus-tqt /opt/trinity/lib/
tde-dbus-tqt /opt/trinity/lib/libdbus-tqt-1.la
tde-dbus-tqt /opt/trinity/lib/libdbus-tqt-1.so
tde-dbus-tqt /opt/trinity/lib/libdbus-tqt-1.so.0
tde-dbus-tqt /opt/trinity/lib/libdbus-tqt-1.so.0.0.0
tde-dbus-tqt /opt/trinity/lib/pkgconfig/
tde-dbus-tqt /opt/trinity/lib/pkgconfig/dbus-tqt.pc

    -DWITH_TDEHWLIB=ON \

and no.....

#     -DWITH_HAL=ON \

  So all of the files are consistently installed in /opt/trinity. I had tried also

  export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/trinity/lib/"

but still:

[ 54%] Building CXX object
kicker/kicker/CMakeFiles/tdeinit_kicker-shared.dir/dummy.cpp.o
Linking CXX shared library libtdeinit_kicker.so
/usr/bin/ld: cannot find -ldbus-tqt-1
collect2: error: ld returned 1 exit status
kicker/kicker/CMakeFiles/tdeinit_kicker-shared.dir/build.make:108: recipe for
target 'kicker/kicker/libtdeinit_kicker.so' failed

  Even going to the actual chroot and checking the files I find them where they
are supposed to be:

18:45 phoinix:/dat_e/ch14/david/opt/trinity/lib> ls -1 libdbus-tqt-1*
libdbus-tqt-1.la
libdbus-tqt-1.so
libdbus-tqt-1.so.0
libdbus-tqt-1.so.0.0.0

  And the pkgconfig files are A-OK as well:

18:45 phoinix:/dat_e/ch14/david/opt/trinity/lib> cat pkgconfig/dbus-tqt.pc
prefix=/opt/trinity
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: dbus-tqt-1
Description: D-BUS TQt bindings
Version: R14.0.0
Requires: dbus-1
Libs: -L${libdir}  -ldbus-tqt-1 -ldbus-1
Cflags: -I${includedir} -I${includedir}/dbus-1.0

I'm stumped... What cmake verison do you have?

  cmake 2.8.12.1-3

I'll search on that.



-- 
David C. Rankin, J.D.,P.E.