Opened 2 years ago

Closed 19 months ago

Last modified 19 months ago

#66256 closed defect (fixed)

py-pygit2 does not build with gcc-4.2: error: ‘for’ loop initial declaration used outside C99 mode

Reported by: barracuda156 Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: leopard, snowleopard Cc:
Port: py-pygit2

Description

src/odb.c: In function ‘Odb_backends__get__’:
src/odb.c:322: error: ‘for’ loop initial declaration used outside C99 mode

Attachments (1)

pygit2_log.txt (35.6 KB) - added by barracuda156 21 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by barracuda156

  1. S. Also perhaps the port should be updated to current version.

comment:2 Changed 21 months ago by barracuda156

Problem still there.

Changed 21 months ago by barracuda156

Attachment: pygit2_log.txt added

comment:3 Changed 19 months ago by barracuda156

Should I make a PR to blacklist old GCC? It has been 5 months, and it is still as broken as it was :)

comment:4 Changed 19 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 2ae59ce958fe13672e96ec853b4a8b1d9eac43ed/macports-ports (master):

py-pygit2: blacklist old Xcode gcc, it fails to build it

Fixes: #66256

comment:5 Changed 19 months ago by jmroot (Joshua Root)

It would work with very old gccs as long -std=c99 is used.

Note: See TracTickets for help on using tickets.