[Bug 156895] kdelibs-4.0.0 fails to compile: error linking libkjs.so

Ingmar Vanhassel ingmar at gentoo.org
Wed Jan 30 15:19:13 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=156895         




------- Additional Comments From ingmar gentoo org  2008-01-30 15:19 -------
Run `export CMAKE_COMPILER_VERBOSE=YesPlease` in a terminal, then try to recompile & attach the full build.log. That will show the linker command being used.

I had a discussion with Anne-Marie on irc, where a user of ours hit the same problem compiling kdeedu from current SVN:

Snippet from his log:

cd /var/tmp/portage/kde-base/kdeedu-9999.4/work/kdeedu_build/kalgebra/src/plasmoid && /usr/bin/cmake -P CMakeFiles/kalgebraplasmoid.dir/cmake_clean_target.cmake
cd /var/tmp/portage/kde-base/kdeedu-9999.4/work/kdeedu_build/kalgebra/src/plasmoid && /usr/bin/cmake -E cmake_link_script CMakeFiles/kalgebraplasmoid.dir/link.txt --verbose=1
/usr/bin/i686-pc-linux-gnu-g++  -fPIC -O2 -march=prescott -pipe -fomit-frame-pointer  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,kalgebraplasmoid.so -o ../../../lib/kalgebraplasmoid.so "CMakeFiles/kalgebraplasmoid.dir/kalgebraplasmoid_automoc.o" "CMakeFiles/kalgebraplasmoid.dir/kalgebraplasma.o" -L/var/tmp/portage/kde-base/kdeedu-9999.4/work/kdeedu_build/lib -L/usr/kde/svn/lib -L/usr/lib/qt4 -lplasma -lQtSvg -lQtCore -lpthread -lkdecore -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lQtGui -lQtXml -lXtst -lXcursor -lXfixes -lkdeui -Wl,-Bstatic -lanalitza -Wl,-Bdynamic -lQtCore -lpthread -lQtXml -lQtCore -lpthread -lQtNetwork -lQtDBus -lQtXml -lz -lbz2 -lresolv-lkdecore -Wl,-rpath,/var/tmp/portage/kde-base/kdeedu-9999.4/work/kdeedu_build/lib:/usr/kde/svn/lib:/usr/lib/qt4
/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [lib/kalgebraplasmoid.so] Error 1

I guess the error stems from trying to mix static (analitza) and dynamic libraries?


More information about the Kdelibs-bugs mailing list