As reported here: http://forums.gentoo.org/viewtopic-t-547534-highlight-.html
audit installs /usr/include/libaudit.h and /usr/include/linux/audit.h. However line 35 of libaudit.h includes audit.h with:
Among other things, this breaks glibc2.5 emerge when attempting to use selinux. This is probably a patch that should be submitted upstream to RedHat, but I haven't checked to see if it was found and fixed up there yet.
Steps to Reproduce:
1.Use ~x86 and the 2006.1 selinux profile
2. emerge audit-1.2.9-r2 (probably present in other audit ebuilds as well)
3. attempt to emerge glibc with selinux USE flags
emerge fails when selinux code in glibc (don't have the log in front of me) attempts to include libaudit.h. gcc is unable to find the audit.h include file
emerge glibc properly ;-)
This was found on ~x86 but is probably present in other platforms such as ~amd64
Audit 1.5.1 seems to be ok. I just copied the 1.2.9-r2 ebuild and removed all of the stuff in src_unpack() except for the unpack and eautoreconf. I have 2.6.20-r2 headers, if that makes a difference.
1.5.1 in cvs.