Invalid conversion from int to Py_ssize_t

When trying to compile root with PyROOT support on OS X 10.4, I received the following error:

g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DUSEPCH -include precompile.h -o pyroot/src/MemoryRegulator.o -c pyroot/src/MemoryRegulator.cxx
pyroot/src/MemoryRegulator.cxx:50: error: invalid conversion from ‘int ()(PyObject)’ to 'Py_ssize_t ()(PyObject)'
make: *** [pyroot/src/MemoryRegulator.o] Error 1

This is root version 5.12.00a.

I am using the following (relatively recent) version of Python:

Python 2.5b3 (r25b3:51041, Aug 7 2006, 15:36:58)
[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin

I then updated the PyROOT src to the HEAD version in cvs to see if this had been fixed, but I still receive the same error.

Any suggestions?

Thanks,
dan

Dan,

p2.5 beta3 breaks a couple of things, and I haven’t started migrating yet. I’ll get it done in the next day or so. Let me know if you need it sooner.

Cheers,
Wim

Wim,

Thanks for looking into this; I can wait a few days.

dan

Dan,

now in CVS (both the fixes for compilation that I sent earlier, as well as a modification to get rid of the run-time warnings).

Please post any further problems, if you have any. I’d like to get these changes tested as broadly as possible! Thanks.

Cheers,
Wim