KDevelop link error ...

Andreas Pakulat apaku at gmx.de
Tue Jun 19 22:40:37 UTC 2007


On 19.06.07 17:58:34, Sandro Andrade wrote:
> I'm trying to compile the latest SVN snapshot. I checked out the
> kdevplatform and it compiles fine.

Hope you also installed it ;)

> When compiling KDevelop I get the following link error:
> ...
> Linking CXX shared library ../../../lib/libkdevcppduchainbuilder.so
> cd /home/kde-devel/kdevelop/languages/cpp/duchainbuilder && /usr/bin/cmake
> -P CMakeFiles/kdevcppduchainbuilder.dir/cmake_clean_target.cmake
> cd /home/kde-devel/kdevelop/languages/cpp/duchainbuilder && /usr/bin/cmake
> -E cmake_link_script CMakeFiles/kdevcppduchainbuilder.dir/link.txt
> --verbose=1
> /usr/bin/c++  -fPIC   -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 -fvisibility=hidden -g3
> -fno-inline -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared
> -Wl,-soname, libkdevcppduchainbuilder.so.4 -o
> ../../../lib/libkdevcppduchainbuilder.so.4.0.0
> "CMakeFiles/kdevcppduchainbuilder.dir/contextbuilder.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/declarationbuilder.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/typebuilder.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/usebuilder.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/cppeditorintegrator.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/dumpchain.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/cpptypes.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/typerepository.o"
> "CMakeFiles/kdevcppduchainbuilder.dir/dumptypes.o" -L/usr/local/lib
> -L/home/kde-devel/qt-copy/lib -L/lib -L/home/kde-devel/kdevelop/lib
> -L/home/kde-devel/kde/lib -lkdevplatformlanguage -lkdevplatformeditor
> -lkdevcppparser -lkdevplatformlanguage -lkdecore -lkparts -lkio -lkdeui
> -lQtSvg -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lkdefx -lQtGui -lXtst
> -lstreamanalyzer -lstreams -lsolid -lQtXml -lkdesu -lkdecore -lQtCore
> -lpthread -lQtNetwork -lQtDBus -lutil -lz -lbz2 -lresolv -lfam -lacl -lattr
> -lktexteditor
> CMakeFiles/kdevcppduchainbuilder.dir/contextbuilder.o: In function
> `ContextBuilder::addImportedContexts()':
> /home/kde-devel/kdevelop/languages/cpp/duchainbuilder/contextbuilder.cpp:547:
> undefined reference to `KDevelop::DUChain::lock()'
> /home/kde-devel/kdevelop/languages/cpp/duchainbuilder/contextbuilder.cpp:547:
> undefined reference to
> `KDevelop::DUChainWriteLocker::DUChainWriteLocker(KDevelop::DUChainLock*)'
> 
> Is this due to monday commits ?

No, kdevelop builds and installs fine for me. But I know why this
happens. Please rerun cmake with cmake -DCMAKE_BUILD_TYPE=debugfull
<other parameters you used>. Then it will build.

@Kris, obviously the release-version of
DUChainRead/WriteLocker don't have the needed lock() method. We need a
fix for that. Or remove the Q*Locker wrapper completely.

Andreas

-- 
Live in a world of your own, but always welcome visitors.




More information about the KDevelop-devel mailing list