[Aide] Building on Leopard
Darryl Taylor
taylordl at fastmail.us
Thu Aug 14 04:38:24 EEST 2008
Below are the options that darwin ports uses. So I tried compiling
myself with those and a minimum set of --with-mhash and --disable-
static. Both resulted in the errors below. I couldn't find the error
in the code, looked at the configure options and assumed the the 64
bit datatypes were for large file support. So I used the option --
disable-lfs (disable large file support). It compiled successfully.
Since I don't need to evaluate files larger than 2GB, I don't have any
problems disabling this. Just wanted to let anyone using a Leopard
know. To change this in macports, edit /opt/local/var/macports/sources/
rsync.macports.org/release/ports/security/aide/Portfile and add --
disable-lfs to configure.args. Hope this helps someone.
$ ./configure --with-mhash --with-zlib --with-locale --disable-static
$ make
make all-recursive
Making all in src
bison -y -d -p conf -o conf_yacc.c ../src/conf_yacc.y
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -g -O2 -
MT conf_yacc.o -MD -MP -MF ".deps/conf_yacc.Tpo" \
-c -o conf_yacc.o `test -f 'conf_yacc.c' || echo './'`conf_yacc.c; \
then mv -f ".deps/conf_yacc.Tpo" ".deps/conf_yacc.Po"; \
else rm -f ".deps/conf_yacc.Tpo"; exit 1; \
fi
In file included from ../include/report.h:26,
from ../include/aide.h:24,
from ../src/conf_yacc.y:21:
../include/db_config.h:371: error: syntax error before ‘off64_t’
../include/db_config.h:371: warning: no semicolon at end of struct or
union
../include/db_config.h:372: warning: data definition has no type or
storage class
../include/db_config.h:373: error: syntax error before ‘bcount’
../include/db_config.h:373: warning: data definition has no type or
storage class
../include/db_config.h:384: error: syntax error before ‘}’ token
../include/db_config.h:384: warning: data definition has no type or
storage class
In file included from ../src/conf_yacc.y:28:
../include/gen_list.h:69: error: syntax error before ‘*’ token
../include/gen_list.h:69: warning: data definition has no type or
storage class
In file included from ../src/conf_yacc.y:29:
../include/db.h:29: error: syntax error before ‘*’ token
../include/db.h:29: warning: data definition has no type or storage
class
../include/db.h:33: error: syntax error before ‘*’ token
../include/db.h:37: error: syntax error before ‘*’ token
make[2]: *** [conf_yacc.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------
Darryl Taylor
I can accept failure, but I can't accept not trying.
Michael Jordan
If this message is pgp signed, you can access my public key at
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x85FA3C82.
More information about the Aide
mailing list