Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Adélie Package Tree Adélie Package Tree
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 385
    • Issues 385
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Adélie Linux
  • Adélie Package TreeAdélie Package Tree
  • Issues
  • #463
Closed
Open
Created Jan 12, 2022 by Zach van Rijn@zOwner

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(       
                                           ^~~~~~~~~~~~~~~~~
Assignee
Assign to
Time tracking