[bt-devel] troubles building

Martin Gruner bt-devel@crosswire.org
Mon, 11 Mar 2002 16:45:57 +0100


> Thanks for the tips. Yes, I was using the --enable-debug option. I'm
> getting errors trying the work around you mentoined.  I have autoconf
> 2.52 (when i tried with 2.13, it just hangs for ever). I'm left with a 0
> byte configure script.  Any ideas?

Not really. Except I have autoconf 1.52 too. That cannot really be the 
reason... Try checking out a fresh copy.

Martin


>
> [mark@basement bibletime]$ make -f Makefile.cvs
> This Makefile is only for the CVS repository
> This will be deleted before making the distribution
>
> *** Creating acinclude.m4
> !!! If you get recursion errors from autoconf, it is advisable to set the
>      environment variable M4 to something including "--nesting-limit=500"
> *** Creating list of subdirectories
> *** Creating configure.in
> *** Creating aclocal.m4
> *** Creating configure
> configure.in:107: warning: AC_CANONICAL_TARGET invoked multiple times
> configure.in:109: warning: AC_ARG_PROGRAM invoked multiple times
> NONE:0: error: m4_init: unbalanced m4_divert_push:
> configure.in:24: m4_divert_push: BODY
> configure.in:24: m4_divert_push: KILL
> NONE:0: the top level
> make[1]: *** [cvs] Error 1
>
> Martin Gruner wrote:
> > 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="export CXXFLAGS="-g3"-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