+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libmicrodns-0.2.0/work.log + su pbulk -c '"$@"' make /opt/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/compat.c.o ../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 [2/14] Compiling C object compat/libcompat.a.p/inet.c.o [3/14] Compiling C object compat/libcompat.a.p/poll.c.o FAILED: compat/libcompat.a.p/poll.c.o gcc -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 -msave-args -fno-aggressive-loop-optimizations -fPIC -DHAVE_CONFIG_H -MD -MQ compat/libcompat.a.p/poll.c.o -MF compat/libcompat.a.p/poll.c.o.d -o compat/libcompat.a.p/poll.c.o -c ../compat/poll.c ../compat/poll.c:33:5: error: conflicting types for 'poll'; have 'int(struct pollfd *, unsigned int, int)' 33 | int poll(struct pollfd *fds, unsigned nfds, int timeout) | ^~~~ In file included from /usr/include/sys/socket.h:66, from ../compat/compat.h:40, from ../compat/poll.c:29: /usr/include/sys/poll.h:152:5: note: previous declaration of 'poll' with type 'int(struct pollfd *, nfds_t, int)' {aka 'int(struct pollfd *, long unsigned int, int)'} 152 | int poll(struct pollfd *, nfds_t, int); | ^~~~ ../compat/poll.c: In function 'poll': ../compat/poll.c:35:5: error: unknown type name 'DWORD' 35 | DWORD to = (timeout >= 0) ? (DWORD)timeout : INFINITE; | ^~~~~ ../compat/poll.c:35:34: error: 'DWORD' undeclared (first use in this function) 35 | DWORD to = (timeout >= 0) ? (DWORD)timeout : INFINITE; | ^~~~~ ../compat/poll.c:35:34: note: each undeclared identifier is reported only once for each function it appears in ../compat/poll.c:35:40: error: expected ':' before 'timeout' 35 | DWORD to = (timeout >= 0) ? (DWORD)timeout : INFINITE; | ^~~~~~~ | : ../compat/poll.c:39:13: warning: implicit declaration of function 'SleepEx'; did you mean 'sleep'? [-Wimplicit-function-declaration] 39 | if (SleepEx(to, TRUE)) | ^~~~~~~ | sleep ../compat/poll.c:39:25: error: 'TRUE' undeclared (first use in this function); did you mean 'B_TRUE'? 39 | if (SleepEx(to, TRUE)) | ^~~~ | B_TRUE ../compat/poll.c:47:5: error: unknown type name 'WSAEVENT' 47 | WSAEVENT *evts = malloc(nfds * sizeof (WSAEVENT)); | ^~~~~~~~ ../compat/poll.c:47:22: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 47 | WSAEVENT *evts = malloc(nfds * sizeof (WSAEVENT)); | ^~~~~~ ../compat/poll.c:31:1: note: include '' or provide a declaration of 'malloc' 30 | #include "utils.h" +++ |+#include 31 | ../compat/poll.c:47:22: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 47 | WSAEVENT *evts = malloc(nfds * sizeof (WSAEVENT)); | ^~~~~~ ../compat/poll.c:47:22: note: include '' or provide a declaration of 'malloc' ../compat/poll.c:47:44: error: 'WSAEVENT' undeclared (first use in this function) 47 | WSAEVENT *evts = malloc(nfds * sizeof (WSAEVENT)); | ^~~~~~~~ ../compat/poll.c:51:10: error: expected ';' before 'ret' 51 | DWORD ret = WSA_WAIT_FAILED; | ^~~~ | ; ../compat/poll.c:54:9: error: unknown type name 'SOCKET' 54 | SOCKET fd = fds[i].fd; | ^~~~~~ ../compat/poll.c:55:21: error: 'FD_CLOSE' undeclared (first use in this function); did you mean 'FD_CLR'? 55 | long mask = FD_CLOSE; | ^~~~~~~~ | FD_CLR ../compat/poll.c:65:21: error: 'FD_READ' undeclared (first use in this function) 65 | mask |= FD_READ | FD_ACCEPT; | ^~~~~~~ ../compat/poll.c:65:31: error: 'FD_ACCEPT' undeclared (first use in this function) 65 | mask |= FD_READ | FD_ACCEPT; | ^~~~~~~~~ ../compat/poll.c:70:21: error: 'FD_WRITE' undeclared (first use in this function); did you mean 'UIO_WRITE'? 70 | mask |= FD_WRITE | FD_CONNECT; | ^~~~~~~~ | UIO_WRITE ../compat/poll.c:70:32: error: 'FD_CONNECT' undeclared (first use in this function) 70 | mask |= FD_WRITE | FD_CONNECT; | ^~~~~~~~~~ ../compat/poll.c:74:21: error: 'FD_OOB' undeclared (first use in this function) 74 | mask |= FD_OOB; | ^~~~~~ ../compat/poll.c:78:19: warning: implicit declaration of function 'WSACreateEvent' [-Wimplicit-function-declaration] 78 | evts[i] = WSACreateEvent(); | ^~~~~~~~~~~~~~ ../compat/poll.c:79:24: error: 'WSA_INVALID_EVENT' undeclared (first use in this function) 79 | if (evts[i] == WSA_INVALID_EVENT) | ^~~~~~~~~~~~~~~~~ ../compat/poll.c:82:17: warning: implicit declaration of function 'WSACloseEvent' [-Wimplicit-function-declaration] 82 | WSACloseEvent(evts[--i]); | ^~~~~~~~~~~~~ ../compat/poll.c:83:13: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 83 | free(evts); | ^~~~ ../compat/poll.c:83:13: note: include '' or provide a declaration of 'free' ../compat/poll.c:83:13: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] ../compat/poll.c:83:13: note: include '' or provide a declaration of 'free' ../compat/poll.c:88:13: warning: implicit declaration of function 'WSAEventSelect' [-Wimplicit-function-declaration] 88 | if (WSAEventSelect(fds[i].fd, evts[i], mask) | ^~~~~~~~~~~~~~ ../compat/poll.c:89:13: warning: implicit declaration of function 'WSAGetLastError' [-Wimplicit-function-declaration] 89 | && WSAGetLastError() == WSAENOTSOCK) | ^~~~~~~~~~~~~~~ ../compat/poll.c:89:34: error: 'WSAENOTSOCK' undeclared (first use in this function); did you mean 'ENOTSOCK'? 89 | && WSAGetLastError() == WSAENOTSOCK) | ^~~~~~~~~~~ | ENOTSOCK ../compat/poll.c:110:36: error: 'ret' undeclared (first use in this function); did you mean 'wrset'? 110 | if (fds[i].revents != 0 && ret == WSA_WAIT_FAILED) | ^~~ | wrset ../compat/poll.c:110:43: error: 'WSA_WAIT_FAILED' undeclared (first use in this function) 110 | if (fds[i].revents != 0 && ret == WSA_WAIT_FAILED) | ^~~~~~~~~~~~~~~ ../compat/poll.c:111:19: error: 'WSA_WAIT_EVENT_0' undeclared (first use in this function) 111 | ret = WSA_WAIT_EVENT_0 + i; | ^~~~~~~~~~~~~~~~ ../compat/poll.c:115:15: warning: implicit declaration of function 'WSAWaitForMultipleEvents' [-Wimplicit-function-declaration] 115 | ret = WSAWaitForMultipleEvents(nfds, evts, FALSE, to, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../compat/poll.c:115:52: error: 'FALSE' undeclared (first use in this function) 115 | ret = WSAWaitForMultipleEvents(nfds, evts, FALSE, to, TRUE); | ^~~~~ ../compat/poll.c:120:9: error: unknown type name 'WSANETWORKEVENTS' 120 | WSANETWORKEVENTS ne; | ^~~~~~~~~~~~~~~~ ../compat/poll.c:122:13: warning: implicit declaration of function 'WSAEnumNetworkEvents' [-Wimplicit-function-declaration] 122 | if (WSAEnumNetworkEvents(fds[i].fd, evts[i], &ne)) | ^~~~~~~~~~~~~~~~~~~~ ../compat/poll.c:127:15: error: request for member 'lNetworkEvents' in something not a structure or union 127 | if (ne.lNetworkEvents & FD_CONNECT) | ^ ../compat/poll.c:130:19: error: request for member 'iErrorCode' in something not a structure or union 130 | if (ne.iErrorCode[FD_CONNECT_BIT] != 0) | ^ ../compat/poll.c:130:31: error: 'FD_CONNECT_BIT' undeclared (first use in this function) 130 | if (ne.iErrorCode[FD_CONNECT_BIT] != 0) | ^~~~~~~~~~~~~~ ../compat/poll.c:133:15: error: request for member 'lNetworkEvents' in something not a structure or union 133 | if (ne.lNetworkEvents & FD_CLOSE) | ^ ../compat/poll.c:136:19: error: request for member 'iErrorCode' in something not a structure or union 136 | if (ne.iErrorCode[FD_CLOSE_BIT] != 0) | ^ ../compat/poll.c:136:31: error: 'FD_CLOSE_BIT' undeclared (first use in this function) 136 | if (ne.iErrorCode[FD_CLOSE_BIT] != 0) | ^~~~~~~~~~~~ ../compat/poll.c:139:15: error: request for member 'lNetworkEvents' in something not a structure or union 139 | if (ne.lNetworkEvents & FD_ACCEPT) | ^ ../compat/poll.c:142:19: error: request for member 'iErrorCode' in something not a structure or union 142 | if (ne.iErrorCode[FD_ACCEPT_BIT] != 0) | ^ ../compat/poll.c:142:31: error: 'FD_ACCEPT_BIT' undeclared (first use in this function) 142 | if (ne.iErrorCode[FD_ACCEPT_BIT] != 0) | ^~~~~~~~~~~~~ ../compat/poll.c:145:15: error: request for member 'lNetworkEvents' in something not a structure or union 145 | if (ne.lNetworkEvents & FD_OOB) | ^ ../compat/poll.c:148:19: error: request for member 'iErrorCode' in something not a structure or union 148 | if (ne.iErrorCode[FD_OOB_BIT] != 0) | ^ ../compat/poll.c:148:31: error: 'FD_OOB_BIT' undeclared (first use in this function) 148 | if (ne.iErrorCode[FD_OOB_BIT] != 0) | ^~~~~~~~~~ ../compat/poll.c:151:15: error: request for member 'lNetworkEvents' in something not a structure or union 151 | if (ne.lNetworkEvents & FD_READ) | ^ ../compat/poll.c:154:19: error: request for member 'iErrorCode' in something not a structure or union 154 | if (ne.iErrorCode[FD_READ_BIT] != 0) | ^ ../compat/poll.c:154:31: error: 'FD_READ_BIT' undeclared (first use in this function) 154 | if (ne.iErrorCode[FD_READ_BIT] != 0) | ^~~~~~~~~~~ ../compat/poll.c:157:15: error: request for member 'lNetworkEvents' in something not a structure or union 157 | if (ne.lNetworkEvents & FD_WRITE) | ^ ../compat/poll.c:160:19: error: request for member 'iErrorCode' in something not a structure or union 160 | if (ne.iErrorCode[FD_WRITE_BIT] != 0) | ^ ../compat/poll.c:160:31: error: 'FD_WRITE_BIT' undeclared (first use in this function) 160 | if (ne.iErrorCode[FD_WRITE_BIT] != 0) | ^~~~~~~~~~~~ ../compat/poll.c:166:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 166 | free(evts); | ^~~~ ../compat/poll.c:166:5: note: include '' or provide a declaration of 'free' ../compat/poll.c:168:30: error: 'WSA_WAIT_IO_COMPLETION' undeclared (first use in this function) 168 | if (count == 0 && ret == WSA_WAIT_IO_COMPLETION) | ^~~~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. *** Error code 1 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/libmicrodns *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/libmicrodns