Hi, I would like to compile auditd 1.4[1] on an unstable box. I follow README-install and at the end of configure everything looks right. However make fails instantly (relevant lines only): --cut -- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -fPIC -DPIC -D_GNU_SOURCE -g -O2 -MT libaudit.lo -MD -MP -MF .deps/libaudit.Tpo -c libaudit.c -fPIC -DPIC -o .libs/libaudit.o In file included from /usr/include/linux/sched.h:12, from /usr/include/linux/audit.h:27, from libaudit.h:35, from libaudit.c:42: /usr/include/linux/jiffies.h:84: error: syntax error before 'jiffies_64' /usr/include/linux/jiffies.h:88: error: syntax error before 'get_jiffies_64' /usr/include/linux/jiffies.h: In function 'timespec_to_jiffies': /usr/include/linux/jiffies.h:320: error: called object 'u64' is not a function /usr/include/linux/jiffies.h:320: error: called object 'u64' is not a function /usr/include/linux/jiffies.h:320: error: 'NSEC_PER_SEC' undeclared (first use in this function) [...] -- cut -- The syntax errors come from the u64 type is not defined in that scope. It's defined in [asm-i486|asm-x86_64]/types.h through asm/types.h ; but protected with an 'ifdef __KERNEL__' . So I have defined -D__KERNEL__ to the gcc switches, which results in a lot of redefinition errors. Removed it, and put the typedef into libaudit.h, still I get: /usr/include/linux/jiffies.h: In function 'timespec_to_jiffies': /usr/include/linux/jiffies.h:320: error: 'NSEC_PER_SEC' undeclared (first use in this function) Yes, NSEC_PER_SEC protected with 'ifdef __KERNEL__' as well. So I'm lost. It seems I need __KERNEL__ defined and not at the same time. Could anyone compile auditd on a Debian box? Any pointers are greatly appreciated!
Regards, Laszlo/GCS [1] http://people.redhat.com/sgrubb/audit/audit-1.1.4.tar.gz
signature.asc
Description: This is a digitally signed message part