ANNOUNCE: pypolkit-0.1 released

Alberto Milone albertomilone at alice.it
Fri Jun 20 04:24:01 PDT 2008


Hi, 

I'm trying to install pypolkit in Ubuntu Hardy 8.04, hoping to package
it for Debian and Ubuntu, but I get this error:

$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building '_polkit' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/PolicyKit
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/python2.5 -c pypolkit.c -o
build/temp.linux-i686-2.5/pypolkit.o
pypolkit.c:75: warning: function declaration isn’t a prototype
pypolkit.c:99: warning: function declaration isn’t a prototype
pypolkit.c: In function ‘pk_auth_list_cb2’:
pypolkit.c:210: error:
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_EXE’ undeclared (first use
in this function)
pypolkit.c:210: error: (Each undeclared identifier is reported only once
pypolkit.c:210: error: for each function it appears in.)
pypolkit.c:211: warning: implicit declaration of function
‘polkit_authorization_constraint_get_exe’
pypolkit.c:211: warning: passing argument 1 of ‘PyString_FromString’
makes pointer from integer without a cast
pypolkit.c:213: error:
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_SELINUX_CONTEXT’
undeclared (first use in this function)
pypolkit.c:214: warning: implicit declaration of function
‘polkit_authorization_constraint_get_selinux_context’
pypolkit.c:214: warning: passing argument 1 of ‘PyString_FromString’
makes pointer from integer without a cast
pypolkit.c:209: warning: enumeration value
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_LOCAL’ not handled in
switch
pypolkit.c:209: warning: enumeration value
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_ACTIVE’ not handled in
switch
pypolkit.c: In function ‘pk_auth_obtain’:
pypolkit.c:602: warning: implicit declaration of function
‘polkit_dbus_error_parse’
pypolkit.c: In function ‘init_polkit’:
pypolkit.c:680: error:
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_EXE’ undeclared (first use
in this function)
pypolkit.c:681: error:
‘POLKIT_AUTHORIZATION_CONSTRAINT_TYPE_REQUIRE_SELINUX_CONTEXT’
undeclared (first use in this function)
error: command 'gcc' failed with exit status 1


Regards,

Alberto Milone



More information about the hal mailing list