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
Mon Feb 27 22:20:36 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):

 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
 }
 }}}

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


More information about the macports-tickets mailing list