Re: [MacPorts] #66904: cairo @1.17.6 fails to build with gcc-4.2: cairo-svg-surface.c: error: ‘for’ loop initial declaration used outside C99 mode

MacPorts noreply at macports.org
Tue Feb 28 12:02:09 UTC 2023


#66904: cairo @1.17.6 fails to build with gcc-4.2: cairo-svg-surface.c: error:
‘for’ loop initial declaration used outside C99 mode
---------------------------+---------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  tiger leopard
      Port:  cairo         |
---------------------------+---------------------------

Comment (by jlinnosa):

 Replying to [comment:9 barracuda156]:
 > Replying to [comment:8 jlinnosa]:
 > > I can only test on my trusty old G4. Maybe just use `platform darwin
 powerpc` for now?
 >
 > I would assume gcc-4.2 on Intel will also need the same. Therefore, IMO:
 >
 > {{{
 > if {[string match *gcc-4.* ${configure.compiler}]} {
 >
 > }
 > }}}

 That looks good. I'll revise my pull request.

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


More information about the macports-tickets mailing list