[bt-devel] Link Errors in CVS
Thomas J. Philpot
bt-devel@crosswire.org
Wed, 12 Apr 2000 15:14:28 -0500
On Mon, 03 Apr 2000, you wrote:
> I just did a clean checkout of BT 0.3 from CVS (i.e. I deleted my older version
> and re-chechecked it out) and I get the following link error. Any thoughts?
>
> make[3]: Entering directory `/home/thomas/src/KDE/bibletime-2/bibletime'
>
> /bin/sh ../libtool --silent --mode=link g++ -O2 -s -o bibletime -L/opt/kde2/lib -L/opt/q
> /usr/X11R6/lib kstartuplogo.o chtmlwidget.o chtmldialog.o cbackend.o
> bibletime_init.o bibletime_slots.o bibletime.o main.o chtmldialog.moc.o
> cbackend.moc.o chtmlwidget.moc.o bibletime.moc.o kstartuplogo.moc.o
> ./backend/sword/libsword.a ./backend/libbackend.a ./tipofday/libtipofday.a
> ../frontend/libfrontend.a ./frontend/presenters/libpresenters.a
> ../frontend/groupmanager/libgroupmanager.a
> ../frontend/optionsdialog/liboptionsdialog.a
> ../frontend/searchdialog/libsearchdialog.a -lkhtml -lkdeui -lkdecore -lqt -lXext
> --lX11 -lsword ./backend/sword/libsword.a(cswordbackendmanager.o): In function
> `CSWORDBackEndManager::CSWORDBackEndManager(void)':
> cswordbackendmanager.o(.text+0xcd): undefined reference to
> `PLAINFootnotes::PLAINFootnotes(void)' collect2: ld returned 1 exit status
> make[3]: *** [bibletime] Error 1 make[3]: Leaving directory
> `/home/thomas/src/KDE/bibletime-2/bibletime' make[2]: *** [all-recursive] Error
> 1 make[2]: Leaving directory `/home/thomas/src/KDE/bibletime-2/bibletime'
> make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
> `/home/thomas/src/KDE/bibletime-2' make: *** [all-recursive-am] Error 2
I figured out what my problem was. Evidently the sword tarball
(sword-1.5.0.tar.gz, dated March 15,2000) I got from ftp.crosswire.org has a
couple of problems in the src/modules/filters/Makefile. It seems that
plainfootnotes.cpp and thmlhtml.cpp are not being compiled and linked and thus
I was getting errors when I tried to compile bibletime. I added the lines
to compile those files and rebuilt sword and it worked fine. Here's an
output of the diff -u for the original Makefile and the updated one Makefile.fix
--- Makefile Sun Feb 13 16:20:27 2000
+++ Makefile.fix Wed Apr 12 15:10:41 2000
@@ -15,6 +15,9 @@
cpp += cipherfil.cpp
cpp += rtfhtml.cpp
+cpp += plainfootnotes.cpp
+cpp += thmlhtml.cpp
+
cpp += gbfstrongs.cpp
cpp += gbffootnotes.cpp
I don't exactly know what I did, but now bibletime works correctly for me.
Tom
>
> Thanks,
> Tom