Build Problems on RedHat 6.2 (was Re: [sword-devel] Diatheke)
Timothy R. Butler
sword-devel@crosswire.org
Mon, 29 Oct 2001 19:07:15 -0600
Hi again,
I got past that error (I'm not quite sure how), but I'm have problems with
the RawText directory in a similar fashion:
---make -C tests just-targets
make[1]: Entering directory `/home/uninet/cvs/sword-1.5.2/tests'
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(rawtext.o): In function `RawText::RawText(char const *,
char const *, char const *, SWDisplay *, bool)':
rawtext.o(.text+0x25): undefined reference to `SWText::SWText(char const *,
char const *, SWDisplay *, bool)'
rawtext.o(.text+0xbfc): undefined reference to `SWText::~SWText(void)'
../lib//libsword.a(rawtext.o): In function `RawText::~RawText(void)':
rawtext.o(.text+0x3655): undefined reference to `SWText::~SWText(void)'
../lib//libsword.a(rawtext.o): In function `RawText type_info function':
rawtext.o(.text+0x36b5): undefined reference to `SWText type_info function'
../lib//libsword.a(rawtext.o)(.rodata+0x150): undefined reference to
`SWText::CreateKey(void)'
../lib//libsword.a(rawtext.o)(.rodata+0x1bc): undefined reference to `SWText
type_info node'
../lib//libsword.a(ztext.o): In function `zText::~zText(void)':
ztext.o(.text+0x771): undefined reference to `SWText::~SWText(void)'
../lib//libsword.a(ztext.o): In function `zText::zText(char const *, char
const *, char const *, int, SWCompress *, SWDisplay *, bool)':
ztext.o(.text+0x7ca): undefined reference to `SWText::SWText(char const *,
char const *, SWDisplay *, bool)'
../lib//libsword.a(ztext.o): In function `zText type_info function':
ztext.o(.text+0x870): undefined reference to `SWText type_info function'
../lib//libsword.a(ztext.o)(.rodata+0x90): undefined reference to
`SWText::CreateKey(void)'../lib//libsword.a(ztext.o)(.rodata+0x110):
undefined reference to `SWText type_info node'
----
Oddly enough I've tried repeatedly to "make clean; make" in all the
subdirectories under "text," but every attempt has failed.
Any ideas?
Thanks,
Tim
On Sunday 28 October 2001 10:44 pm, you wrote:
> Hi Troy,
> Thanks, that does definately help, but it seems to lead to a different
> but related problem. It now outputs:
>
> ----
> gcc -L../../../lib/ -o diatheke diatheke.o corediatheke.o -lsword
> -lstdc++ -lz
> corediatheke.o: In function `doquery(int, char, char, char, char const *,
> char const *, char const *)':
> corediatheke.o(.text+0x2303): undefined reference to
> `UnicodeRTF::UnicodeRTF(void)'
> corediatheke.o(.text+0x29b7): undefined reference to
> `UnicodeRTF::UnicodeRTF(void)'
> collect2: ld returned 1 exit status
> make: *** [diatheke] Error 1
> ----
>
> I located a file named unicodertf.cpp, so I did the make clean and make
> commands on it, but apparently that doesn't resolve this problem. Any ideas
> what might cause the UnicodeRTF error? I'm sorry to keep coming up with new
> errors...
>
> Thanks,
> Tim
>
> On Sunday 28 October 2001 04:44 pm, you wrote:
> > 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 | 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" ==============