[MacPorts] #69469: rizin fails to build on 10.12 and below: error: too many arguments provided to function-like macro invocation; error: use of undeclared identifier 'POSIX_SPAWN_CLOEXEC_DEFAULT'

MacPorts noreply at macports.org
Sun Mar 10 17:13:03 UTC 2024


#69469: rizin fails to build on 10.12 and below: error: too many arguments provided
to function-like macro invocation; error: use of undeclared identifier
'POSIX_SPAWN_CLOEXEC_DEFAULT'
-------------------------------------------------+-------------------------
 Reporter:  barracuda156                         |      Owner:  l2dy
     Type:  defect                               |     Status:  assigned
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.9.1
 Keywords:  sierra, elcapitan, yosemite,         |       Port:  rizin
  mavericks, mountainlion, lion, snowleopard,    |
  leopard, tiger                                 |
-------------------------------------------------+-------------------------
 Upstream issue: https://github.com/rizinorg/rizin/issues/4352

 There are two errors. On 10.12 and below:
 {{{
 FAILED: librz/analysis/librz_analysis.0.7.dylib.p/p_analysis_xtensa.c.o
 /usr/bin/clang -Ilibrz/analysis/librz_analysis.0.7.dylib.p -I.
 -I../rizin-v0.7.2 -Ilibrz -I../rizin-v0.7.2/librz -Ilibrz/include
 -I../rizin-v0.7.2/librz/include -I../rizin-v0.7.2/librz/analysis/arch/gb
 -Ilibrz/util/sdb/src -I../rizin-v0.7.2/librz/util/sdb/src
 -I../rizin-v0.7.2/librz/asm/arch/include -I../rizin-v0.7.2/librz/asm/arch
 -I../rizin-v0.7.2/librz/asm/arch/h8300
 -I../rizin-v0.7.2/librz/asm/arch/hexagon
 -I../rizin-v0.7.2/librz/asm/arch/msp430
 -I../rizin-v0.7.2/librz/asm/arch/rsp
 -I../rizin-v0.7.2/librz/asm/arch/mcore
 -I../rizin-v0.7.2/librz/asm/arch/v850
 -I../rizin-v0.7.2/librz/asm/arch/propeller
 -I../rizin-v0.7.2/librz/asm/arch/ebc -I../rizin-v0.7.2/librz/asm/arch/cr16
 -I../rizin-v0.7.2/librz/asm/arch/8051
 -I../rizin-v0.7.2/librz/asm/arch/v810
 -I../rizin-v0.7.2/librz/asm/arch/or1k
 -I../rizin-v0.7.2/librz/asm/arch/tricore
 -I../rizin-v0.7.2/librz/bin/format -I../rizin-v0.7.2/librz/type/parser
 -I/opt/local/include/capstone -I/opt/local/libexec/openssl3/include
 -fdiagnostics-color=always -Wall -Winvalid-pch -O2 -g -DRZ_PLUGIN_INCORE=1
 -DUSE_SYS_CAPSTONE --std=gnu99 -Werror=sizeof-pointer-memaccess
 -fvisibility=hidden -pipe -Os -arch x86_64 -MD -MQ
 librz/analysis/librz_analysis.0.7.dylib.p/p_analysis_xtensa.c.o -MF
 librz/analysis/librz_analysis.0.7.dylib.p/p_analysis_xtensa.c.o.d -o
 librz/analysis/librz_analysis.0.7.dylib.p/p_analysis_xtensa.c.o -c
 ../rizin-v0.7.2/librz/analysis/p/analysis_xtensa.c
 ../rizin-v0.7.2/librz/analysis/p/analysis_xtensa.c:24:45: error: too many
 arguments provided to function-like macro invocation
         memcpy(ctx->length_table, (int[16]){ 3, 3, 3, 3, 3, 3, 3, 3, 2, 2,
 2, 2, 2, 2, 8, 8 }, sizeof(ctx->length_table));
                                                    ^
 /usr/include/secure/_string.h:64:9: note: macro 'memcpy' defined here
 #define memcpy(dest, src, len)                                  \
         ^
 ../rizin-v0.7.2/librz/analysis/p/analysis_xtensa.c:24:2: note: parentheses
 are required around macro argument containing braced initializer list
         memcpy(ctx->length_table, (int[16]){ 3, 3, 3, 3, 3, 3, 3, 3, 2, 2,
 2, 2, 2, 2, 8, 8 }, sizeof(ctx->length_table));
         ^
                                   (
 )
 1 error generated.
 }}}
 https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/263721/steps
 /install-port/logs/stdio

 On 10.6 and below:
 {{{
 FAILED: librz/io/librz_io.0.7.dylib.p/p_io_debug.c.o
 /opt/local/bin/clang-mp-11 -Ilibrz/io/librz_io.0.7.dylib.p -I.
 -I../rizin-v0.7.2 -Ilibrz -I../rizin-v0.7.2/librz -Ilibrz/include
 -I../rizin-v0.7.2/librz/include
 -I../rizin-v0.7.2/subprojects/rzgdb/include
 -I../rizin-v0.7.2/subprojects/rzgdb/include/gdbclient
 -I../rizin-v0.7.2/subprojects/rzgdb/include/gdbserver
 -Isubprojects/rzwinkd -I../rizin-v0.7.2/subprojects/rzwinkd
 -Isubprojects/rzar -I../rizin-v0.7.2/subprojects/rzar -Ilibrz/util/sdb/src
 -I../rizin-v0.7.2/librz/util/sdb/src
 -I../rizin-v0.7.2/subprojects/rzqnx/include
 -I/opt/local/libexec/openssl3/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -O2 -g -DRZ_PLUGIN_INCORE=1 -DUSE_SYS_CAPSTONE --std=gnu99
 -Werror=sizeof-pointer-memaccess -fvisibility=hidden -pipe -Os -arch
 x86_64 -MD -MQ librz/io/librz_io.0.7.dylib.p/p_io_debug.c.o -MF
 librz/io/librz_io.0.7.dylib.p/p_io_debug.c.o.d -o
 librz/io/librz_io.0.7.dylib.p/p_io_debug.c.o -c
 ../rizin-v0.7.2/librz/io/p/io_debug.c
 ../rizin-v0.7.2/librz/io/p/io_debug.c:302:2: warning: implicit declaration
 of function 'posix_spawn_file_actions_addinherit_np' is invalid in C99
 [-Wimplicit-function-declaration]
         posix_spawn_file_actions_addinherit_np(&fileActions,
 STDIN_FILENO);
         ^
 ../rizin-v0.7.2/librz/io/p/io_debug.c:306:14: error: use of undeclared
 identifier 'POSIX_SPAWN_CLOEXEC_DEFAULT'
         ps_flags |= POSIX_SPAWN_CLOEXEC_DEFAULT;
                     ^
 1 warning and 1 error generated.
 }}}
 https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/192137/steps
 /install-port/logs/stdio

-- 
Ticket URL: <https://trac.macports.org/ticket/69469>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list