WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xs.c and PyMODINIT_FUNC in xen-unstable-src.tgz

To: rami rosen <ramirosen@xxxxxxxxxxx>
Subject: Re: [Xen-devel] xs.c and PyMODINIT_FUNC in xen-unstable-src.tgz
From: Mike Wray <mike.wray@xxxxxx>
Date: Wed, 15 Jun 2005 15:39:29 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 15 Jun 2005 14:48:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BAY2-F239FDBFB17D0956B2C2820BDF00@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BAY2-F239FDBFB17D0956B2C2820BDF00@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
rami rosen wrote:
Hello,

Really a little thing:

I had downaloaded the xen-unstable-src.tgz version from the Xen downloads web site yesterday.

I ran "make world".
I have python-2.2.2-26 on my RH9 machine.

I get an error in xs.c; looking a bit showed that it came from that
PyMODINIT_FUNC is not define; more specifically:

These lines in python/xen/lowlevel/xs/xs.c:
/* Needed for Python versions earlier than 2.3. */
//#ifndef PyMODINIT_FUNC
//#define PyMODINIT_FUNC DL_EXPORT(void)
//#endif


So I removed this remarks ; I also saw that in xc.c and xu.c these
#ifndef PyMODINIT_FUNC lines **DO** appear.

I assume that these lines were remarked mistakingly and that there is no real
need to upgrade the Python version to a version >= 2.3. Am I right ?


Python 2.3 was released in July 2003, so versions older than that
are pretty old. Looking at the release notes I see that bool(), True and False
came in back then - so I suspect some things may not work right with earlier 
versions.

Regards,
Mike

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>