gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -fPIC -DHAVE_LIBAUDIT=1 -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/usr/local/var/lib/dbus/machine-id\" -DDBUS_SYSTEM_CONFIG_FILE=\"/usr/local/etc/dbus-1/system.conf\" -DDBUS_SESSION_CONFIG_FILE=\"/usr/local/etc/dbus-1/session.conf\" -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT dbus-sysdeps-util-unix.lo -MD -MP -MF .deps/dbus-sysdeps-util-unix.Tpo -c dbus-sysdeps-util-unix.c -fPIC -DPIC -o .libs/dbus-sysdeps-util-unix.o dbus-sysdeps-util-unix.c: In function ‘_dbus_change_to_daemon_user’: dbus-sysdeps-util-unix.c:343: error: ‘CAP_AUDIT_WRITE’ undeclared (first use in this function) dbus-sysdeps-util-unix.c:343: error: (Each undeclared identifier is reported only once dbus-sysdeps-util-unix.c:343: error: for each function it appears in.) dbus-sysdeps-util-unix.c:344: warning: initialization makes integer from pointer without a cast Intel Xeon CPU 2.66GHZ Suse gcc version 4.1.0 (SUSE Linux) 2.6.16.21-0.8-smp #1 SMP x86_64 GNU/Linux config.log attached
Attachment has gone missing. Which version of kernel-headers are you using? (If this still is an issue)
CAP_AUDIT_WRITE is indeed used without a guard other than HAVE_LIBAUDIT. libaudit support is auto-detected. I'd personally be inclined to make configure.in bail out if you enable libaudit support and your kernel headers are too old for CAP_AUDIT_WRITE. This can be worked around with "./configure --disable-libaudit" so I'm reducing the priority/severity.
CAP_AUDIT_WRITE (since Linux 2.6.11) I don't think we (should) support Linux systems that old any more. Workaround, if you are using outdated kernel headers: --disable-libaudit.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.