[bt-devel] Bibletime-2 compile problem

Joachim Ansorg bt-devel@crosswire.org
Tue, 13 Mar 2001 14:36:14 +0100


Hi!

I think you did everything right.

Please make sure there are no old headers on your system - to check this 
please send me the output of BibleTime's configure and the output of 
"find / -name sw*.h".

God bless you!

Joachim

On Sunday, 11. March 2001 15:21, you wrote:
> Joachim
> I tried your last suggestion and the compile stalled at the same place.
>
> First I updated from CVS.  I did not check out a fresh copy.
> I checked the switches in sword they looked the same as the last time I ran
> it. Copy of switch settings is below.
>
> I tried
> export QTDIR=/usr/lib/qt-2.2.2
> export KDEDIR=/usr/local/kde2
> cd ./sword
> make clean
> make
> make install
>
> This worked, so I looked at /etc/ld.so.config (copy below) and
> /etc/sword.conf (not included) these looked OK.
>
> Then I ran
> cd ./bibletime
> make clean
> make
> this failed with an error 1 and error 2 just like last time (and also next)
> so I did not run   make install.
>
> now I ran
> make distclean
> make -f Makefile.cvs
> ./configure
> make
> this  also failed with an error 1 and error 2  so I did not run   make
> install. I have attached a partial dump of this run at the end of this
> message.
>
> I am at the limit of my programming knowledge here, any suggestions would
> be appreciated.
>
>
>
>
>
>
>
> --
> Best Regards
> Fred Saalbach
> saalbach@sybercom.net
>
> ----------------------------------------------------------------------
>
> ./sword/Makefile.cfg switches - remainder left alone
>
> ##### Customizable stuff. Set it how you like it #####
>
> # compiler
>
> CROSS_COMPILE =
> CC         = gcc
> need_local_regex := no
>
>
> # shared library- set to yes if you would like to build
>
> buildshare := yes
>
>
> # VCL library- set to yes if you would like to build
>
> buildvcl := yes
>
>
> # Debugging options etc...
>
> debug   := no
> profile := no
>
>
> # endian, etc. support for other hardware
>
> system := intel
> #system := sparc
> #system := macosx
> #system := arm
>
> ## MAC OSX Support works but possible bug exists in
> /usr/include/sys/dirent.h ## on the current version (B) of OSX.  You will
> need to add this line right after the #ifdef of DIRENT
> #include <sys/types.h>
>
>
> # zLib support
>
> zlib := yes
>
>
> # paths
>
> instdir   := /usr/local/sword
>
> bindir    := ${instdir}/bin
> libdir    := ${instdir}/lib
> hdir      := ${instdir}/include/sword
> docdir    := ${instdir}/doc/sword
> confdir   := ${instdir}/share/sword
>
>
>
> #--------------------------------------------------------------------------
>----#
>
> /etc/ld.so.conf
> ---------------------------------------------------------------------------
>---- /usr/i486-linux-libc5/lib
> /usr/X11R6/lib
> /usr/local/sword/lib  #points to /usr/local/sword/lib/libsword.so
>
> ---------------------------------------------------------------------------
>---- bibletime-2 compile -- section that failed  I hope that this is enough
> to identify the portion with the problem.
> ---------------------------------------------------------------------------
>----
>
> ...
>
> /usr/local/sword/include/sword/swfilter.h: At top level:
> /usr/local/sword/include/sword/swfilter.h:104: warning: `class SWFilter'
> has virtual functions but non-virtual destructor
> /usr/local/sword/include/sword/swfilter.h: In method `void
> SWFilter::setOptionValue(const char *)':
> /usr/local/sword/include/sword/swfilter.h:79: warning: unused parameter
> `const char * ival'
> /usr/local/sword/include/sword/swfilter.h: In method `char
> SWFilter::ProcessText(char *, int, const SWKey *)':
> /usr/local/sword/include/sword/swfilter.h:92: warning: unused parameter
> `const class SWKey * key'
> In file included from /usr/local/sword/include/sword/swmgr.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordbackend.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordmoduleinfo.h:23,
>                  from frontend/groupmanager/cgroupmanager.h:32,
>                  from bibletime.h:31,
>                  from main.cpp:35:
> /usr/local/sword/include/sword/swmodule.h: In function `static char
> SWModule::createModule(const char *)':
> /usr/local/sword/include/sword/swmodule.h:276: warning: unused parameter
> `const char * path'
> /usr/lib/qt-2.2.2/bin/moc ./bibletime.h -o bibletime.moc.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde2/include
> -I/usr/lib/qt-2.2.2/include -I/usr/X11R6/include   -D_REENTRANT
> -I/usr/local/sword/include/sword -DQT_NO_ASCII_CAST  -O2 -fno-check-new
> -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long -fno-builtin  -c bibletime.moc.cpp
> In file included from /usr/local/sword/include/sword/swmodule.h:29,
>                  from /usr/local/sword/include/sword/swmgr.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordbackend.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordmoduleinfo.h:23,
>                  from frontend/groupmanager/cgroupmanager.h:32,
>                  from bibletime.h:31,
>                  from bibletime.moc.cpp:17:
> /usr/local/sword/include/sword/listkey.h: In method `long int
> ListKey::Index(long int)':
> /usr/local/sword/include/sword/listkey.h:113: warning: unused parameter
> `long int iindex'
> In file included from /usr/local/sword/include/sword/swmodule.h:30,
>                  from /usr/local/sword/include/sword/swmgr.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordbackend.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordmoduleinfo.h:23,
>                  from frontend/groupmanager/cgroupmanager.h:32,
>                  from bibletime.h:31,
>                  from bibletime.moc.cpp:17:
> /usr/local/sword/include/sword/swfilter.h: At top level:
> /usr/local/sword/include/sword/swfilter.h:104: warning: `class SWFilter'
> has virtual functions but non-virtual destructor
> /usr/local/sword/include/sword/swfilter.h: In method `void
> SWFilter::setOptionValue(const char *)':
> /usr/local/sword/include/sword/swfilter.h:79: warning: unused parameter
> `const char * ival'
> /usr/local/sword/include/sword/swfilter.h: In method `char
> SWFilter::ProcessText(char *, int, const SWKey *)':
> /usr/local/sword/include/sword/swfilter.h:92: warning: unused parameter
> `const class SWKey * key'
> In file included from /usr/local/sword/include/sword/swmgr.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordbackend.h:30,
>                  from
> frontend/groupmanager/../../backend/sword_backend/cswordmoduleinfo.h:23,
>                  from frontend/groupmanager/cgroupmanager.h:32,
>                  from bibletime.h:31,
>                  from bibletime.moc.cpp:17:
> /usr/local/sword/include/sword/swmodule.h: In function `static char
> SWModule::createModule(const char *)':
> /usr/local/sword/include/sword/swmodule.h:276: warning: unused parameter
> `const char * path'
> creating bibletime_meta_unload.cpp
> rm -f bibletime_meta_unload.cpp
> cat  bibletime.moc.cpp | grep 'char.*className' | sed -e
> 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$/\"\1\",/' | sort | uniq
> >> bibletime_meta_unload.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde2/include
> -I/usr/lib/qt-2.2.2/include -I/usr/X11R6/include   -D_REENTRANT
> -I/usr/local/sword/include/sword -DQT_NO_ASCII_CAST  -O2 -fno-check-new
> -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long -fno-builtin  -c bibletime_meta_unload.cpp
> /bin/sh ../libtool --mode=link --tag=CXX g++  -O2 -fno-check-new -Wall
> -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long -fno-builtin   -o bibletime -L/usr/X11R6/lib
> -L/usr/lib/qt-2.2.2/lib -L/usr/local/kde2/lib  -L/usr/local/sword/lib -R
> /usr/local/kde2/lib -R /usr/lib/qt-2.2.2/lib -R /usr/X11R6/lib
> bibletime_init.o bibletime_slots.o bibletime.o main.o bibletime.moc.o
> bibletime_meta_unload.o  -lpthread -lkfile -lkdeui -lkdecore -lqt -lpng -lz
> -lm -ljpeg -lXext -lX11  -lSM -lICE -lXext -lX11 
> ./frontend/thirdparty/qt3stuff/libqt3stuff.a
> ./frontend/presenters/libpresenters.a ./frontend/keychooser/libkeychooser.a
> ./frontend/groupmanager/libgroupmanager.a
> ./frontend/searchdialog/libsearchdialog.a
> ./frontend/optionsdialog/liboptionsdialog.a
> ./backend/sword_backend/libbibletime_swordbackend.la
> ./backend/libbibletime_backend.la ./printing/libprinting.a
> ./frontend/libbibletime_frontend.la  -lsword
> mkdir .libs
> g++ -O2 -fno-check-new -Wall -pedantic -W -Wpointer-arith
> -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -o
> .libs/bibletime bibletime_init.o bibletime_slots.o bibletime.o main.o
> bibletime.moc.o bibletime_meta_unload.o -L/usr/X11R6/lib
> -L/usr/lib/qt-2.2.2/lib -L/usr/local/kde2/lib
> -L/usr/local/sword/lib -L/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3
> -L/usr/i586-mandrake-linux/lib -lXext -lX11 -lz -lz -lXext -lX11 -lz -lXext
> -lX11 -lz -lXext -lX11 -lXext -lX11
> ./frontend/thirdparty/qt3stuff/libqt3stuff.a
> ./frontend/presenters/libpresenters.a ./frontend/keychooser/libkeychooser.a
> ./frontend/groupmanager/libgroupmanager.a
> ./frontend/searchdialog/libsearchdialog.a
> ./frontend/optionsdialog/liboptionsdialog.a
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so -lz -lsword -lz
> -lsword -lz -lz -lXext -lX11 -lsword -lsword
> ./backend/.libs/libbibletime_backend.so -lsword -lz -lz -lXext -lX11
> -lsword ./printing/libprinting.a ./frontend/.libs/libbibletime_frontend.so
> -lsword -lz -lz -lsword
> /home/fks00/Develop/bibletime-2/bibletime/backend/sword_backend/.libs/libbi
>bletime_swordbackend.so -lz -lsword -lz -lpthread
> /home/fks00/Develop/bibletime-2/bibletime/backend/.libs/libbibletime_backen
>d.so -lsword -lz -lz -lsword -lsword -lz -lz -lz
> /usr/local/kde2/lib/libkfile.so /usr/local/kde2/lib/libksycoca.so
> /usr/local/kde2/lib/libkio.so
> /usr/local/kde2/lib/libkdeui.so /usr/local/kde2/lib/libkdesu.so
> /usr/local/kde2/lib/libkdecore.so -ldl /usr/local/kde2/lib/libDCOP.so -lqt
> -lpng /usr/lib/libjpeg.so -lXext -lX11 -lSM -lICE -lutil -lz -lz -lsword
> -lstdc++ -lm -lc -lgcc -lsword -Wl,--rpath -Wl,/usr/local/kde2/lib
> -Wl,--rpath
> -Wl,/usr/lib/qt-2.2.2/lib -Wl,--rpath -Wl,/usr/X11R6/lib
> ./frontend/optionsdialog/liboptionsdialog.a(coptionsdialog.o): In function
> `COptionsDialog::initGeneralPage(void)':
> coptionsdialog.o(.text+0x3c34): undefined reference to
> `LocaleMgr::systemLocaleMgr'
> coptionsdialog.o(.text+0x3c3a): undefined reference to
> `LocaleMgr::getAvailableLocales(void)'
> coptionsdialog.o(.text+0x3c79): undefined reference to
> `LocaleMgr::systemLocaleMgr'
> coptionsdialog.o(.text+0x3c7e): undefined reference to
> `LocaleMgr::getLocale(char const *)'
> coptionsdialog.o(.text+0x3d4c): undefined reference to
> `LocaleMgr::systemLocaleMgr'
> coptionsdialog.o(.text+0x3d51): undefined reference to
> `LocaleMgr::getLocale(char const *)'
> ./frontend/optionsdialog/liboptionsdialog.a(coptionsdialog.o): In function
> `COptionsDialog::saveGeneralOptions(void)':
> coptionsdialog.o(.text+0x4f26): undefined reference to
> `LocaleMgr::systemLocaleMgr'
> coptionsdialog.o(.text+0x4f2c): undefined reference to
> `LocaleMgr::getAvailableLocales(void)'
> coptionsdialog.o(.text+0x4f89): undefined reference to
> `LocaleMgr::systemLocaleMgr'
> coptionsdialog.o(.text+0x4f8e): undefined reference to
> `LocaleMgr::getLocale(char const *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `RTFHTML::RTFHTML(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to `strstrip(char *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `LocaleMgr::getDefaultLocaleName(void)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `SWConfig::SWConfig(char const *)'
> /usr/local/sword/lib/libsword.so: undefined reference to `SWLog::systemlog'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `RawText::RawText(char const *, char const *, char const *, SWDisplay *)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `ZipCompress::ZipCompress(void)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `SWDisplay type_info function'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `PLAINHTML::PLAINHTML(void)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `LocaleMgr::setDefaultLocaleName(char const *)'
> /usr/local/sword/lib/libsword.so: undefined reference to `RawLD::RawLD(char
> const *, char const *, char const *, SWDisplay *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `RTFHTML::ProcessText(char *, int, SWKey const *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `GBFHTML::GBFHTML(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `HREFCom::HREFCom(char const *, char const *, char const *, char const *,
> SWDisplay *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `SWDisplay type_info node'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `RawFiles::RawFiles(char const *, char const *, char const *, SWDisplay *)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `GBFFootnotes::GBFFootnotes(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `SWConfig::~SWConfig(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `CipherFilter::CipherFilter(char const *)'
> /usr/local/sword/lib/libsword.so: undefined reference to `zText::zText(char
> const *, char const *, char const *, int, SWCompress *, SWDisplay *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `SWDisplay virtual table'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `SWDisplay::Display(SWModule &)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `RawCom::RawCom(char const *, char const *, char const *, SWDisplay *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `stdstr(char **, char const *)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `GBFStrongs::GBFStrongs(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `GBFPlain::GBFPlain(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to `stricmp(char
> const *, char const *)'
> ./backend/sword_backend/.libs/libbibletime_swordbackend.so: undefined
> reference to `ThMLHTML::ThMLHTML(void)'
> /usr/local/sword/lib/libsword.so: undefined reference to
> `LZSSCompress::LZSSCompress(void)'
> collect2: ld returned 1 exit status
> make[3]: *** [bibletime] Error 1
> make[3]: Leaving directory `/home/fks00/Develop/bibletime-2/bibletime'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/fks00/Develop/bibletime-2/bibletime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/fks00/Develop/bibletime-2'
> make: *** [all-recursive-am] Error 2
> [root@localhost bibletime-2]#

-- 
Joachim Ansorg
BibleTime - www.bibletime.de - info@bibletime.de
BibleTime is an easy to use Bible study tool for KDE / Linux.