[MacPorts] #65891: py39-libxml2 @2.10.2 does not build on PPC Tiger, Mac OS X 10.4.11, because gcc-apple-4.2 expected in libxml2-py.c something different
MacPorts
noreply at macports.org
Sat Sep 24 11:14:07 UTC 2022
#65891: py39-libxml2 @2.10.2 does not build on PPC Tiger, Mac OS X 10.4.11, because
gcc-apple-4.2 expected in libxml2-py.c something different
---------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: tiger ppc
Port: py39-libxml2 |
---------------------------+-----------------------
Comment (by ballapete):
In case of the first error, the pre-processed output has declared
{{{
PyObject * libxml_htmlDefaultSAXHandlerInit(PyObject *self, PyObject
*args);
}}}
and later we have:
{{{
XML_IGNORE_DEPRECATION_WARNINGS
PyObject *
libxml_htmlDefaultSAXHandlerInit(PyObject *self __attribute__
((__unused__)), PyObject *args __attribute__ ((__unused__))) {
if (libxml_deprecationWarning("htmlDefaultSAXHandlerInit") == -1)
return(((void *)0));
htmlDefaultSAXHandlerInit();
_Py_INCREF(((PyObject*)((&_Py_NoneStruct))));
return((&_Py_NoneStruct));
}
}}}
So it's probably the text string `XML_IGNORE_DEPRECATION_WARNINGS` in
front of `PyObject *` which is nowhere `#define`d. So a simple line like
{{{
#define XML_IGNORE_DEPRECATION_WARNINGS
}}}
added somewhere should suffice at first instance.
--
Ticket URL: <https://trac.macports.org/ticket/65891#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list