[MacPorts] #74300: libavif @1.4.2: expected parameter declarator
MacPorts
noreply at macports.org
Wed Aug 5 22:57:21 UTC 2026
#74300: libavif @1.4.2: expected parameter declarator
---------------------------+----------------------
Reporter: Dave-Allured | Owner: mascguy
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: libavif |
---------------------------+----------------------
Comment (by ryandesign):
Replying to [comment:4 Dave-Allured]:
> I will insert `compiler.c_standard 2011`, see if that helps.
That's necessary but not sufficient. That only tells MacPorts to select a
compiler that supports C11, which it does, so there is no change to the
compiler selection. But it does not tell the compiler to use that mode.
MacPorts expects the build system to have taken care of that.
Since it didn't, you need to arrange for the flag `-std=gnu11` (or,
possibly `-std=c11` is sufficient if it doesn't use GNU extensions) to be
sent to the C++ compiler. In the basic case, that's done with a line like
`configure.cxxflags-append -std=gnu11`. If this software builds with
CMake, CMake may have a configuration switch that they would like you to
use instead to switch to this mode; I don't know.
This is an upstream bug. Upstream should modify their build process to add
the necessary `-std` flag during compilation and to fail during
configuration if the compiler does not support at least C11.
--
Ticket URL: <https://trac.macports.org/ticket/74300#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list