#32 Can't compile kscope 1.9.0 on kubuntu 8.10.

open
nobody
None
5
2015-02-02
2009-01-20
ghostkadost
No

I have installed the necessary dependencies(qscintilla2, lib-qt4-dev (4.4.3)) etc. Installed gcc version is
g++ (Ubuntu 4.3.2-1ubuntu11) 4.3.2

On compilation these are the error messages that I get

release/ctags.o: In function KScope::Cscope::Ctags::handleFinished(int, QProcess::ExitStatus)': ctags.cpp:(.text+0x28): undefined reference toKScope::Core::Process::handleFinished(int, QProcess::ExitStatus)'
release/ctags.o: In function KScope::Cscope::Ctags::~Ctags()': ctags.cpp:(.text+0x57b): undefined reference toKScope::Core::Process::~Process()'
ctags.cpp:(.text+0x611): undefined reference to KScope::Core::Process::~Process()' release/ctags.o: In functionKScope::Cscope::Ctags::~Ctags()':
ctags.cpp:(.text+0x6c5): undefined reference to KScope::Core::Process::~Process()' ctags.cpp:(.text+0x764): undefined reference toKScope::Core::Process::~Process()'
release/ctags.o: In function KScope::Cscope::Ctags::~Ctags()': ctags.cpp:(.text+0x81b): undefined reference toKScope::Core::Process::~Process()'
release/ctags.o:ctags.cpp:(.text+0x8b1): more undefined references to KScope::Core::Process::~Process()' follow release/ctags.o: In functionKScope::Cscope::Ctags::Ctags()':
ctags.cpp:(.text+0x916): undefined reference to KScope::Core::Process::Process(QObject*)' ctags.cpp:(.text+0x159f): undefined reference toKScope::Core::Process::~Process()'
release/ctags.o: In function KScope::Cscope::Ctags::Ctags()': ctags.cpp:(.text+0x1976): undefined reference toKScope::Core::Process::Process(QObject)'
ctags.cpp:(.text+0x25ff): undefined reference to KScope::Core::Process::~Process()' release/ctags.o:(.data.rel.ro._ZTVN6KScope6Cscope5CtagsE[vtable for KScope::Cscope::Ctags]+0x8): undefined reference toKScope::Core::Process::metaObject() const'

release/ctags.o:(.data.rel.ro._ZTVN6KScope6Cscope5CtagsE[vtable for KScope::Cscope::Ctags]+0xc): undefined reference to KScope::Core::Process::qt_metacast(char const*)' release/ctags.o:(.data.rel.ro._ZTVN6KScope6Cscope5CtagsE[vtable for KScope::Cscope::Ctags]+0x10): undefined reference toKScope::Core::Process::qt_metacall(QMetaObject::Call, int, void)'

release/ctags.o:(.data.rel.ro._ZTVN6KScope6Cscope5CtagsE[vtable for KScope::Cscope::Ctags]+0x80): undefined reference to KScope::Core::Process::handleError(QProcess::ProcessError)' release/ctags.o:(.data.rel.ro._ZTVN6KScope6Cscope5CtagsE[vtable for KScope::Cscope::Ctags]+0x84): undefined reference toKScope::Core::Process::handleStateChange(QProcess::ProcessState)'

release/ctags.o:(.data.rel.ro._ZTIN6KScope6Cscope5CtagsE[typeinfo for KScope::Cscope::Ctags]+0x10): undefined reference to typeinfo for KScope::Core::Process' release/crossref.o: In functionKScope::Cscope::Crossref::build(KScope::Core::Engine::Connection
) const':

crossref.cpp:(.text+0x5e): undefined reference to KScope::Core::Process::setDeleteOnExit()' release/crossref.o: In functionKScope::Cscope::Crossref::~Crossref()':

crossref.cpp:(.text+0x1e8): undefined reference to vtable for KScope::Core::Engine' crossref.cpp:(.text+0x249): undefined reference tovtable for KScope::Core::Engine'

release/crossref.o: In function KScope::Cscope::Crossref::~Crossref()': crossref.cpp:(.text+0x2b8): undefined reference tovtable for KScope::Core::Engine'

crossref.cpp:(.text+0x311): undefined reference to vtable for KScope::Core::Engine' release/crossref.o: In functionKScope::Cscope::Crossref::~Crossref()':

crossref.cpp:(.text+0x378): undefined reference to vtable for KScope::Core::Engine' release/crossref.o:crossref.cpp:(.text+0x3d1): more undefined references tovtable for KScope::Core::Engine' follow

release/crossref.o: In function .L159': crossref.cpp:(.text+0x984): undefined reference toKScope::Core::Process::setDeleteOnExit()'

