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

[Xen-devel] minimum Python version



Hello,

for quite a while (apparently as of Marek's series in February) I've
been seeing

xen/lowlevel/xc/xc.c: In function ‘pyxc_dom_extract_cpuid’:
xen/lowlevel/xc/xc.c:692:13: error: implicit declaration of function 
‘PyBytes_AS_STRING’ [-Werror=implicit-function-declaration]
xen/lowlevel/xc/xc.c:692:21: error: assignment makes pointer from integer 
without a cast [-Werror]
xen/lowlevel/xc/xc.c: In function ‘pyxc_create_cpuid_dict’:
xen/lowlevel/xc/xc.c:707:29: error: implicit declaration of function 
‘PyBytes_FromString’ [-Werror=implicit-function-declaration]
xen/lowlevel/xc/xc.c:707:29: error: passing argument 3 of 
‘PyDict_SetItemString’ makes pointer from integer without a cast [-Werror]
In file included from /usr/include/python2.4/Python.h:94:0,
                 from xen/lowlevel/xc/xc.c:7:
/usr/include/python2.4/dictobject.h:128:17: note: expected ‘struct PyObject *’ 
but argument is of type ‘int’
xen/lowlevel/xc/xc.c: In function ‘pyxc_readconsolering’:
xen/lowlevel/xc/xc.c:931:5: error: implicit declaration of function 
‘PyBytes_FromStringAndSize’ [-Werror=implicit-function-declaration]
xen/lowlevel/xc/xc.c:931:9: error: assignment makes pointer from integer 
without a cast [-Werror]
xen/lowlevel/xc/xc.c: In function ‘PyXc_dealloc’:
xen/lowlevel/xc/xc.c:2650:5: error: implicit declaration of function ‘Py_TYPE’ 
[-Werror=implicit-function-declaration]
xen/lowlevel/xc/xc.c:2650:18: error: invalid type argument of ‘->’ (have ‘int’)
cc1: all warnings being treated as errors

on an older system having Python 2.4 on it. The minimum version
configure checks for appears to be 2.3, matching up with what
./README says. Since the Python bindings aren't something one
absolutely needs (afaict), wouldn't it be reasonable to check for
a suitable version and if that fails simply disable their building
(which currently is unconditional)? What I'd like to avoid is ending
up with being unable to build the tools on that system - I know
it's rather old, but there's a reason I'd like to keep it (including its
old distro level).

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.