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 08:59:41 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:6 barracuda156]:
 > Replying to [comment:5 jlinnosa]:
 > > This worked for me:
 > > {{{
 > > platform darwin 9 powerpc {
 > >     # gcc-4 on OS X 10.5 defaults to gnu89 which is "ISO C90 plus GNU
 extensions". We need gnu99.
 > >     configure.cflags-append  -std=gnu99
 > > }
 > > }}}
 >
 > It should be for Tiger and Snow Leopard too.

 I can only test on my trusty old G4. Maybe just use `platform darwin
 powerpc` for now?

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


More information about the macports-tickets mailing list