[bt-devel] make trouble

Joachim Ansorg bt-devel@crosswire.org
Tue, 19 Sep 2000 17:26:45 +0000


Hi!

> Joachim,
>
> please look at the make stuff. I have strange trouble with it:
>
> after a rechechout, i did
> make -f Makefile.cvs
> Error #1:
> This Makefile is only for the CVS repository
> This will be deleted before making the distribution

This is not a bug.
Some methods of CKeyChooser are unimplemented, the others bug were caused by 
bad Makfile.am files.
Test it now, it compiles, but does crash in CSearchDialog.

--Joachim

> *** Concatenating configure tests into acinclude.m4
> *** Creating list of subdirectories in subdirs
> *** Searching for subdirectories...
> *** Retrieving configure tests needed by configure.in
> *** Scanning for include statements
> *** Building Makefile templates (step one)
> po/Makefile.am:16: variable `POFILES' not defined
> po/Makefile.am:7: variable `POFILES' not defined
> *** Scanning for moc files and kde tags
> *** Building Makefile templates (step two)
> *** Creating date/time stamp
> *** Finished
>     Don't forget to run ./configure
>     If you haven't done so in a while, run ./configure --helpc
>
> it finished only because i did make -f Makefile.cvs --ignore-errors
> Configure works, but there is another error:
> Error #2
> configure.in.in sets CXXFLAGS to "-O2 -g1 -pg", but that is not used for
> the compiling...
>
> Then at the end, linking fails (maybe because of the previous errors):
> Error #3:
> g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith
> -Wmiss
> ing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -o bibletime
> ktextedi
> t.o ctipwindow.o ceditwidget.o actions.o ctoolclass.o chtmlwidget.o
> chtmldialog.
> o cbackend.o bibletime_init.o bibletime_slots.o bibletime.o main.o
> actions.moc.o
>  ktextedit.moc.o chtmldialog.moc.o ctipwindow.moc.o cbackend.moc.o
> chtmlwidget.m
> oc.o bibletime.moc.o ceditwidget.moc.o kstartuplogo.moc.o
> bibletime_meta_unload.
> o  -L/usr/X11/lib -L/usr/lib/qt2/lib -L/opt/kde/lib -L/usr/lib
> ./backend/sword/l
> iibsword.a ./backend/libbackend.a ./frontend/libfrontend.a
> ./frontend/presenters/
> llibpresenters.a ./frontend/groupmanager/libgroupmanager.a
> ./frontend/optionsdial
> oog/liboptionsdialog.a ./frontend/searchdialog/libsearchdialog.a
> ./backend/sword/
> llibsword.a ./printing/libprinting.a ./libhtmlparse/liblibhtmlparse.a
> ./frontend/
> kkeychooser/libkeychooser.a -lpthread /opt/kde/lib/libkfile.so
> /opt/kde/lib/libks
> ycoca.so /opt/kde/lib/libkio.so -L/usr/X11R6/lib -lSM -lICE -lICE -lSM
> -lICE -L/
> usr/lib/gcc-lib/i486-linux/egcs-2.91.66 -L/usr/i486-linux/lib
> /opt/kde/lib/libkd
> esu.so -lSM -lICE -lICE -lSM -lICE -lutil /opt/kde/lib/libkdeui.so -lSM
> -lICE -l
> ICE -lSM -lICE /opt/kde/lib/libkdecore.so -ldl /opt/kde/lib/libDCOP.so -lSM
> -lIC
> E -lICE -lpng -lz -ljpeg -lSM -lICE -lstdc++ -lm -lc -lgcc -lqt -lXext
> -lX11 -ls
> word -Wl,--rpath -Wl,/opt/kde/lib -Wl,--rpath -Wl,/opt/kde/lib -Wl,--rpath
> -Wl,/
> usr/lib/qt2/lib -Wl,--rpath -Wl,/usr/X11/lib
> main.o: In function `main':
> main.o(.text+0x589): undefined reference to
> `KStartupLogo::KStartupLogo(int)' kstartuplogo.moc.o: In function `virtual
> function thunk (delta:-36) for KStartup
> Logo::~KStartupLogo(void)':
> kstartuplogo.moc.o(.gnu.linkonce.t.__thunk_36__._12KStartupLogo+0x6):
> undefinedreference to `KStartupLogo::~KStartupLogo(void)'
> kstartuplogo.moc.o(.gnu.linkonce.d.__vt_12KStartupLogo+0x8): undefined
> reference
>  to `KStartupLogo::~KStartupLogo(void)'
> ./backend/sword/libsword.a(cswordlexiconmoduleinfo.o): In function
> ``CSWORDLexico
> nModuleInfo::getKeyChain(void)':
> cswordlexiconmoduleinfo.o(.text+0x3173): undefined reference to
> `CKeyChain::CKey
> Chain(void)'
> cswordlexiconmoduleinfo.o(.text+0x31a2): undefined reference to
> `CKeyChain::setK
> ey(QString const &)'
> ./backend/sword/libsword.a(cswordcommentarymoduleinfo.o): In function
> ``CSWORDCom
> mentaryModuleInfo::getKeyChain(void)':
> cswordcommentarymoduleinfo.o(.text+0xe3f): undefined reference to
> `CKeyChain::CK
> eyChain(void)'
> cswordcommentarymoduleinfo.o(.text+0xe99): undefined reference to
> `CKeyChain::se
> tKey(QString const &)'
> cswordcommentarymoduleinfo.o(.text+0xece): undefined reference to
> `CKeyChain::se
> tMaxChapters(int)'
> cswordcommentarymoduleinfo.o(.text+0xf03): undefined reference to
> `CKeyChain::ap
> pendMaxVerses(int)'
> ./backend/libbackend.a(cmoduleinfo.o): In function
> ``QList<CKeyChain>::deleteItem
> (void *)':
> cmoduleinfo.o(.QList<CKeyChain>::gnu.linkonce.t.deleteItem(void *)+0x1c):
> undefi
> ned reference to `CKeyChain::~CKeyChain(void)'
> ./frontend/presenters/libpresenters.a(cbiblepresenter.o): In function
> ``CBiblePre
> senter::updateToolbar(QString const &)':
> cbiblepresenter.o(.text+0x2971): undefined reference to
> `CKeyChain::getKey(void)
> '
> cbiblepresenter.o(.text+0x29bf): undefined reference to
> `CKeyChain::getMaxChapte
> rs(void)'
> cbiblepresenter.o(.text+0x2b31): undefined reference to
> `CKeyChain::getKey(void)
> '
> cbiblepresenter.o(.text+0x2b89): undefined reference to
> `CKeyChain::getMaxVerses
> (int)'
> ./frontend/presenters/libpresenters.a(cbiblepresenter.o): In function
> ``CBiblePre
> senter::bookComboPlugged(void)':
> cbiblepresenter.o(.text+0x2ec1): undefined reference to
> `CKeyChain::getKey(void)
> '
> cbiblepresenter.o(.text+0x2f0a): undefined reference to
> `CKeyChain::getKey(void)
> '
> ./frontend/presenters/libpresenters.a(cbiblepresenter.o): In function
> ``CBiblePre
> senter::chapterComboPlugged(void)':
> cbiblepresenter.o(.text+0x313b): undefined reference to
> `CKeyChain::getMaxChapte
> rs(void)'
> ./frontend/presenters/libpresenters.a(cbiblepresenter.o): In function
> ``CBiblePre
> senter::verseComboPlugged(void)':
> cbiblepresenter.o(.text+0x333d): undefined reference to
> `CKeyChain::getMaxVerses
> (int)'
> ./frontend/presenters/libpresenters.a(clexikonpresenter.o): In function
> ``CLexico
> nPresenter::entryComboPlugged(void)':
> clexikonpresenter.o(.text+0xd81): undefined reference to
> `CKeyChain::getKey(void
> )'
> clexikonpresenter.o(.text+0xdca): undefined reference to
> `CKeyChain::getKey(void
> )'
> ./frontend/presenters/libpresenters.a(ccommentarypresenter.o): In function
> ``CCom
> mentaryPresenter::updateToolbar(QString const &)':
> ccommentarypresenter.o(.text+0x47a1): undefined reference to
> `CKeyChain::getKey(
> void)'
> ccommentarypresenter.o(.text+0x47ed): undefined reference to
> `CKeyChain::getMaxC
> hapters(void)'
> ccommentarypresenter.o(.text+0x4965): undefined reference to
> `CKeyChain::getKey(
> void)'
> ccommentarypresenter.o(.text+0x49bf): undefined reference to
> `CKeyChain::getMaxV
> erses(int)'
> ./frontend/presenters/libpresenters.a(ccommentarypresenter.o): In function
> ``CCom
> mentaryPresenter::bookComboPlugged(void)':
> ccommentarypresenter.o(.text+0x4e5e): undefined reference to
> `CKeyChain::getKey(
> void)'
> ccommentarypresenter.o(.text+0x4ea7): undefined reference to
> `CKeyChain::getKey(
> ./frontend/keychooser/libkeychooser.a(ckeychooser.o): In function
> ``CKeyChooser::btn_down_clicked(void)':
> ckeychooser.o(.text+0x1ab): undefined reference to
> `CKeyChooser::prev_requested(void)'
> ./frontend/keychooser/libkeychooser.a(ckeychooser.o): In function
> ``CKeyChooser::btn_fx_down(void)':
> ckeychooser.o(.text+0x1d4): undefined reference to
> `CKeyChooser::locked(bool)'
> ./frontend/keychooser/libkeychooser.a(ckeychooser.o): In function
> ``CKeyChooser::btn_fx_up(void)':
> ckeychooser.o(.text+0x1f8): undefined reference to
> `CKeyChooser::locked(bool)' collect2: ld returned 1 exit status
> make[3]: *** [bibletime] Error 1
> make[3]: Leaving directory `/home/Martin/bibletime-2/bibletime'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/Martin/bibletime-2/bibletime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/Martin/bibletime-2'
> make: *** [all-recursive-am] Error 2
>
> And finally, compiling takes almost eternity ;-))...
> Thank you for helping.
>
> Martin