Can't compile KDevelop (BerkelyDB not found)

Raimund Eimann raimund at cs.auckland.ac.nz
Sat Mar 20 02:59:32 GMT 2004


On Saturday 20 March 2004 01:49, Loke wrote:
> Le samedi 20 Mars 2004 00:06, Raimund Eimann a écrit :
> > Hi,
> >
> > I have got BerkelyDB 4.2 installed (in /usr/local/BerkelyDB.4.2/).
> >
> > Providing ./configure with --with-extra-libs=/usr/local/BerkelyDB.4.2/lib
> > and --with-extra-includes=/usr/local/BerkelyDB.4.2/include did not solve
> > the problem.
> >
> > Any hints?
> >
> > Cheers,
> > Raimund
>
> Have you checked that you don't also have the old version of BerkelyDB
> installed? In that case ./configure might be trying to use the old one.
>
> By the way, what distro are you using?
>
> Best regards.

I've solved this problem now by

a) installing BerkelyDB 4.1.25
b) editing the configure script (changed the line "ac_cv_bdb=no" to 
"ac_cv_bdb=yes")

But now I'm having even maro problems:
  a) Many of ...base.h files are missing and I habe to generate them manually
      from the corresponding ...base.ui files.

  b) Man .moc files are missing as well. I'm creating them (again manually)
      from the corresponding .h Files.

  c) The CXXFLAGS in the Makefile in <kdevelop3.0.2-src>/lib/antlr/src had to 
be corrected by kicking away the -fnoexceptions flag, because line 63 of 
"ANTLRUtil.cpp" for example reads "throw IOException("string must start with 
'\"'");"

  d) now I'm fighting with the next problem:


