[MacPorts] #69624: mbedtls3 @3.6.0 uses wrong number of args to memcpy: error: macro "memcpy" requires 3 arguments, but only 2 given

MacPorts noreply at macports.org
Sat Mar 30 06:16:21 UTC 2024


#69624: mbedtls3 @3.6.0 uses wrong number of args to memcpy: error: macro "memcpy"
requires 3 arguments, but only 2 given
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.1
 Keywords:                |       Port:  mbedtls3
--------------------------+----------------------
 {{{
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:196:79:
 error: macro "memcpy" requires 3 arguments, but only 2 given
   196 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv));
       |
 ^
 In file included from /usr/include/string.h:148,
                  from /opt/local/include/LegacySupport/string.h:25,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/alignment.h:15,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/common.h:15,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:8:
 /usr/include/secure/_string.h:50: note: macro "memcpy" defined here
    50 | #define memcpy(dest, src, len)                                  \
       |
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:196:9:
 warning: statement with no effect [-Wunused-value]
   196 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv));
       |         ^~~~~~
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:199:79:
 error: macro "memcpy" requires 3 arguments, but only 2 given
   199 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv));
       |
 ^
 /usr/include/secure/_string.h:50: note: macro "memcpy" defined here
    50 | #define memcpy(dest, src, len)                                  \
       |
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:199:9:
 warning: statement with no effect [-Wunused-value]
   199 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv));
       |         ^~~~~~
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:
 In function 'ssl_tls13_create_verify_structure':
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:196:79:
 error: macro "memcpy" requires 3 arguments, but only 2 given
   196 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv));
       |
 ^
 In file included from /usr/include/string.h:148,
                  from /opt/local/include/LegacySupport/string.h:25,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/alignment.h:15,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/common.h:15,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:8:
 /usr/include/secure/_string.h:50: note: macro "memcpy" defined here
    50 | #define memcpy(dest, src, len)                                  \
       |
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:196:9:
 warning: statement with no effect [-Wunused-value]
   196 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv));
       |         ^~~~~~
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:199:79:
 error: macro "memcpy" requires 3 arguments, but only 2 given
   199 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv));
       |
 ^
 /usr/include/secure/_string.h:50: note: macro "memcpy" defined here
    50 | #define memcpy(dest, src, len)                                  \
       |
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_mbedtls3/mbedtls3/work/mbedtls-3.6.0/library/ssl_tls13_generic.c:199:9:
 warning: statement with no effect [-Wunused-value]
   199 |         memcpy(verify_buffer + idx,
 MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv));
       |         ^~~~~~
 make[2]: *** [library/CMakeFiles/mbedtls_static.dir/ssl_tls13_generic.c.o]
 Error 1
 make[2]: *** Waiting for unfinished jobs....
 }}}

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


More information about the macports-tickets mailing list