[MacPorts] #70064: grisbi build fails: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
MacPorts
noreply at macports.org
Fri May 24 05:57:09 UTC 2024
#70064: grisbi build fails: error: 'for' loop initial declarations are only allowed
in C99 or C11 mode
---------------------------+------------------------
Reporter: barracuda156 | Owner: ctreleaven
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: grisbi |
---------------------------+------------------------
Comment (by ryandesign):
grisbi_osx.m is an Objective-C file (`.m` extension), not a C file (`.c`
extension). To add flags for Objective-C files, the `OBJCFLAGS`
environment variable is used, not the `CFLAGS` environment variable. The
MacPorts option for that is `configure.objcflags` rather than
`configure.cflags`.
But if this is the only (or one of only a few) C89 incompatibilities you
could instead fix them and [https://github.com/grisbi/grisbi/pulls submit
them to the developers] or at least [https://www.grisbi.org/bugsreports/
file a bug report about them]. Same for the type redefinition.
--
Ticket URL: <https://trac.macports.org/ticket/70064#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list