Opened 10 years ago

Closed 10 years ago

#43745 closed defect (fixed)

cctools @855: error: ‘for’ loop initial declaration used outside C99 mode

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: leopard Cc:
Port: cctools

Description

Building cctools @855 is failing on Leopard (with gcc-4.2) with:

dyld_bind_info.c: In function ‘get_dyld_bind_info’:
dyld_bind_info.c:356: error: ‘for’ loop initial declaration used outside C99 mode

Attachments (2)

cctools-main.log (232.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
cctools.diff (295 bytes) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
proposed patch

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: cctools-main.log added

comment:1 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Does it work if you add -std=gnu99 to configure.cflags?

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Yup, that's all it needed. Thanks.

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: cctools.diff added

proposed patch

comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.