Bug 9750 - aide 0.9 build failed
Bug#: 9750 Product:  Gentoo Linux Version: 1.4_rc1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: j.milus@chello.hu
Component: Applications
URL: 
Summary: aide 0.9 build failed
Keywords:  
Status Whiteboard: 
Opened: 2002-10-27 06:56 0000
Description:   Opened: 2002-10-27 06:56 0000
emerge aide failed. I think the reason is that the gcc 3.2 changes the search
order of the include directories if the "-I/usr/include" parameter used.
Because of this the compiler uses the include file /usr/include/db.h and not
the /var/tmp/portage/aide-0.9/work/aide-0.9/include/db.h

------- Comment #1 From johnathan spectre 2002-10-28 09:05:17 0000 -------
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)

------- Comment #2 From Daniel Ahlberg (RETIRED) 2002-10-29 07:56:13 0000 -------
Added a patch to fix compilation. Thanks for finding this!