release/crossref.o: In function .L166': crossref.cpp:(.text+0xa2b): undefined reference toKScope::Core::Process::setDeleteOnExit()'

release/cscope.o: In function KScope::Cscope::Cscope::handleFinished(int, QProcess::ExitStatus)': cscope.cpp:(.text+0x28): undefined reference toKScope::Core::Process::handleFinished(int, QProcess::ExitStatus)'

release/cscope.o: In function KScope::Cscope::Cscope::Cscope(QStringList const&)': cscope.cpp:(.text+0x996): undefined reference toKScope::Core::Process::Process(QObject
)'

cscope.cpp:(.text+0xbb9): undefined reference to KScope::Core::Process::staticMetaObject' cscope.cpp:(.text+0xef8): undefined reference toKScope::Core::Process::staticMetaObject'

cscope.cpp:(.text+0x129d): undefined reference to KScope::Core::Process::staticMetaObject' cscope.cpp:(.text+0x15be): undefined reference toKScope::Core::Process::staticMetaObject'

cscope.cpp:(.text+0x22da): undefined reference to KScope::Core::Process::~Process()' release/cscope.o: In functionKScope::Cscope::Cscope::Cscope(QStringList const&)':

cscope.cpp:(.text+0x28b6): undefined reference to KScope::Core::Process::Process(QObject*)' cscope.cpp:(.text+0x2ad9): undefined reference toKScope::Core::Process::staticMetaObject'

cscope.cpp:(.text+0x2e18): undefined reference to KScope::Core::Process::staticMetaObject' cscope.cpp:(.text+0x31bd): undefined reference toKScope::Core::Process::staticMetaObject'

cscope.cpp:(.text+0x34de): undefined reference to KScope::Core::Process::staticMetaObject' cscope.cpp:(.text+0x41fa): undefined reference toKScope::Core::Process::~Process()'

release/cscope.o: In function KScope::Cscope::Cscope::~Cscope()': cscope.cpp:(.text+0x4839): undefined reference toKScope::Core::Process::~Process()'

cscope.cpp:(.text+0x485e): undefined reference to KScope::Core::Process::~Process()' cscope.cpp:(.text+0x48a0): undefined reference toKScope::Core::Process::~Process()'

release/cscope.o: In function KScope::Cscope::Cscope::~Cscope()': cscope.cpp:(.text+0x49ee): undefined reference toKScope::Core::Process::~Process()'

release/cscope.o:cscope.cpp:(.text+0x4afb): more undefined references to KScope::Core::Process::~Process()' follow release/cscope.o: In functionKScope::Cscope::Cscope::QueryResultAction::operator()(KScope::Parser::CapList const&) const':

cscope.cpp:(.text._ZNK6KScope6Cscope6Cscope17QueryResultActionclERKNS_6Parser7CapListE[KScope::Cscope::Cscope::QueryResultAction::operator()(KScope::Parser::CapList const&) const]+0x1ac): undefined reference to KScope::Core::Process::staticMetaObject' release/cscope.o: In functionKScope::Parser::StateMachine::Transition<KScope::Parser::Concat<KScope::Parser::Concat<KScope::Parser::Literal, KScope::Parser::Number="">, KScope::Parser::Literal>, KScope::Cscope::Cscope::QueryEndAction>::matches(QString const&, int) const':

cscope.cpp:(.text._ZNK6KScope6Parser12StateMachine10TransitionINS0_6ConcatINS3_INS0_7LiteralENS0_6NumberEEES4_EENS_6Cscope6Cscope14QueryEndActionEE7matchesERK7QStringi[KScope::Parser::StateMachine::Transition<KScope::Parser::Concat<KScope::Parser::Concat<KScope::Parser::Literal, KScope::Parser::Number="">, KScope::Parser::Literal>, KScope::Cscope::Cscope::QueryEndAction>::matches(QString const&, int) const]+0x331): undefined reference to KScope::Core::Process::staticMetaObject' release/cscope.o:(.data.rel.ro._ZTVN6KScope6Cscope6CscopeE[vtable for KScope::Cscope::Cscope]+0x8): undefined reference toKScope::Core::Process::metaObject() const'

