Build Problems on RedHat 6.2 (was Re: [sword-devel] Diatheke)

Troy A. Griffitts sword-devel@crosswire.org
Sun, 28 Oct 2001 15:44:15 -0700


Tim,
	Yeah, there's been something strange with ar and our makesystem. 
Sometimes things don't get added to the lib (.a file).  Try going into
the directory with the missing object file and type  'make clean' then
'make'.  e.g.

cd src/modules/comments/rawcom
make clean
make
cd ../../../..
make

Hope this helps.

	-Troy.



"Timothy R. Butler" wrote:
> 
> Hi again,
>   After playing with the code some more, I seem to be having a completely
> different problem compiling. I can get all of the $SWORD_HOME/src/ directory
> to build, but the $SWORD_HOME/test/ fails with the following message:
> 
> ----
> gcc -I../include/ -D_GNU_SOURCE -DNDEBUG -D_GNU_SOURCE -DNDEBUG -pipe -Wall
> -Wno-format -pedantic -pedantic  -fomit-frame-pointer -s -O3 -DUSBINARY -m486
> -o keytest keytest.cpp   -L../lib/  -lsword -lstdc++ -lz
> ../lib//libsword.a(swmgr.o): In function `SWMgr::CreateMod(basic_string<char,
> string_char_traits<char>, __default_alloc_template<true, 0> >,
> basic_string<char, string_char_traits<char>, __default_alloc_template<true,
> 0> >, multimapwithdefault<basic_string<char, string_char_traits<char>,
> __default_alloc_template<true, 0> >, basic_string<char,
> string_char_traits<char>, __default_alloc_template<true, 0> >,
> less<basic_string<char, string_char_traits<char>,
> __default_alloc_template<true, 0> > > > &)':
> swmgr.o(.text+0x6582): undefined reference to `RawCom::RawCom(char const *,
> char const *, char const *, SWDisplay *, bool)'
> collect2: ld returned 1 exit status
> make: *** [keytest] Error 1
> ----
> 
>   Does anyone have any ideas why I might have this failure? I seem to be
> running into this on both Sword-1.5.2 and CVS. Once again, this is a RedHat
> 6.2 system I am trying to install Sword on.
> 
>   Thanks,
>        Tim
> 
> --
> -----------------------------------------------------------------
> Timothy R. Butler  | Universal Networks |  http://www.uninet.info
> tbutler@uninetsolutions.com           ICQ: 12495932 AIM: Uninettm
> Christian Portal and Search Tool:        http://www.faithtree.com
> Open Source Migration Guide:      http://open.uninetsolutions.com
> ============== "Christian Web Services Since 1996" ==============