Link problems

Jakob Lund/Trapsoft Inc JakobL at trapezesoftware.com
Tue Aug 13 09:48:07 UTC 2002


After compiling with qt 3.0.5 Gideon nolonger functioned it crashed shortly
after the splashscreen shows. I guess the problem is that all of kde base
needs to be linked with qt 3.0.5 had problems with this?
Then I tried to go back one step to qt 3.0.3 so I could build gideon again,
but it stops in the cppsupport part with a linker problem:


/usr/lib/qt3-gcc2.96/bin/moc cppaddmethoddlgbase.h -o
cppaddmethoddlgbase.moc
rm -f cppaddmethoddlgbase.cpp
echo '#include <klocale.h>' > cppaddmethoddlgbase.cpp
/usr/lib/qt3-gcc2.96/bin/uic -L /usr/lib/kde3/plugins/designer -nounload
-tr tr2i18n -i cppaddmethoddlgbase.h ./cppaddmethodd
lgbase.ui | sed -e "s,tr2i18n( \"\" ),QString::null,g" | sed -e "s,tr2i18n
( \"\"\, \"\" ),QString::null,g" | sed -e "s,image\
([0-9][0-9]*\)_data,img\1_cppaddmethoddlgbase,g" >> cppaddmethoddlgbase.cpp
|| rm -f cppaddmethoddlgbase.cpp
echo '#include "cppaddmethoddlgbase.moc"' >> cppaddmethoddlgbase.cpp
source='cppaddmethoddlgbase.cpp' object='cppaddmethoddlgbase.lo'
libtool=yes \
depfile='.deps/cppaddmethoddlgbase.Plo' tmpdepfile
='.deps/cppaddmethoddlgbase.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -I../../lib/interfaces -I../../li
b/sourceinfo -I../../lib/util -I/usr/include/kde
-I/usr/lib/qt3-gcc2.96/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT
-
D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef
-Wall -pedantic -W -Wpointer-arith -Wmissing-proto
types -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -fno-builtin -g -O2 -g3 -O0 -fno-exce
ptions -fno-check-new  -c -o cppaddmethoddlgbase.lo `test -f
cppaddmethoddlgbase.cpp || echo './'`cppaddmethoddlgbase.cpp
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall
 -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wcon
version -fno-builtin -g -O2 -g3 -O0 -fno-exceptions -fno-check-new    -o
libkdevcppsupport.la.closure libkdevcppsupport_la_cl
osure.lo -lfl -L/usr/X11R6/lib -L/usr/lib/qt3-gcc2.96/lib -L/usr/lib
-avoid-version -module -no-undefined -R /usr/lib -R /us
r/lib/qt3-gcc2.96/lib -R /usr/X11R6/lib  cppsupportpart.lo
cppsupportwidget.lo classparser.lo tokenizer.lo ccconfigwidget.lo
cppnewclassdlg.lo cppaddmethoddlg.lo cclonefunctiondlg.lo
addclassattributedlg.lo cppcodecompletion.lo cppccparser.lo parsedv
ariable.lo scope.lo simpleparser.lo kdevregexp.lo ccconfigwidgetbase.lo
cppnewclassdlgbase.lo cppaddmethoddlgbase.lo ../../li
b/libkdevelop.la
.libs/ccconfigwidget.o: In function `QChar::QChar(QChar const &)':
/usr/lib/qt3-gcc2.96/include/qstring.h(.text+0x1e): undefined reference to
`CCConfigWidgetBase::CCConfigWidgetBase(QWidget *,
 char const *, unsigned int)'
.libs/ccconfigwidget.o: In function `CCConfigWidget::
~CCConfigWidget(void)':
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidget.cpp:156:
undefined reference to `CCConfigWidgetBase::~CCCon
figWidgetBase(void)'
.libs/ccconfigwidgetbase.o: In function `CCConfigWidgetBase::tr(char const
*, char const *)':
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:32:

undefined reference to `CCConfigWidgetBase::~CC
ConfigWidgetBase(void)'
.libs/ccconfigwidgetbase.o: In function `CCConfigWidgetBase::qt_cast(char
const *)':
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::im
plementationFile(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::in
terfaceFile(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::sl
otAddPPPath(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::sl
otEnableCC(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::sl
otEnableCH(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:101:

undefined reference to `CCConfigWidgetBase::sl
otEnableChooseFiles(bool)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:102:

undefined reference to `CCConfigWidgetBase::sl
otEnablePCS(void)'
.libs/ccconfigwidgetbase.o: In function `CCConfigWidgetBase::qt_invoke(int,
QUObject *)':
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:105:

undefined reference to `CCConfigWidgetBase::sl
otEnablePP(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:105:

undefined reference to `CCConfigWidgetBase::sl
otRemovePPPath(void)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:105:

undefined reference to `CCConfigWidgetBase::sl
otSelectTemplateGroup(QString const &)'
/home/jsgaarde/kdesource/kdevelop/parts/cppsupport/ccconfigwidgetbase.moc:105:

undefined reference to `CCConfigWidgetBase::sl
otSetCHWindow(void)'
.libs/ccconfigwidgetbase.o: In function `QUType_QString::get(QUObject *)':
/usr/lib/qt3-gcc2.96/include/private/qucom_p.h(.gnu.linkonce.t.
__thunk_40__._18CCConfigWidgetBase+0x14): undefined reference
to `CCConfigWidgetBase::~CCConfigWidgetBase(void)'
collect2: ld returned 1 exit status
make[4]: *** [libkdevcppsupport.la.closure] Error 1
make[4]: Leaving directory
`/home/jsgaarde/kdesource/kdevelop/parts/cppsupport'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/jsgaarde/kdesource/kdevelop/parts/cppsupport'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jsgaarde/kdesource/kdevelop/parts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsgaarde/kdesource/kdevelop'
make: *** [all] Error 2


So now I can't build Gideon in either qt 3.0.3 nor 3.0.5 - please help.
I built qt 3.0.5 in a seperate directory so 3.0.3 hasn't been effected.

-----------------------------------------------------------------------------------------------

Jakob Simon-Gaarde
Trapeze Software Europe        Phone: +45 87 44 16 31
Søren Frichs Vej 38K, 2           Fax:     +45 87 44 16 01
DK-8230 Åbyhøj                      Email: jlu at trapezesoftware.dk
-----------------------------------------------------------------------------------------------





More information about the KDevelop-devel mailing list