Bug 69660 - kdevelop will not compile
Summary: kdevelop will not compile
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 03:11 UTC by Craig Howard
Modified: 2003-12-05 16:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Howard 2003-12-05 03:11:28 UTC
Version:           Gideon CVS (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2.3 
OS:          Linux

kdevelop will not compile.  There is a linker error in r++ in kdevelop/languages/cpp.  I have db-4 installed, along with all the sources, as I am running Gentoo.  Here is the compiler output:

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -DAST_DEBUG -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -fno-builtin -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o r++ -L/usr/X11R6/lib -L/usr/qt/qt-copy/lib -L/usr/kde/cvs/lib  main.o libkdevcppsupport.la ../../lib/catalog/libkdevcatalog.la ../../lib/cppparser/libkdevcppparser.la

*** Warning: Linking the executable r++ against the loadable module
*** libkdevcppsupport.so is not portable!
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE4openERK7QString+0x69): In function `GCatalog<Tag>::open(QString const&)':
/usr/qt/qt-copy/include/qvaluelist.h:269: undefined reference to `db_create_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE4openERK7QString+0x7d): In function `GCatalog<Tag>::open(QString const&)':
/usr/kde/cvs/include/kdebug.h:189: undefined reference to `db_strerror_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE4openERK7QString+0x18e): In function `GCatalog<Tag>::open(QString const&)':
../../lib/catalog/gcatalog.tcc:189: undefined reference to `db_strerror_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE4openERK7QString+0x266): In function `GCatalog<Tag>::open(QString const&)':
/home/craig/src/kdecvs/kdevelop/languages/cpp/main.cpp:189: undefined reference to `db_strerror_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE8addIndexERK8QCString+0xb1): In function `GCatalog<Tag>::addIndex(QCString const&)':
/home/craig/src/kdecvs/kdevelop/languages/cpp/main.cpp:52: undefined reference to `db_create_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE8addIndexERK8QCString+0xc5):/home/craig/src/kdecvs/kdevelop/languages/cpp/main.cpp:53: undefined reference to `db_strerror_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE8addIndexERK8QCString+0x32c): In function `GCatalog<Tag>::addIndex(QCString const&)':
../../lib/catalog/gcatalog.tcc:114: undefined reference to `db_strerror_4000'
main.o(.gnu.linkonce.t._ZN8GCatalogI3TagE8addIndexERK8QCString+0x409):../../lib/catalog/gcatalog.tcc:119: undefined reference to `db_strerror_4000'
collect2: ld returned 1 exit status
make[4]: *** [r++] Error 1
make[4]: Leaving directory `/home/craig/src/kdecvs/kdevelop/languages/cpp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/craig/src/kdecvs/kdevelop/languages/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/craig/src/kdecvs/kdevelop/languages'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/craig/src/kdecvs/kdevelop'
make: *** [all] Error 2
Comment 1 Mario Scalas 2003-12-05 16:23:46 UTC
Please report compilation errors on kdevelop-devel@kde.org mailing list: do not use bugs.kde.org for this. 

BTW, unresolved symbols mean that you are linking objects which have been compiled with different compilers (gcc), whether kdevelop or db-4: try a 
make distclean
make -f Makefile.cvs && ./configure --prefix=<your-prefix-dir> --with-debug=full && make
... and report success or failure on the mailing list, thanks :-)