Opened 6 months ago

Last modified 6 months ago

#70156 assigned defect

knot fails to build on 10.6: error: unknown type name 'sa_endpoints_t'

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger, leopard, snowleopard Cc: Schamschula (Marius Schamschula)
Port: knot

Description

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....

Attachments (1)

main.log (59.5 KB) - added by barracuda156 6 months ago.

Download all attachments as: .zip

Change History (3)

Changed 6 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 6 months ago by jmroot (Joshua Root)

This does of course set platforms {darwin >= 15}.

comment:2 in reply to:  1 Changed 6 months ago by barracuda156

Replying to jmroot:

This does of course set platforms {darwin >= 15}.

Yes, but we were talking with Kirill re specific issue and he mentioned installing this port as a possible solution. Since it is his port, I think it is okay.

Note: See TracTickets for help on using tickets.