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 01:23:45 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 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.

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


More information about the macports-tickets mailing list