[MacPorts] #62134: wget @1.21.1 does not build on PPC Leopard, Mac OS X 10.5.8, because of "error: 'for' loop initial declaration used outside C99 mode'"

MacPorts noreply at macports.org
Mon Jan 25 03:06:41 UTC 2021


#62134: wget @1.21.1 does not build on PPC Leopard, Mac OS X 10.5.8, because of
"error: 'for' loop initial declaration used outside C99 mode'"
------------------------+------------------------
  Reporter:  ballapete  |      Owner:  ryandesign
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:  fixed      |   Keywords:  leopard
      Port:  wget       |
------------------------+------------------------

Comment (by ryandesign):

 Replying to [ticket:62134 ballapete]:
 > {{{
 > tempname.c: In function 'random_bits':
 > tempname.c:92: warning: integer constant is too large for 'long' type
 > tempname.c:92: warning: this decimal constant is unsigned only in ISO
 C90
 > tempname.c: In function 'try_tempname_len':
 > tempname.c:290: error: 'for' loop initial declaration used outside C99
 mode
 > }}}

 This was reported to the developers here:

 https://lists.gnu.org/archive/html/bug-wget/2021-01/msg00004.html

 A similar patch was provided to the developers here:

 https://github.com/noloader/Build-Scripts/blob/master/patch/wget.patch

 I don't know if they wish to apply it. If not, requiring C99 mode per
 Ken's commit above is fine.

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


More information about the macports-tickets mailing list