system/libxml2: Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
Found on ppc64 and clearly due to the recent Python upgrade.
...
make[4]: Entering directory '/root/packages/system/libxml2/src/libxml2-2.9.10/python'
CC libxml.lo
CC libxml2-py.lo
CC types.lo
In file included from /usr/include/python3.10/Python.h:74,
from libxml_wrap.h:1,
from types.c:9:
types.c: In function ‘libxml_xmlXPathObjectPtrConvert’:
/usr/include/python3.10/object.h:249:38: error: expected ‘(’ before ‘_PyObject_TypeCheck’
#define PyObject_TypeCheck(ob, type) _PyObject_TypeCheck(_PyObject_CAST(ob), type)
^~~~~~~~~~~~~~~~~~~
/usr/include/python3.10/floatobject.h:23:27: note: in expansion of macro ‘PyObject_TypeCheck’
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
^~~~~~~~~~~~~~~~~~
types.c:605:8: note: in expansion of macro ‘PyFloat_Check’
if PyFloat_Check (obj) {
^~~~~~~~~~~~~
make[4]: *** [Makefile:633: types.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libxml.c: In function ‘xmlPythonFileCloseRaw’:
libxml.c:259:5: warning: ‘PyEval_CallMethod’ is deprecated [-Wdeprecated-declarations]
ret = PyEval_CallMethod(file, (char *) "close", (char *) "()");
^~~
In file included from /usr/include/python3.10/Python.h:130,
from libxml.c:14:
/usr/include/python3.10/ceval.h:28:43: note: declared here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
^~~~~~~~~~~~~~~~~
libxml.c: In function ‘xmlPythonFileReadRaw’:
libxml.c:289:5: warning: ‘PyEval_CallMethod’ is deprecated [-Wdeprecated-declarations]
ret = PyEval_CallMethod(file, (char *) "read", (char *) "(i)", len);
^~~
In file included from /usr/include/python3.10/Python.h:130,
from libxml.c:14:
/usr/include/python3.10/ceval.h:28:43: note: declared here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
^~~~~~~~~~~~~~~~~