/bin/sh ../../libtool --silent --mode=link g++-3.2  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 
-I/opt/kde3.2.1/include -I/usr/local/qt/include -I/usr/X11R6/include 
-L/opt/kde3.2.1/lib -L/usr/local/qt/lib -L/usr/X11R6/lib -falign-functions=4 
-fomit-frame-pointer -mfancy-math-387 -mcpu=pentiumpro -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  -L/opt/kde3.2.1/lib -L/usr/X11R6/lib -L/usr/local/qt/lib  
-o libkdevabbrev.la -rpath /opt/kde3.2.1/lib/kde3 -L/usr/X11R6/lib 
-L/usr/local/qt/lib -L/opt/kde3.2.1/lib  -avoid-version -module -no-undefined 
-Wl,--no-undefined -Wl,--allow-shlib-undefined -R /opt/kde3.2.1/lib 
-R /usr/local/qt/lib -R /usr/X11R6/lib  abbrevpart.lo abbrevconfigwidget.lo 
addtemplatedlg.lo ../../lib/libkdevelop.la
.libs/abbrevconfigwidget.o(.text+0x3e): In function 
`AbbrevConfigWidget::AbbrevConfigWidget[not-in-charge](AbbrevPart*, QWidget*, 
char const*)':
: undefined reference to 
`AbbrevConfigWidgetBase::AbbrevConfigWidgetBase[not-in-charge](QWidget*, char 
const*, unsigned)'
.libs/abbrevconfigwidget.o(.text+0x4c6): In function 
`AbbrevConfigWidget::AbbrevConfigWidget[in-charge](AbbrevPart*, QWidget*, 
char const*)':
: undefined reference to 
`AbbrevConfigWidgetBase::AbbrevConfigWidgetBase[not-in-charge](QWidget*, char 
const*, unsigned)'
.libs/abbrevconfigwidget.o(.text+0x94c): In function 
`AbbrevConfigWidget::~AbbrevConfigWidget [not-in-charge]()':
: undefined reference to `AbbrevConfigWidgetBase::~AbbrevConfigWidgetBase 
[not-in-charge]()'
.libs/abbrevconfigwidget.o(.text+0x98c): In function 
`AbbrevConfigWidget::~AbbrevConfigWidget [in-charge]()':
: undefined reference to `AbbrevConfigWidgetBase::~AbbrevConfigWidgetBase 
[not-in-charge]()'
.libs/abbrevconfigwidget.o(.text+0x9cf): In function 
`AbbrevConfigWidget::~AbbrevConfigWidget [in-charge deleting]()':
: undefined reference to `AbbrevConfigWidgetBase::~AbbrevConfigWidgetBase 
[not-in-charge]()'
.libs/abbrevconfigwidget.o(.text+0x1203): In function 
`AbbrevConfigWidget::staticMetaObject()':
: undefined reference to `AbbrevConfigWidgetBase::staticMetaObject()'
.libs/abbrevconfigwidget.o(.text+0x12e8): In function 
`AbbrevConfigWidget::qt_cast(char const*)':
: undefined reference to `AbbrevConfigWidgetBase::qt_cast(char const*)'
.libs/abbrevconfigwidget.o(.text+0x1340): In function 
`AbbrevConfigWidget::qt_invoke(int, QUObject*)':
: undefined reference to `AbbrevConfigWidgetBase::qt_invoke(int, QUObject*)'
.libs/abbrevconfigwidget.o(.text+0x1392): In function 
`AbbrevConfigWidget::qt_emit(int, QUObject*)':
: undefined reference to `AbbrevConfigWidgetBase::qt_emit(int, QUObject*)'
.libs/abbrevconfigwidget.o(.text+0x13d6): In function 
`AbbrevConfigWidget::qt_property(int, int, QVariant*)':
: undefined reference to `AbbrevConfigWidgetBase::qt_property(int, int, 
QVariant*)'
.libs/abbrevconfigwidget.o(.gnu.linkonce.d._ZTV18AbbrevConfigWidget+0x1c0): 
undefined reference to `AbbrevConfigWidgetBase::languageChange()'
.libs/abbrevconfigwidget.o(.gnu.linkonce.d._ZTI18AbbrevConfigWidget+0x8): 
undefined reference to `typeinfo for AbbrevConfigWidgetBase'
.libs/addtemplatedlg.o(.text+0x46): In function 
`AddTemplateDialog::AddTemplateDialog[not-in-charge](QStringList, QWidget*, 
char const*)':
: undefined reference to 
`AddTemplateDialogBase::AddTemplateDialogBase[not-in-charge](QWidget*, char 
const*, bool, unsigned)'
.libs/addtemplatedlg.o(.text+0x132): In function 
`AddTemplateDialog::AddTemplateDialog[in-charge](QStringList, QWidget*, char 
const*)':
: undefined reference to 
`AddTemplateDialogBase::AddTemplateDialogBase[not-in-charge](QWidget*, char 
const*, bool, unsigned)'
.libs/addtemplatedlg.o(.text+0x20c): In function 
`AddTemplateDialog::~AddTemplateDialog [not-in-charge]()':
: undefined reference to `AddTemplateDialogBase::~AddTemplateDialogBase 
[not-in-charge]()'
.libs/addtemplatedlg.o(.text+0x24c): In function 
`AddTemplateDialog::~AddTemplateDialog [in-charge]()':
: undefined reference to `AddTemplateDialogBase::~AddTemplateDialogBase 
[not-in-charge]()'
.libs/addtemplatedlg.o(.text+0x28f): In function 
`AddTemplateDialog::~AddTemplateDialog [in-charge deleting]()':
: undefined reference to `AddTemplateDialogBase::~AddTemplateDialogBase 
[not-in-charge]()'
.libs/addtemplatedlg.o(.text+0x4b1): In function 
`AddTemplateDialog::staticMetaObject()':
: undefined reference to `AddTemplateDialogBase::staticMetaObject()'
.libs/addtemplatedlg.o(.text+0x590): In function 
`AddTemplateDialog::qt_cast(char const*)':
: undefined reference to `AddTemplateDialogBase::qt_cast(char const*)'
.libs/addtemplatedlg.o(.text+0x5e8): In function 
`AddTemplateDialog::qt_invoke(int, QUObject*)':
: undefined reference to `AddTemplateDialogBase::qt_invoke(int, QUObject*)'
.libs/addtemplatedlg.o(.text+0x63a): In function 
`AddTemplateDialog::qt_emit(int, QUObject*)':
: undefined reference to `AddTemplateDialogBase::qt_emit(int, QUObject*)'
.libs/addtemplatedlg.o(.text+0x67e): In function 
`AddTemplateDialog::qt_property(int, int, QVariant*)':
: undefined reference to `AddTemplateDialogBase::qt_property(int, int, 
QVariant*)'
.libs/addtemplatedlg.o(.gnu.linkonce.d._ZTV17AddTemplateDialog+0x1cc): 
undefined reference to `AddTemplateDialogBase::languageChange()'
.libs/addtemplatedlg.o(.gnu.linkonce.d._ZTI17AddTemplateDialog+0x8): undefined 
reference to `typeinfo for AddTemplateDialogBase'
collect2: ld returned 1 exit status
make[4]: *** [libkdevabbrev.la] Error 1
make[4]: Leaving directory 
`/work/compile/konstruct/apps/kdevelop/work/kdevelop-3.0.2/parts/abbrev'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/work/compile/konstruct/apps/kdevelop/work/kdevelop-3.0.2/parts'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/work/compile/konstruct/apps/kdevelop/work/kdevelop-3.0.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/work/compile/konstruct/apps/kdevelop/work/kdevelop-3.0.2'
make: *** [build-work/kdevelop-3.0.2/Makefile] Error 2


BTW: I'm using a system that originated from a Knoppix 3.3 CD, running KDE 
3.2.1, Qt 3.3 and kernel 2.6.4.

If this should be the "normal" prcedure of building & installing KDevelop, I 
have to say it's the best advertisment M$ ever had against Linux/KDE. I hope 
this is not normal.

Anyway: can anyone tell me why the linker fails in Problem d) ? I've had a 
similar problem before with on of my own programs when I derived a new class 
from two other classes, one being Object. If QObject doesn't appear first in 
the class declaration, a similar error pops up. I checked it here and things 
look alright...

Anyone?

Cheers,
Raimund

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list