trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

kpowersave - /usr/bin/ld: cannot find -ldbus-tqt-1

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 19 Mar 2012 00:20:55 -0500
Tim, Darrell,

  Other than a few hiccups, the build with tqtinterface and libart_lgpl in /usr
has run fairly smooth. I did just run into another issue with kpowersave at 96%
which looks like another ldconfig issue. The problem here is I didn't have any
ldconfig or issues with kpowersave prior to the tqtinterface move to /usr. Is
there something we can do with cmake that will help prevent the "I can't find
the library issue?"

  The failure is libdbus-tqt-1 and it is in the same location it has been all
along with correct package config information:

[23:44 nirvana:/mnt/nv1/home/chroot/david/opt/trinity/lib/pkgconfig] # cat
dbus-1-tqt.pc
prefix=/opt/trinity
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/dbus-1-tqt

Name: dbus-tqt
Description: DBUS bindings for the Trinity Qt [TQt] interface
Version: 0.9.0
Libs: -L${libdir} -ldbus-1-tqt
Cflags: -I${includedir}

[23:44 nirvana:/mnt/nv1/home/chroot/david/opt/trinity/lib/pkgconfig] # cat
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: 0.7
Requires: dbus-1
Libs: -L${libdir}  -ldbus-tqt-1 -ldbus-1 -lpthread -lrt
Cflags: -I${includedir} -I${includedir}/dbus-1.0


(NOTE: why is the package name dbus-tqt, while the pkg-config 'Name:
dbus-tqt-1'? Could this be causing the error?)

  Further, below, the error shows that -L/opt/tqt3/lib is pull in before the
dbus-tqt 'Libs:' string instead of /opt/trinity/lib specified in the dbus-tqt.pc
file (above):

-L/opt/tqt3/lib -ldbus-tqt-1 -ldbus-1 -lpthread -lrt /
^^^^^^^^^^^^^^^

<according to the dbus-tqt.pc it should be:>

-L/opt/trinity/lib -ldbus-tqt-1 -ldbus-1 -lpthread -lrt /
^^^^^^^^^^^^^^^^^^

  But the error I get says it getting '-L/opt/tqt3/lib -ldbus-tqt-1':

[ 96%] Building CXX object
src/CMakeFiles/tdeinit_kpowersave-shared.dir/suspend_Dialog.cpp.o
cd /build/src/build/src && /usr/bin/c++   -Dtdeinit_kpowersave_shared_EXPORTS
-DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2   -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/build/src/build/src
-I/build/src/build -I/opt/trinity/include -I/opt/tqt3/include -I/usr/include/tqt
-I/opt/trinity/include/dbus-1.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/hal    -o
CMakeFiles/tdeinit_kpowersave-shared.dir/suspend_Dialog.cpp.o -c
/build/src/build/src/suspend_Dialog.cpp
Linking CXX shared library libtdeinit_kpowersave.so
cd /build/src/build/src && /usr/bin/cmake -E cmake_link_script
CMakeFiles/tdeinit_kpowersave-shared.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2   -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -Wl,--no-undefined -shared
-Wl,-soname,libtdeinit_kpowersave.so -o libtdeinit_kpowersave.so
CMakeFiles/tdeinit_kpowersave-shared.dir/dummy.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/autodimm.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/autosuspend.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/blacklistedit_Dialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/blacklisteditdialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/configure_Dialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/configuredialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/countdown_Dialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/countdowndialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/dbusHAL.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/detailed_Dialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/detaileddialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/hardware.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/hardware_battery.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/hardware_batteryCollection.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/hardware_cpu.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/inactivity.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/info_Dialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/infodialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/kpowersave.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/kpowersave_skel.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/log_viewer.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/logviewer.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/main.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/screen.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/settings.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/suspenddialog.cpp.o
CMakeFiles/tdeinit_kpowersave-shared.dir/suspend_Dialog.cpp.o -L/opt/tqt3/lib
-ldbus-tqt-1 -ldbus-1 -lpthread -lrt /opt/trinity/lib/libkio.so.4.2.0 -lhal
-lXext -lXtst -lXss /opt/trinity/lib/libtdeui.so.4.2.0 -lfreetype -lfontconfig
/opt/trinity/lib/libtdesu.so.4.2.0 -lutil
/opt/trinity/lib/libkwalletclient.so.1.0.1 /opt/trinity/lib/libtdecore.so.4.2.0
/opt/trinity/lib/libDCOP.so.4.2.0 /opt/trinity/lib/libtdefx.so.4.2.0 -ltqt
-ltqt-mt -lXrender -lX11 -lz -lidn -lXcomposite -lICE -lSM
-Wl,-rpath,/opt/tqt3/lib:/opt/trinity/lib:
/usr/bin/ld: cannot find -ldbus-tqt-1
collect2: ld returned 1 exit status
make[2]: *** [src/libtdeinit_kpowersave.so] Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** [src/CMakeFiles/tdeinit_kpowersave-shared.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2

  Looking at the -ldbus-tqt-1 designation - it is one of the few that does not
have the full path information. Where is that supposed to come from if not from
the pkg-config results? The pkg-config lib results are correct, so what's up?


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