[sword-devel] 1.5.2 Compile error: Solaris

Brady Morgan sword-devel@crosswire.org
Mon, 19 Nov 2001 13:52:15 -0800 (PST)


Hi Jacob,

As a fellow Solaris-er (2.6/sparc), I've gotten past the point you've
reached by applying the following patch to
"src/modules/commmon/zverse.cpp":

*** zverse.cpp.ORIG     Tue Jun 26 06:37:35 2001
--- zverse.cpp  Tue Jul  3 15:17:03 2001
***************
*** 11,16 ****
--- 11,17 ----
  #include <fcntl.h>
  #include <errno.h>
  #include <stdlib.h>
+ #include <sys/pctypes.h>              /* For 'lelong()' */
  
  #ifndef __GNUC__
  #include <io.h>


That added include file defines the missing type.

-Brady Morgan


On 19-Nov-2001 Jacob Daniel wrote:
> Hi,
> 
> I have had little luck with compiling sword for solaris.  I
> finally have a GNU'ified env setup...I thought it would help but
> I got the following error message when I try to compile.  Am I
> missing a library or something? 
> 
> make[2]: Entering directory
> `/home/jdaniel/downloads/sword-1.5.2/src/modules/common'
> gcc -I../../../include/ -D_GNU_SOURCE -DNDEBUG -DUNIX
> -D_GNU_SOURCE -DNDEBUG -DUNIX -pipe -Wall -Wno-format -pedantic
> -pedantic  -fomit-frame-pointer -s -O3 -DBIGENDIAN -DUSBINARY -c
> -o zverse.o zverse.cpp
> zverse.cpp: In method `void zVerse::settext(char, long int, const
> char *)':
> zverse.cpp:304: `lelong' undeclared (first use this function)
> zverse.cpp:304: (Each undeclared identifier is reported only once
> zverse.cpp:304: for each function it appears in.)
> zverse.cpp:306: `leshort' undeclared (first use this function)
> make[2]: *** [zverse.o] Error 1
> 
> Thanks!
> Jacob