All of lore.kernel.org
 help / color / mirror / Atom feed
* xs.c  and PyMODINIT_FUNC in xen-unstable-src.tgz
@ 2005-06-13  8:09 rami rosen
  2005-06-15 14:39 ` Mike Wray
  0 siblings, 1 reply; 2+ messages in thread
From: rami rosen @ 2005-06-13  8:09 UTC (permalink / raw)
  To: xen-devel

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 ?


Regards,
Rami Rosen

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: xs.c  and PyMODINIT_FUNC in xen-unstable-src.tgz
  2005-06-13  8:09 xs.c and PyMODINIT_FUNC in xen-unstable-src.tgz rami rosen
@ 2005-06-15 14:39 ` Mike Wray
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Wray @ 2005-06-15 14:39 UTC (permalink / raw)
  To: rami rosen; +Cc: xen-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-15 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13  8:09 xs.c and PyMODINIT_FUNC in xen-unstable-src.tgz rami rosen
2005-06-15 14:39 ` Mike Wray

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.