kdevelop build error: undefined reference to `KDevelop::EditorContext::currentWord() const'

Kevin Funk kfunk at kde.org
Mon Jun 27 07:34:03 UTC 2016


On Freitag, 24. Juni 2016 16:40:21 CEST René J.V. Bertin wrote:
> Hi,
> 
> Why am I getting the following build error on Linux, kdevelop and
> kdevplatform both git/master?

Fixed:

commit 9e2515df179c21d476b04f46238132f08139ae2e
Author: Kevin Funk <kfunk at kde.org>
Date:   Sun Jun 26 22:54:53 2016 +0200

    Attempt to fix build issue on CI
    
    kdevdebuggercommon needs KDev::Language, so fix the CMake code.

Issue: Library order was wrong

Cheers,
Kevin

> %> /usr/bin/c++  -fPIC -std=c++0x -Wall -Wextra -Wcast-align
> -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef
> -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type
> -Wno-missing-field-initializers -fexceptions -Wl,--no-undefined
> -Wl,--fatal-warnings -Wl,--enable-new-dtags   -shared  -o kdevgdb.so
> CMakeFiles/kdevgdb.dir/debuggerplugin.cpp.o
> CMakeFiles/kdevgdb.dir/gdb.cpp.o
> CMakeFiles/kdevgdb.dir/disassemblewidget.cpp.o
> CMakeFiles/kdevgdb.dir/gdboutputwidget.cpp.o
> CMakeFiles/kdevgdb.dir/debugsession.cpp.o
> CMakeFiles/kdevgdb.dir/gdbbreakpointcontroller.cpp.o
> CMakeFiles/kdevgdb.dir/gdbconfigpage.cpp.o
> CMakeFiles/kdevgdb.dir/variablecontroller.cpp.o
> CMakeFiles/kdevgdb.dir/gdbframestackmodel.cpp.o
> CMakeFiles/kdevgdb.dir/gdbvariable.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registersview.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registersmanager.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller_x86.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller_arm.cpp.o
> CMakeFiles/kdevgdb.dir/registers/modelsmanager.cpp.o
> CMakeFiles/kdevgdb.dir/registers/converters.cpp.o
> CMakeFiles/kdevgdb.dir/qrc_kdevgdb.cpp.o
> CMakeFiles/kdevgdb.dir/kdevgdb_automoc.cpp.o
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformProject.so.10.0.0
> ../common/libkdevdebuggercommon.a
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformOutputView.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformSerialization.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformDebugger.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformSublime.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformUtil.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformInterfaces.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKF5TextEditor.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Parts.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5KIOCore.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5JobWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5XmlGui.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5TextWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Service.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5SonnetUi.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ItemModels.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libprocessui.so.5.6.5
> /opt/local/lib/x86_64-linux-gnu/libprocesscore.so.5.6.5
> /opt/local/lib/x86_64-linux-gnu/libKF5Completion.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Codecs.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigGui.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5Xml.so.5.6.1
> /opt/local/lib/x86_64-linux-gnu/libKF5Auth.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5DBus.so.5.6.1
> /opt/local/lib/x86_64-linux-gnu/libKF5I18n.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5Widgets.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Gui.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Network.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Core.so.5.6.1
> -Wl,-rpath,/opt/local/lib/x86_64-linux-gnu:/opt/local/lib:/opt/local/libexe
> c/qt5/lib -Wl,-rpath-link,/opt/local/libexec/qt5/lib
> ../common/libkdevdebuggercommon.a(midebuggerplugin.cpp.o): In function
> `KDevMI::MIDebuggerPlugin::contextMenuExtension(KDevelop::Context*)':
> midebuggerplugin.cpp:(.text+0x176b): undefined reference to `typeinfo for
> KDevelop::EditorContext' midebuggerplugin.cpp:(.text+0x179f): undefined
> reference to `KDevelop::EditorContext::currentWord() const' collect2:
> error: ld returned 1 exit status
> make[2]: *** [debuggers/gdb/kdevgdb.so] Error 1
> 
> %> nm /opt/local/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10.0.0 |
> fgrep -i currentword 00000000001bd880 T
> _ZNK8KDevelop13EditorContext11currentWordEv
> 
> %> demangle _ZNK8KDevelop13EditorContext11currentWordEv
> _ZNK8KDevelop13EditorContext11currentWordEv ->
> "KDevelop::EditorContext::currentWord() const"
> 
> I'm using gcc 5.3.0; kdevplatform was installed from a full clean build;
> kdevelop is building from one. A glitch in the debugger patch from last
> Wed. June 22nd?
> 
> R.
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20160627/ccf9c930/attachment.sig>


More information about the KDevelop-devel mailing list