Opened 3 years ago
Last modified 13 months ago
#64334 assigned defect
scrcpy @1.21: error: expected parameter declarator
Reported by: | HGJames | Owned by: | MarcelBochtler (Marcel Bochtler) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | snowleopard | Cc: | |
Port: | scrcpy |
Description
Xcode version: 3.2.6
Operating system: Mac OS X 10.6.8
Hardware Overview:-
Model Name: MacBook
Model Identifier: MacBook2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.16 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: MB21.00A5.B07
SMC Version (system): 1.17f0
Serial Number (system): W87353SNZ5X
Hardware UUID: 00000000-0000-1000-8000-0019E3484393
Terminal message while installing:-
localhost:~ username$ sudo port install scrcpy ---> Computing dependencies for scrcpy ---> Fetching archive for scrcpy Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers> ---> Attempting to fetch scrcpy-1.20_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/scrcpy ---> Attempting to fetch scrcpy-1.20_0.darwin_10.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/scrcpy ---> Attempting to fetch scrcpy-1.20_0.darwin_10.x86_64.tbz2 from http://pek.cn.packages.macports.org/macports/packages/scrcpy ---> Fetching distfiles for scrcpy ---> Verifying checksums for scrcpy ---> Extracting scrcpy ---> Configuring scrcpy ---> Building scrcpy Error: Failed to build scrcpy: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_scrcpy/scrcpy/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port scrcpy failed
Attachments (1)
Change History (5)
Changed 3 years ago by HGJames
comment:1 Changed 3 years ago by jmroot (Joshua Root)
Cc: | MarcelBochtler macports@… removed |
---|---|
Keywords: | snowleopard added; Scrcpy removed |
Owner: | set to MarcelBochtler |
Status: | new → assigned |
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | scrcpy @ 1.20 +universal: build failure → scrcpy @1.20: build failure |
---|
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.
comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | scrcpy @1.20: build failure → scrcpy @1.21: error: expected parameter declarator |
---|
Although the build log attached here shows the build failure with scrcpy 1.20, which is out of date, the automated build system saw the same problem with 1.21:
comment:4 Changed 13 months ago by aprovera
Looks like this has been solved in the latest Portfile update, which uses legacysupport to add static_assert and clock_gettime on older OS X versions.
Copy of log file after installing