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.