[MacPorts] #70156: knot fails to build on 10.6: error: unknown type name 'sa_endpoints_t'

MacPorts noreply at macports.org
Mon Jun 3 21:43:56 UTC 2024


#70156: knot fails to build on 10.6: error: unknown type name 'sa_endpoints_t'
-----------------------------------------+----------------------
 Reporter:  barracuda156                 |      Owner:  catap
     Type:  defect                       |     Status:  assigned
 Priority:  Normal                       |  Milestone:
Component:  ports                        |    Version:  2.9.3
 Keywords:  tiger, leopard, snowleopard  |       Port:  knot
-----------------------------------------+----------------------
 Fails both with gcc-4.2 and gcc13:
 {{{
 libtool: compile:  /opt/local/bin/gcc-mp-13 -DHAVE_CONFIG_H -I. -include
 ../src/config.h -DCONFIG_DIR=\"/opt/local/etc/knot\"
 -DSTORAGE_DIR=\"/opt/local/var/lib/knot\"
 -DRUN_DIR=\"/opt/local/var/run/knot\" -DMODULE_DIR=\"\"
 -DMODULE_INSTDIR=\"/opt/local/lib/knot/modules-3.3\" -fvisibility=hidden
 -I/opt/local/include/p11-kit-1 -isystem/opt/local/include/LegacySupport
 -I/opt/local/include -pipe -Os -arch ppc -Wall -Wshadow -Werror=format-
 security -Werror=implicit -Werror=attributes -Wstrict-prototypes
 -fpredictive-commoning -MT contrib/libcontrib_la-net.lo -MD -MP -MF
 contrib/.deps/libcontrib_la-net.Tpo -c contrib/net.c  -fno-common -DPIC -o
 contrib/.libs/libcontrib_la-net.o
 contrib/net.c: In function 'tfo_connect':
 contrib/net.c:254:9: error: unknown type name 'sa_endpoints_t'
   254 |         sa_endpoints_t ep = {
       |         ^~~~~~~~~~~~~~
 contrib/net.c:255:17: error: field name not in record or union initializer
   255 |                 .sae_dstaddr = (const struct sockaddr *)addr,
       |                 ^
 contrib/net.c:255:17: note: (near initialization for 'ep')
 contrib/net.c:255:32: warning: initialization of 'int' from 'const struct
 sockaddr *' makes integer from pointer without a cast [-Wint-conversion]
   255 |                 .sae_dstaddr = (const struct sockaddr *)addr,
       |                                ^
 contrib/net.c:255:32: note: (near initialization for 'ep')
 contrib/net.c:256:17: error: field name not in record or union initializer
   256 |                 .sae_dstaddrlen = sockaddr_len(addr)
       |                 ^
 contrib/net.c:256:17: note: (near initialization for 'ep')
 contrib/net.c:256:35: warning: excess elements in scalar initializer
   256 |                 .sae_dstaddrlen = sockaddr_len(addr)
       |                                   ^~~~~~~~~~~~
 contrib/net.c:256:35: note: (near initialization for 'ep')
 contrib/net.c:258:22: error: 'CONNECT_DATA_IDEMPOTENT' undeclared (first
 use in this function)
   258 |         int flags =  CONNECT_DATA_IDEMPOTENT |
 CONNECT_RESUME_ON_READ_WRITE;
       |                      ^~~~~~~~~~~~~~~~~~~~~~~
 contrib/net.c:258:22: note: each undeclared identifier is reported only
 once for each function it appears in
 contrib/net.c:258:48: error: 'CONNECT_RESUME_ON_READ_WRITE' undeclared
 (first use in this function)
   258 |         int flags =  CONNECT_DATA_IDEMPOTENT |
 CONNECT_RESUME_ON_READ_WRITE;
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 contrib/net.c:260:19: error: implicit declaration of function 'connectx';
 did you mean 'connect'? [-Werror=implicit-function-declaration]
   260 |         int ret = connectx(sock, &ep, SAE_ASSOCID_ANY, flags,
 NULL, 0, NULL, NULL);
       |                   ^~~~~~~~
       |                   connect
 contrib/net.c:260:39: error: 'SAE_ASSOCID_ANY' undeclared (first use in
 this function)
   260 |         int ret = connectx(sock, &ep, SAE_ASSOCID_ANY, flags,
 NULL, 0, NULL, NULL);
       |                                       ^~~~~~~~~~~~~~~
 cc1: some warnings being treated as errors
 make[3]: *** [contrib/libcontrib_la-net.lo] Error 1
 make[3]: *** Waiting for unfinished jobs....
 }}}

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


More information about the macports-tickets mailing list