selinux problem building dbus
Stephen Smalley
sds at tycho.nsa.gov
Tue Mar 27 17:55:45 UTC 2007
On Tue, 2007-03-27 at 12:49 -0500, Justin Conover wrote:
> On rawhide I was building garnome and dbus was failing with the
> following:
>
> make[5]: Entering directory `/home/justin/downloads
> /garnome-2.18.0/freedesktop/dbus/work/main.d/dbus- 1.0.2/bus'
> if cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DDAEMON_NAME=\"dbus-daemon\"
> -DDBUS_COMPILATION -DDBUS_SYSTEM_CONFIG_FILE=
> \""/home/justin/garnome/etc/dbus-1/system.conf"\"
> -DDBUS_SESSION_CONFIG_FILE=
> \""/home/justin/garnome/etc/dbus-1/session.conf"\"
> -I/home/justin/garnome/include -I/home/justin/garnome/include
> -L/home/justin/garnome/lib -O2 -pipe -Wall -Wchar-subscripts
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wcast-align -Wsign-compare
> -Wdeclaration-after-statement -fno-common -fPIC -MT selinux.o -MD -MP
> -MF ".deps/selinux.Tpo" -c -o selinux.o selinux.c; \
> then mv -f ".deps/selinux.Tpo" ".deps/selinux.Po"; else rm -f
> ".deps/selinux.Tpo"; exit 1; fi
> In file included from selinux.c:37:
> /usr/include/selinux/avc.h:307: error: expected ')' before 'event'
> /usr/include/selinux/avc.h:311: error: expected ';', ',' or ')' before
> 'uint32_t'
> selinux.c: In function 'bus_selinux_full_init':
> selinux.c:309: warning: implicit declaration of function
> 'avc_add_callback'
> selinux.c:309: warning: nested extern declaration of
> 'avc_add_callback'
> make[5]: *** [selinux.o] Error 1
> make[5]: Leaving directory `/home/justin/downloads/garnome-
> 2.18.0/freedesktop/dbus/work/main.d/dbus-1.0.2/bus'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/home/justin/downloads/garnome-2.18.0/freedesktop/dbus/work/main.d/dbus-1.0.2'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/home/justin/downloads/garnome-2.18.0/freedesktop/dbus/work/main.d/dbus-1.0.2'
> make[2]: *** [build-work/main.d/dbus-1.0.2/Makefile] Error 2
> make[2]: Leaving directory `/home/justin/downloads/garnome-
> 2.18.0/freedesktop/dbus'
> make[1]: *** [../../freedesktop/dbus/cookies/main.d/install] Error 2
> make[1]: Leaving directory
> `/home/justin/downloads/garnome-2.18.0/platform/gnome-vfs'
> make: *** [../../platform/gnome-vfs/cookies/main.d/install] Error 2
>
> Joseph helped me track it down to this:
>
> # diff -u /usr/include/selinux/avc.h /usr/include/selinux/avc.h.orig
> --- /usr/include/selinux/avc.h 2007-03-27 12:42:21.000000000 -0500
> +++ /usr/include/selinux/avc.h.orig 2007-03-27 12:41: 21.000000000
> -0500
> @@ -304,11 +304,11 @@
> * -%1 if insufficient memory exists to add the callback.
> */
> int avc_add_callback(int (*callback)
> - (u_int32_t event, security_id_t ssid,
> + (uint32_t event, security_id_t ssid,
> security_id_t tsid, security_class_t
> tclass,
> access_vector_t perms,
> access_vector_t * out_retained),
> - u_int32_t events, security_id_t ssid,
> + uint32_t events, security_id_t ssid,
> security_id_t tsid, security_class_t
> tclass,
> access_vector_t perms);
>
> Was this a change on purpose or should I open a bug against
> libselinux-devel
Should already be fixed in the latest one (adds a #include <stdint.h> to
avc.h). The types were all converted over to the stdint forms.
--
Stephen Smalley
National Security Agency
More information about the fedora-test-list
mailing list