release/cscope.o:(.data.rel.ro._ZTVN6KScope6Cscope6CscopeE[vtable for KScope::Cscope::Cscope]+0xc): undefined reference to KScope::Core::Process::qt_metacast(char const*)' release/cscope.o:(.data.rel.ro._ZTVN6KScope6Cscope6CscopeE[vtable for KScope::Cscope::Cscope]+0x10): undefined reference toKScope::Core::Process::qt_metacall(QMetaObject::Call, int, void)'
release/cscope.o:(.data.rel.ro._ZTVN6KScope6Cscope6CscopeE[vtable for KScope::Cscope::Cscope]+0x80): undefined reference to KScope::Core::Process::handleError(QProcess::ProcessError)' release/cscope.o:(.data.rel.ro._ZTVN6KScope6Cscope6CscopeE[vtable for KScope::Cscope::Cscope]+0x84): undefined reference toKScope::Core::Process::handleStateChange(QProcess::ProcessState)'
release/cscope.o:(.data.rel.ro._ZTIN6KScope6Cscope6CscopeE[typeinfo for KScope::Cscope::Cscope]+0x10): undefined reference to typeinfo for KScope::Core::Process' release/files.o: In functionKScope::Cscope::Files::~Files()':
files.cpp:(.text+0x347): undefined reference to vtable for KScope::Core::Codebase' files.cpp:(.text+0x381): undefined reference tovtable for KScope::Core::Codebase'
release/files.o: In function KScope::Cscope::Files::~Files()': files.cpp:(.text+0x3d7): undefined reference tovtable for KScope::Core::Codebase'
files.cpp:(.text+0x409): undefined reference to vtable for KScope::Core::Codebase' release/files.o: In functionKScope::Cscope::Files::~Files()':
files.cpp:(.text+0x467): undefined reference to vtable for KScope::Core::Codebase' release/files.o:files.cpp:(.text+0x499): more undefined references tovtable for KScope::Core::Codebase' follow
release/moc_crossref.o: In function KScope::Cscope::Crossref::qt_metacall(QMetaObject::Call, int, void**)': moc_crossref.cpp:(.text+0x56): undefined reference toKScope::Core::Engine::qt_metacall(QMetaObject::Call, int, void)'
release/moc_crossref.o: In function KScope::Cscope::Crossref::qt_metacast(char const*)': moc_crossref.cpp:(.text+0x15e): undefined reference toKScope::Core::Engine::qt_metacast(char const*)'
release/moc_crossref.o:(.data.rel.ro+0x0): undefined reference to KScope::Core::Engine::staticMetaObject' release/moc_crossref.o:(.data.rel.ro._ZTIN6KScope6Cscope8CrossrefE[typeinfo for KScope::Cscope::Crossref]+0x8): undefined reference totypeinfo for KScope::Core::Engine'
release/moc_files.o: In function KScope::Cscope::Files::qt_metacall(QMetaObject::Call, int, void**)': moc_files.cpp:(.text+0x4e): undefined reference toKScope::Core::Codebase::qt_metacall(QMetaObject::Call, int, void
)'
release/moc_files.o: In function KScope::Cscope::Files::qt_metacast(char const*)': moc_files.cpp:(.text+0xbe): undefined reference toKScope::Core::Codebase::qt_metacast(char const)'
release/moc_files.o:(.data.rel.ro+0x0): undefined reference to KScope::Core::Codebase::staticMetaObject' release/moc_files.o:(.data.rel.ro._ZTIN6KScope6Cscope5FilesE[typeinfo for KScope::Cscope::Files]+0x8): undefined reference totypeinfo for KScope::Core::Codebase'
collect2: ld returned 1 exit status
make[2]: [libkscope_cscope.so.1.0.0] Error 1
make[1]:
[release] Error 2
make: *** [sub-cscope-make_default] Error 2

Discussion

  • Elad Lahav
    Elad Lahav
    2009-01-20

    It looks as though the linker is failing to find libkscope_core.so. Can you please do a 'make distclean' and start over, posting the entire output of the build process? I'd like to see if libkscope_core.so is being built, and if the linker for libkscope_cscope.so is using the correct flags.

     
  • ghostkadost
    ghostkadost
    2009-01-21

    Output log of make

     
    Attachments
  • ghostkadost
    ghostkadost
    2009-01-21

    I have uploaded the output of make. It indeed is not able to find libkscope_core.so at linking stage. Further there is a similar problem while linking in the app directory.

     
  • Elad Lahav
    Elad Lahav
    2009-01-22

    The linker in your setup includes the --no-undefined flag, which prevents libkscope_cscope.so from linking without a reference to libkscope_core.so.
    To solve the problem, add the following line to cscope/cscope.pro:

    LIB=-L../core -lkscope_core

    Run qmake and make again. I will fix the problem in the next release.

     
  • Tomaszewski P.
    Tomaszewski P.
    2009-02-27

    Version 1.9.2 on Ubuntu 8.10 does not compile with the common settings in .pro files (Qsci include in invalid, because it is in qt4 subdirectory).