aide fails for me as well.. here's the end of the build..
[previous stuff snipped]
gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I..
-I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static
-static -c do_md.c
do_md.c:46: warning: `READ_BLOCK_SIZE' redefined
do_md.c:45: warning: this is the location of the previous definition
gen_list.c: In function `add_file_to_tree':
gen_list.c:948: `NODE_ADD_CHILDREN' undeclared (first use in this function)
gen_list.c:948: (Each undeclared identifier is reported only once
gen_list.c:948: for each function it appears in.)
gen_list.c:957: `DB_OLD' undeclared (first use in this function)
gen_list.c:961: `DB_NEW' undeclared (first use in this function)
gen_list.c:958: warning: unreachable code at beginning of switch statement
gen_list.c: In function `check_rxtree':
gen_list.c:1018: `NODE_ADD_CHILDREN' undeclared (first use in this function)
gen_list.c: In function `populate_tree':
gen_list.c:1223: `DB_OLD' undeclared (first use in this function)
gen_list.c:1223: warning: assignment makes pointer from integer without a cast
gen_list.c:1231: `NODE_ADD_CHILDREN' undeclared (first use in this function)
gen_list.c:1243: warning: assignment makes pointer from integer without a cast
gen_list.c:1249: `DB_NEW' undeclared (first use in this function)
gen_list.c:1249: warning: assignment makes pointer from integer without a cast
gen_list.c:1269: warning: assignment makes pointer from integer without a cast
gen_list.c:1278: `DB_DISK' undeclared (first use in this function)
gen_list.c:1278: warning: assignment makes pointer from integer without a cast
gen_list.c:1298: warning: assignment makes pointer from integer without a cast
make[2]: *** [gen_list.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/aide-0.9/work/aide-0.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/aide-0.9/work/aide-0.9'
make: *** [all-recursive-am] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -137, Exitcode 2
!!! (no error message)