[sword-devel] Fwd: Form posted from Mozilla
Linus Gasser
sword-devel@crosswire.org
Mon, 17 Apr 2000 22:51:48 -0400
Hello,
you wrote:
> rawstr.cpp:26: sys/pctypes.h: No such file or directory
> rawstr.cpp: In method `void RawStr::getidxbuf(long int, char **)':
> rawstr.cpp:135: warning: implicit declaration of function `int lelong(...)'
> rawstr.cpp: In method `char RawStr::findoffset(const char *, long int *, short u
> nsigned int *, long int = 0)':
> rawstr.cpp:226: warning: implicit declaration of function `int leshort(...)'
> make[3]: *** [rawstr.o] Error 1
> make[3]: Leaving directory `/usr/src/sword-1.5.0/src/modules/common'
> make[2]: *** [common/targets] Error 2
> make[2]: Leaving directory `/usr/src/sword-1.5.0/src/modules'
> make[1]: *** [modules/targets] Error 2
> make[1]: Leaving directory `/usr/src/sword-1.5.0/src'
>
>
> Any ideas?
try once to edit your Makefile.cfg file. @ line 38 you have:
system := sparc
try once to edit this line and enter
system := sparc_test
perhaps this solves it, perhaps you just get errors 'cause of Big/Little-endian
(the way 16-bits are stored in 2 * 8 bits...), perhaps this ain't got change
for your system. In the worst case, write yourself a function
int leshort( int )
that inverses the upper and lower 8 bit. Like:
out = ((in % 0xff)<<8) + (in / 0x100);
just as a hint!
Blessings
Linus
--
+--------------------------------------------+
I Linus Gasser I
I Villa "Ycapi" I
I Ch. des Acacias 26 I
I 06130 Grasse I
I FRANCE I
I Tel: 0033 (0)4 92 60 90 52 I
I Fax: 0033 (0)4 92 60 91 46 I
+--------------------------------------------+
I http://www.gbeu.ch I
+--------------------------------------------+