[MacPorts] #74210: spice-gtk fails to build with C23: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
MacPorts
noreply at macports.org
Wed Jul 15 09:34:54 UTC 2026
#74210: spice-gtk fails to build with C23: error: 'for' loop initial declarations
are only allowed in C99 or C11 mode
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Resolution: | Keywords:
Port: spice-gtk |
---------------------------+--------------------
Comment (by barracuda156):
Replying to [comment:3 ryandesign]:
> You are using MacPorts gcc16 but [ticket:73925 no such port exists]?
Well, I do not have gcc15, I skipped it for unrelated reasons. I can try
gcc14 just to see if the issue only happens with gcc16.
The port I use is here: https://github.com/macos-powerpc/powerpc-
ports/blob/main/lang/gcc16/Portfile
But it does not carry any relevant hacks of my own. It uses Iain’s patch,
as usual, plus some improvements based on Iain’s work.
> And you are suggesting that declaring a `for` loop variable in the `for`
loop, which was not allowed in C89 and became allowed in C99, is now once
again not allowed in C23? That would break a ton of code, so I'm
suspicious of that claim.
I do not make any general claims here, I am merely reporting an error I
faced. This is not a port I tried to hack in any manner, I was going to
build it as is, from upstream MacPorts port.
--
Ticket URL: <https://trac.macports.org/ticket/74210#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list