The python/xen/lowlevel/xl/xl.c does not work in my python 2.4 environment because the Py_ssize_t is only for python 2.5. I have to add something like "typedef int Py_ssize_t" to make it compilable. Is 2.4 python still supported or xl requires 2.5 python? My environment is RHEL5, maybe a bit out of date, I think :$ Thanks --jyh _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Sat, 2010-10-09 at 06:52 +0100, Jiang, Yunhong wrote:> The python/xen/lowlevel/xl/xl.c does not work in my python 2.4 > environment because the Py_ssize_t is only for python 2.5. I have to > add something like "typedef int Py_ssize_t" to make it compilable. Is > 2.4 python still supported or xl requires 2.5 python? My environment > is RHEL5, maybe a bit out of date, I think :$If we can support python 2.4 with minimal hassle then why not? However it would seem to make more sense to typedef that to the specific type which is expected in the two places where that is used, since they are pointers in both cases. I suspect it''s PyInt or something like that? Please submit a patch :) Gianni _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I'm quite poor on Python , so is it possible that you cook a patch for it? :-$ If needed, I can verify on my python 2.4 environment. Thanks --jyh>-----Original Message----- >From: Gianni Tedesco [mailto:gianni.tedesco@citrix.com] >Sent: Monday, October 11, 2010 8:03 PM >To: Jiang, Yunhong >Cc: Ian Jackson; xen-devel@lists.xensource.com >Subject: Re: [Xen-devel] python 2.4 and the xl > >On Sat, 2010-10-09 at 06:52 +0100, Jiang, Yunhong wrote: >> The python/xen/lowlevel/xl/xl.c does not work in my python 2.4 >> environment because the Py_ssize_t is only for python 2.5. I have to >> add something like "typedef int Py_ssize_t" to make it compilable. Is >> 2.4 python still supported or xl requires 2.5 python? My environment >> is RHEL5, maybe a bit out of date, I think :$ > >If we can support python 2.4 with minimal hassle then why not? > >However it would seem to make more sense to typedef that to the specific >type which is expected in the two places where that is used, since they >are pointers in both cases. I suspect it's PyInt or something like that? > >Please submit a patch :) > >Gianni_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel