[MacPorts] #64334: scrcpy @1.20: build failure (was: scrcpy @ 1.20 +universal: build failure)
MacPorts
noreply at macports.org
Mon Jan 3 10:13:21 UTC 2022
#64334: scrcpy @1.20: build failure
----------------------+----------------------------
Reporter: HGJames | Owner: MarcelBochtler
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: snowleopard
Port: scrcpy |
----------------------+----------------------------
Comment (by ryandesign):
The log shows an x86_64 build, not a universal build.
Relevant messages in the log appear to be:
{{{
../Genymobile-scrcpy-bdf5fc3/app/src/cli.c:913:5: warning: implicit
declaration of function 'static_assert' is invalid in C99 [-Wimplicit-
function-declaration]
static_assert(SC_WINDOW_POSITION_UNDEFINED == -0x8000, "unexpected
value");
^
}}}
{{{
../Genymobile-scrcpy-bdf5fc3/app/src/clock.h:11:15: error: expected
parameter declarator
static_assert(!(SC_CLOCK_RANGE & 1), "SC_CLOCK_RANGE must be even");
^
}}}
My understanding is that `static_assert` is supposed to be available in
C11, which this port is using, so these messages are confusing to me.
Perhaps some header needs to be included for `static_assert` to be
available.
--
Ticket URL: <https://trac.macports.org/ticket/64334#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list