[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    strange compile behaviour: undefined reference to
From:       Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date:       2004-02-28 19:58:46
Message-ID: 200402282055.39892.raphael-langerhorst () gmx ! at
[Download RAW message or body]

Hi all,

this behavior has remained in CVS for around 24 hours now, so I wanted comment on it.
Note: it might also be related to me trying for the first time to compile it with Qt \
3.3.0. And yes, I did a complete "make distclean", ... cycle to make sure.

settings:
linux 2.6.0
KDE 3.2.0 (compiled from source with Qt 3.2.3 (also compiled from source))
autoconf 2.57
automake 1.7.6

all Qt's configured with -thread

what I'm doing:
compiling KOffice CVS HEAD of 28th February 04 with QT 3.3.0

If you get this output when calling 'make' in the koffice/lib directory:


make[2]: Entering directory `/home/raphael/devel/kde/koffice/lib/kofficeui'

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -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 \
-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 libkofficeui.la -rpath /opt/kde32/lib -version-info 2:0:0 \
-no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/X11R6/lib \
-L/opt/qt3.3.0/lib -L/opt/kde32/lib  koPageLayoutDia.lo kozoomaction.lo kotabbar.lo \
koPartSelectDia.lo koPartSelectAction.lo koRuler.lo koTemplateChooseDia.lo \
koTabChooser.lo koKoolBar.lo koTemplateCreateDia.lo kocontexthelp.lo kcoloractions.lo \
koToolBox.lo koTemplates.lo koRect.lo koPictureFilePreview.lo koUnitWidgets.lo \
tkaction.lo tkcoloractions.lo tkcombobox.lo tktoolbarbutton.lo koCharSelectDia.lo \
koInsertLink.lo koeditpath.lo koSpellConfig.lo kocommandhistory.lo \
../../lib/kofficecore/libkofficecore.la ../kospell/libkospell.la

.libs/koUnitWidgets.o(.gnu.linkonce.d._ZTV20KoUnitDoubleComboBox+0xc8): undefined \
reference to `QComboBox::hide()'

.libs/tkcombobox.o(.gnu.linkonce.d._ZTV10TKComboBox+0xc8): undefined reference to \
`QComboBox::hide()'

collect2: ld returned 1 exit status


then you need to insert a -lqt-mt (or a -lqt when Qt is compiled without thread \
support) just before the "-o libkofficeui.la" in the line beginning with "/bin/sh \
../../libtool --silent" and call this command by hand, it should look like this:

cd $KOFFICE/lib/kofficeui/
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -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 \
-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   -lqt-mt -o libkofficeui.la -rpath /opt/kde32/lib -version-info \
2:0:0 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/X11R6/lib \
-L/opt/qt3.3.0/lib -L/opt/kde32/lib  koPageLayoutDia.lo kozoomaction.lo kotabbar.lo \
koPartSelectDia.lo koPartSelectAction.lo koRuler.lo koTemplateChooseDia.lo \
koTabChooser.lo koKoolBar.lo koTemplateCreateDia.lo kocontexthelp.lo kcoloractions.lo \
koToolBox.lo koTemplates.lo koRect.lo koPictureFilePreview.lo koUnitWidgets.lo \
tkaction.lo tkcoloractions.lo tkcombobox.lo tktoolbarbutton.lo koCharSelectDia.lo \
koInsertLink.lo koeditpath.lo koSpellConfig.lo kocommandhistory.lo \
../../lib/kofficecore/libkofficecore.la ../kospell/libkospell.la

you can then proceed normal with the rest (go to $KOFFICE and issue "make")

Actually I have no idea why this happens, maybe some strange thing
with automake/autoconf configuration on my non-standard system... if it's a bug \
others will have the same problem and maybe some file needs fixing. It worked fine \
before (it did for CVS version before 18th February, but maybe it was also
because I now switched to Qt 3.3.0 for KOffice? I have compiled rest of KDE
and all prior compilations of KOffice with Qt 3.2.3).


just some information if anyone has the same problems...

Regards,
Raphael
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic