Re: [MacPorts] #62906: ming @0.4.8 cannot be built on PPC Leopard because static declaration of ‘swf4debug’ follows non-static declaration

MacPorts noreply at macports.org
Fri May 21 20:08:24 UTC 2021


#62906: ming @0.4.8 cannot be built on PPC Leopard because static declaration of
‘swf4debug’ follows non-static declaration
------------------------+------------------------
  Reporter:  ballapete  |      Owner:  ryandesign
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:  leopard
      Port:  ming       |
------------------------+------------------------

Comment (by Min4sT1r1th):

 It's required to remove the lines with


 {{{
 #if YYDEBUG
 extern int swf4debug;
 #endif
 }}}


 from

 {{{

 .../work/libming-ming-0_4_8/src/actioncompiler/swf4compiler.tab.h
 .../work/libming-ming-0_4_8/src/actioncompiler/swf5compiler.tab.h
 }}}


 Unfortunately these two files are generated by the Makefile in that
 subdirectory, therefore I found no other solution, but to add a new
 command to the rules which generate them, to remove these lines via gsed ;
 this can fail of course, if "#if YYDEBUG" is not starting on line 46 on
 your machine (for whatever reason); that's why I called it some ugly "fix"
 - I guess some sed guru can make a better variant.

 (and don't try to use the built-in sed, it won't work, at least on my
 machines I had to use the macpports gnu sed, which is apparently much
 newer)

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


More information about the macports-tickets mailing list