Re: Patch to add python audit2why bindings.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jan 11, 2008 at 11:03:54AM -0500, Daniel J Walsh wrote:
> ...
> --- nsalibselinux/src/audit2why.c	1969-12-31 19:00:00.000000000 -0500
> +++ libselinux-2.0.46/src/audit2why.c	2008-01-11 10:51:10.000000000 -0500
> @@ -0,0 +1,460 @@
> +#include <unistd.h>
> +#include <stdlib.h>
> +#include <ctype.h>
> +#include <errno.h>
> +#include <getopt.h>
> +#include <limits.h>
> +#include <sepol/sepol.h>
> +#include <sepol/policydb/services.h>
> +#include <Python.h>
> +#include <selinux/selinux.h>
> +

I had a bit problem with headers order on Debian Etch.

zito@bobek:~/proj/iczlinux/selinux/libselinux/src$ cc -Werror -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/include/python2.5 -fPIC -DSHARED -c -o audit2why.lo audit2why.c
In file included from /usr/include/python2.5/Python.h:8,
                 from audit2why.c:9:
/usr/include/python2.5/pyconfig.h:932:1: error: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/unistd.h:26,
                 from audit2why.c:1:
/usr/include/features.h:150:1: error: this is the location of the previous definition


After moving `#include <Python.h>' on the first line, compilation succeded.
-- 
Zito

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux