+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libmicrodns-0.2.0/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libmicrodns-0.2.0/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for libmicrodns-0.2.0 ninja: Entering directory `output' [1/14] Compiling C object compat/libcompat.a.p/inet.c.o [2/14] Compiling C object compat/libcompat.a.p/poll.c.o [3/14] Compiling C object compat/libcompat.a.p/compat.c.o FAILED: compat/libcompat.a.p/compat.c.o cc -Icompat/libcompat.a.p -Icompat -I../compat -I. -I.. -Iinclude -I../include -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wsign-compare -Wstrict-aliasing -Wstrict-overflow -Wformat=2 -Wno-unused-parameter -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wlogical-op -pipe -O2 -fPIC -DHAVE_CONFIG_H -MD -MQ compat/libcompat.a.p/compat.c.o -MF compat/libcompat.a.p/compat.c.o.d -o compat/libcompat.a.p/compat.c.o -c ../compat/compat.c ../compat/compat.c:31:8: error: variable 'os_deadline' has initializer but incomplete type 31 | struct timeval os_deadline = { | ^~~~~~~ ../compat/compat.c:32:10: error: 'struct timeval' has no member named 'tv_sec' 32 | .tv_sec = 0, | ^~~~~~ ../compat/compat.c:32:19: warning: excess elements in struct initializer 32 | .tv_sec = 0, | ^ ../compat/compat.c:32:19: note: (near initialization for 'os_deadline') ../compat/compat.c:33:10: error: 'struct timeval' has no member named 'tv_usec' 33 | .tv_usec = 100000, | ^~~~~~~ ../compat/compat.c:33:20: warning: excess elements in struct initializer 33 | .tv_usec = 100000, | ^~~~~~ ../compat/compat.c:33:20: note: (near initialization for 'os_deadline') ../compat/compat.c: In function 'os_strerror': ../compat/compat.c:87:29: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration] 87 | if (strerror_r(errno, buf, buflen) != 0) | ^~~~~~~~~~ | strerror ../compat/compat.c:93:29: warning: implicit declaration of function 'gai_strerror'; did you mean 'os_strerror'? [-Wimplicit-function-declaration] 93 | s = gai_strerror(errno); | ^~~~~~~~~~~~ | os_strerror ../compat/compat.c:93:27: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 93 | s = gai_strerror(errno); | ^ ../compat/compat.c: In function 'os_mcast_join': ../compat/compat.c:131:40: error: storage size of 'mreq' isn't known 131 | struct ip_mreq mreq; | ^~~~ ../compat/compat.c:131:40: warning: unused variable 'mreq' [-Wunused-variable] ../compat/compat.c: At top level: ../compat/compat.c:31:16: error: storage size of 'os_deadline' isn't known 31 | struct timeval os_deadline = { | ^~~~~~~~~~~ [4/14] Compiling C object src/libmicrodns.so.1.0.0.p/mdns.c.o FAILED: src/libmicrodns.so.1.0.0.p/mdns.c.o cc -Isrc/libmicrodns.so.1.0.0.p -Isrc -I../src -I. -I.. -Iinclude -I../include -Icompat -I../compat -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wsign-compare -Wstrict-aliasing -Wstrict-overflow -Wformat=2 -Wno-unused-parameter -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wlogical-op -pipe -O2 -fPIC -DHAVE_CONFIG_H -MD -MQ src/libmicrodns.so.1.0.0.p/mdns.c.o -MF src/libmicrodns.so.1.0.0.p/mdns.c.o.d -o src/libmicrodns.so.1.0.0.p/mdns.c.o -c ../src/mdns.c ../src/mdns.c: In function 'mdns_is_interface_valuable': ../src/mdns.c:91:31: error: 'IFF_LOOPBACK' undeclared (first use in this function); did you mean 'IN_LOOPBACKNET'? 91 | (ifa->ifa_flags & IFF_LOOPBACK) == 0 && | ^~~~~~~~~~~~ | IN_LOOPBACKNET ../src/mdns.c:91:31: note: each undeclared identifier is reported only once for each function it appears in ../src/mdns.c:92:31: error: 'IFF_UP' undeclared (first use in this function) 92 | (ifa->ifa_flags & IFF_UP) != 0 && | ^~~~~~ ../src/mdns.c:93:31: error: 'IFF_RUNNING' undeclared (first use in this function) 93 | (ifa->ifa_flags & IFF_RUNNING) != 0 && | ^~~~~~~~~~~ ../src/mdns.c: At top level: ../src/mdns.c:101:45: warning: 'struct addrinfo' declared inside parameter list will not be visible outside of this definition or declaration 101 | const struct addrinfo* addrs) | ^~~~~~~~ ../src/mdns.c: In function 'count_interfaces': ../src/mdns.c:105:73: error: invalid use of undefined type 'const struct addrinfo' 105 | for ( const struct addrinfo* addr = addrs; addr != NULL; addr = addr->ai_next ) { | ^~ ../src/mdns.c:107:60: error: invalid use of undefined type 'const struct addrinfo' 107 | if (!mdns_is_interface_valuable(c, addr->ai_family)) { | ^~ ../src/mdns.c: At top level: ../src/mdns.c:119:35: warning: 'struct addrinfo' declared inside parameter list will not be visible outside of this definition or declaration 119 | const struct addrinfo* addrs) | ^~~~~~~~ ../src/mdns.c: In function 'mdns_list_interfaces': ../src/mdns.c:132:39: warning: passing argument 2 of 'count_interfaces' from incompatible pointer type [-Wincompatible-pointer-types] 132 | nb_if = count_interfaces(ifs, addrs); | ^~~~~ | | | const struct addrinfo * ../src/mdns.c:101:55: note: expected 'const struct addrinfo *' but argument is of type 'const struct addrinfo *' 101 | const struct addrinfo* addrs) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ../src/mdns.c:159:77: error: invalid use of undefined type 'const struct addrinfo' 159 | for ( const struct addrinfo* addr = addrs; addr != NULL; addr = addr->ai_next ) { | ^~ ../src/mdns.c:161:64: error: invalid use of undefined type 'const struct addrinfo' 161 | if (!mdns_is_interface_valuable(c, addr->ai_family)) | ^~ ../src/mdns.c:170:49: error: invalid use of undefined type 'const struct addrinfo' 170 | memcpy(mcast_addrs, addr->ai_addr, sa_len(addr->ai_addr)); | ^~ ../src/mdns.c:170:71: error: invalid use of undefined type 'const struct addrinfo' 170 | memcpy(mcast_addrs, addr->ai_addr, sa_len(addr->ai_addr)); | ^~ ../src/mdns.c: In function 'mdns_resolve': ../src/mdns.c:386:25: error: storage size of 'hints' isn't known 386 | struct addrinfo hints, *res = NULL; | ^~~~~ ../src/mdns.c:396:26: error: 'AI_NUMERICHOST' undeclared (first use in this function) 396 | hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; | ^~~~~~~~~~~~~~ ../src/mdns.c:396:43: error: 'AI_NUMERICSERV' undeclared (first use in this function) 396 | hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; | ^~~~~~~~~~~~~~ ../src/mdns.c:401:21: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration] 401 | errno = getaddrinfo(MDNS_ADDR_IPV4, buf, &hints, &res); | ^~~~~~~~~~~ ../src/mdns.c:409:21: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration] 409 | freeaddrinfo(res); | ^~~~~~~~~~~~ ../src/mdns.c:413:24: error: invalid use of undefined type 'struct addrinfo' 413 | for (; ipv4->ai_next != NULL; ipv4 = ipv4->ai_next) | ^~ ../src/mdns.c:413:54: error: invalid use of undefined type 'struct addrinfo' 413 | for (; ipv4->ai_next != NULL; ipv4 = ipv4->ai_next) | ^~ ../src/mdns.c:415:17: error: invalid use of undefined type 'struct addrinfo' 415 | ipv4->ai_next = ipv6_res; | ^~ ../src/mdns.c:430:90: warning: passing argument 5 of 'mdns_list_interfaces' from incompatible pointer type [-Wincompatible-pointer-types] 430 | status = mdns_list_interfaces(&ifaddrs, &mdns_ips, &ctx->nb_conns, &mcast_addrs, res); | ^~~ | | | struct addrinfo * ../src/mdns.c:119:45: note: expected 'const struct addrinfo *' but argument is of type 'struct addrinfo *' 119 | const struct addrinfo* addrs) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ../src/mdns.c:386:25: warning: unused variable 'hints' [-Wunused-variable] 386 | struct addrinfo hints, *res = NULL; | ^~~~~ ../src/mdns.c: In function 'mdns_listen_probe_network': ../src/mdns.c:737:26: warning: implicit declaration of function 'alloca'; did you mean 'calloc'? [-Wimplicit-function-declaration] 737 | struct pollfd *pfd = alloca( sizeof(*pfd) * ctx->nb_conns ); | ^~~~~~ | calloc ../src/mdns.c:737:26: warning: initialization of 'struct pollfd *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ../src/mdns.c: In function 'mdns_listen': ../src/mdns.c:804:112: error: invalid application of 'sizeof' to incomplete type 'struct timeval' 804 | if (setsockopt(ctx->conns[i].sock, SOL_SOCKET, SO_SNDTIMEO, (const void *) &os_deadline, sizeof(os_deadline)) < 0) | ^ ../src/mdns.c: In function 'mdns_serve': ../src/mdns.c:868:112: error: invalid application of 'sizeof' to incomplete type 'struct timeval' 868 | if (setsockopt(ctx->conns[i].sock, SOL_SOCKET, SO_SNDTIMEO, (const void *) &os_deadline, sizeof(os_deadline)) < 0) | ^ ../src/mdns.c:882:38: warning: initialization of 'struct pollfd *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 882 | struct pollfd *pfd = alloca( sizeof(*pfd) * ctx->nb_conns ); | ^~~~~~ ninja: build stopped: subcommand failed. *** Error code 1 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/libmicrodns *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/libmicrodns