Hi All I have just managed to compile AIDE 0.15.1 on Solaris 10. It wasn't easy, so I though I'd share:
System: Solaris 10 Update 8 (10/09) on SPARC, with gcc 3.4.6 First issue was non-obvious need disable static compilation. As per http://www.mail-archive.com/[email protected]/msg01178.html, it would be nice to either make a note in configure or either INSTALL/README for Solaris Next was a problem with the define for _FILE_OFFSET_BITS. It seems it is trying to redefine what already exists in /usr/include/sys/feature_tests.h. See below for detail. The quick & dirty way to get around this was to edit line 6438 in configure and delete "-D_FILE_OFFSET_BITS". See below for a diff I don't know enough C to work the ifdefs for Solaris to not include this define. It would be nice to have this incorporated into the build (or tell me where I went wrong!). I can provide hardware for testing Regards John % make make all-recursive make[1]: Entering directory `/var/tmp/packages/BUILD/aide-0.15.1' Making all in include make[2]: Entering directory `/var/tmp/packages/BUILD/aide-0.15.1/include' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/packages/BUILD/aide-0.15.1/include' Making all in src make[2]: Entering directory `/var/tmp/packages/BUILD/aide-0.15.1/src' make all-am make[3]: Entering directory `/var/tmp/packages/BUILD/aide-0.15.1/src' /opt/local/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../src -I../src -I/opt/local/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -g -O2 -MT aide.o -MD -MP -MF .deps/aide.Tpo -c -o aide.o aide.c In file included from /usr/include/sys/types.h:18, from ../include/types.h:40, from ../include/aide.h:25, from aide.c:22: /usr/include/sys/feature_tests.h:191:2: #error "invalid _FILE_OFFSET_BITS value specified" % diff -u configure.orig configure --- configure.orig 2010-09-27 23:33:51.188733002 -0400 +++ configure 2010-09-27 23:34:04.499183489 -0400 @@ -6435,7 +6435,7 @@ if test "x$ac_cv_func_lstat64" = x""yes; then : ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" if test "x$ac_cv_func_stat64" = x""yes; then : - AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS" + AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" AIDE_LSTAT_FUNC="lstat64" compoptionstring="${compoptionstring}WITH_LSTAT64\\n" AIDE_STAT_FUNC="stat64"
_______________________________________________ Aide mailing list [email protected] https://mailman.cs.tut.fi/mailman/listinfo/aide
