Jack Stewart - 2006-11-02

Hi,

Has anyone has done a successful compile of amberfish on Solaris 10 or run into errors similar to the ones below on other O/S's and were able to fix/patch. Any pointers would be greatly appreciated. I've a hunch that it might be as simple as a compiler flag however gcc3, gcc4, and SunPRO return the errors. Below are the errors (The warnings are indented for the sake of clarity). Thanks in advance!

defs.h:130: error: syntax error before 'off64_t'
     defs.h:130: warning: no semicolon at end of struct or union
     defs.h:131: warning: type defaults to 'int' in declaration of 'end'
     defs.h:131: warning: data definition has no type or storage class
defs.h:135: error: syntax error before '}' token
     defs.h:135: warning: type defaults to 'int' in declaration of 'ETYMON_DOCTABLE'
     defs.h:135: warning: data definition has no type or storage class
defs.h:276: error: syntax error before 'off64_t'
     defs.h:276: warning: no semicolon at end of struct or union
     defs.h:277: warning: type defaults to 'int' in declaration of 'doctable'
     defs.h:277: warning: data definition has no type or storage class
defs.h:289: error: syntax error before 'udict_size'
     defs.h:289: warning: type defaults to 'int' in declaration of 'udict_size'
     defs.h:289: warning: data definition has no type or storage class
defs.h:291: error: syntax error before 'upost_isize'
     defs.h:291: warning: type defaults to 'int' in declaration of 'upost_isize'
     defs.h:291: warning: data definition has no type or storage class
defs.h:293: error: syntax error before 'ufield_isize'
     defs.h:293: warning: type defaults to 'int' in declaration of 'ufield_isize'
     defs.h:293: warning: data definition has no type or storage class
defs.h:295: error: syntax error before 'uword_isize'
     defs.h:295: warning: type defaults to 'int' in declaration of 'uword_isize'
     defs.h:295: warning: data definition has no type or storage class
defs.h:320: error: syntax error before '}' token
     defs.h:320: warning: type defaults to 'int' in declaration of 'ETYMON_INDEX_INDEXING_STATE'
     defs.h:320: warning: data definition has no type or storage class
open.c: In function 'etymon_af_open':
open.c:73: error: storage size of 'st' isn't known
     open.c:197: warning: implicit declaration of function 'fstat64'
open.c: In function 'etymon_af_close':
     open.c:247: warning: implicit declaration of function 'lseek64'
open.c:247: error: 'off64_t' undeclared (first use in this function)
open.c:247: error: (Each undeclared identifier is reported only once
open.c:247: error: for each function it appears in.)
open.c:247: error: syntax error before numeric constant
gmake[2]: *** [open.o] Error 1
gmake[2]: Leaving directory `/local/src/amberfish-1.6.1/src'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory