[bt-devel] troubles building

Martin Gruner bt-devel@crosswire.org
Mon, 11 Mar 2002 15:26:33 +0100


Hi Mark,

it might be related to the -pedantic option of the compiler. Matt reported 
that it does not like the sword headers in pedantic mode. BTW, you have 
interesting -D defines there, like -D_XOPEN_SOURCE=500 and -D_BSD_SOURCE. 
Where do they come from, as well as those warnings? Is that how it looks like 
when you run it with "configure --enable-debug"?

In case this were true, see what Joachim recently posted on bt-devel:
But to debug BibleTime simply run 
make distclean; 
make -f Makefile.cvs; 
export CXXFLAGS="-g3"; ./configure; 
make  
This will rebuild BibleTime's code with debugging code.
I hope this helps. I can't fix --enable-debug because it's one of KDE's 
standard options.

Martin


> i grabbed the latest cvs for sword, and it seemed to build and install
> ok. i'm having this problem building bibletime now.  i figured i would
> post to sword devel as well since this seems to be having troubles
> linking to sword.
>
> any ideas/suggestions?
>
>
> make[3]: Entering directory
> `/home/mark/bibletime/bibletime/bibletime/backend'
> c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/mark/sw/kde/2.2.2/include
> -I/home/mark/sw/kde/qt-2.3.2/include -I/usr/X11R6/include
> -I/usr/local/include/sword  -D_REENTRANT -DQT_NO_ASCII_CAST
> -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE  -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion
> -fno-builtin -Wnon-virtual-dtor -Wno-long-long -g -O2 -Wall -pedantic -W
> -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-exceptions
> -fno-check-new -c cswordmodulesearch.cpp
> In file included from /usr/local/include/sword/swmodule.h:31,
>                   from /usr/local/include/sword/swmgr.h:46,
>                   from cswordbackend.h:30,
>                   from cswordmoduleinfo.h:22,
>                   from cswordmodulesearch.cpp:20:
> /usr/local/include/sword/swconfig.h: In method `bool
> multimapwithdefault<Key, T, Compare>::has (const Key &, const T &)
> const':
> /usr/local/include/sword/swconfig.h:49: parse error before `='
> /usr/local/include/sword/swconfig.h:50: parse error before `='
> cswordmodulesearch.cpp: In function `void startSearchCallback (void
> *)':
> cswordmodulesearch.cpp:37: warning: unused parameter `void *p'
> cswordmodulesearch.cpp: In method
> `CSwordModuleSearch::CSwordModuleSearch ()':
> cswordmodulesearch.h:146: warning: member initializers for `bool
> CSwordModuleSearch::m_isSearching'
> cswordmodulesearch.h:145: warning:   and `bool
> CSwordModuleSearch::m_foundItems'
> cswordmodulesearch.cpp:51: warning:   will be re-ordered to match
> declaration order
> cswordmodulesearch.h:147: warning: member initializers for `bool
> CSwordModuleSearch::m_terminateSearch'
> cswordmodulesearch.h:139: warning:   and `QString
> CSwordModuleSearch::m_searchedText'
> cswordmodulesearch.cpp:51: warning:   will be re-ordered to match
> declaration order
> cswordmodulesearch.cpp: In method `const bool
> CSwordModuleSearch::startSearch ()':
> cswordmodulesearch.cpp:90: warning: unused variable `CSwordModuleInfo