Re: [MacPorts] #65984: Build fails on G4/PPC 10.5.8: libxml2-py.c:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’

MacPorts noreply at macports.org
Thu Oct 13 00:45:53 UTC 2022


#65984: Build fails on G4/PPC 10.5.8: libxml2-py.c:196: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘PyObject’
----------------------------+--------------------
  Reporter:  xanda-escuyer  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.7.2
Resolution:                 |   Keywords:
      Port:  py310-libxml2  |
----------------------------+--------------------

Comment (by kencu):

 this worked:
 {{{
 $ cat patch-py-libxml-deprecation-typo.diff
 --- python/libxml_wrap.h.orig   2022-10-12 17:40:56.000000000 -0700
 +++ python/libxml_wrap.h        2022-10-12 17:41:04.000000000 -0700
 @@ -71,7 +71,7 @@
  #define XML_POP_WARNINGS \
      _Pragma("GCC diagnostic pop")
  #else
 -#define XML_IGNORE_PEDANTIC_WARNINGS
 +#define XML_IGNORE_DEPRECATION_WARNINGS
  #define XML_POP_WARNINGS
  #endif

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65984#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list