+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pen-0.34.1nb2/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pen-0.34.1nb2/work.log ===> Building for pen-0.34.1nb2 --- all --- /opt/local/bin/bmake all-am --- pen.o --- --- select.o --- --- poll.o --- --- pen.o --- gcc -DHAVE_CONFIG_H -I. -I/opt/local/include -I/usr/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -DDEBUGGING -MT pen.o -MD -MP -MF .deps/pen.Tpo -c -o pen.o pen.c --- select.o --- gcc -DHAVE_CONFIG_H -I. -I/opt/local/include -I/usr/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -DDEBUGGING -MT select.o -MD -MP -MF .deps/select.Tpo -c -o select.o select.c --- poll.o --- gcc -DHAVE_CONFIG_H -I. -I/opt/local/include -I/usr/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -DDEBUGGING -MT poll.o -MD -MP -MF .deps/poll.Tpo -c -o poll.o poll.c mv -f .deps/poll.Tpo .deps/poll.Po --- kqueue.o --- gcc -DHAVE_CONFIG_H -I. -I/opt/local/include -I/usr/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -DDEBUGGING -MT kqueue.o -MD -MP -MF .deps/kqueue.Tpo -c -o kqueue.o kqueue.c --- pen.o --- pen.c:185:12: error: conflicting types for 'accept4'; have 'int(int, struct sockaddr *, socklen_t *, int)' {aka 'int(int, struct sockaddr *, unsigned int *, int)'} 185 | extern int accept4(int, struct sockaddr *, socklen_t *, int); | ^~~~~~~ In file included from /usr/include/netdb.h:79, from pen.c:29: /usr/include/sys/socket.h:548:12: note: previous declaration of 'accept4' with type 'int(int, struct sockaddr * restrict, void *, int)' 548 | extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int); | ^~~~~~~ pen.c: In function 'add_client': pen.c:1738:24: warning: unused variable 'one' [-Wunused-variable] 1738 | int n, one = 1; | ^~~ --- select.o --- mv -f .deps/select.Tpo .deps/select.Po --- epoll.o --- gcc -DHAVE_CONFIG_H -I. -I/opt/local/include -I/usr/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -DDEBUGGING -MT epoll.o -MD -MP -MF .deps/epoll.Tpo -c -o epoll.o epoll.c --- pen.o --- *** [pen.o] Error code 1 bmake[1]: stopped making "all-am" in /home/pbulk/build/net/pen/work/pen-0.34.1 --- kqueue.o --- mv -f .deps/kqueue.Tpo .deps/kqueue.Po --- epoll.o --- In file included from epoll.c:12: /usr/include/sys/epoll.h:1:2: error: #error "This header has been disabled to stop its functionality from being used." 1 | #error "This header has been disabled to stop its functionality from being used." | ^~~~~ epoll.c: In function 'epoll_event_ctl': epoll.c:22:28: error: storage size of 'ev' isn't known 22 | struct epoll_event ev; | ^~ epoll.c:23:31: error: invalid application of 'sizeof' to incomplete type 'struct epoll_event' 23 | memset(&ev, 0, sizeof(struct epoll_event)); | ^~~~~~ epoll.c:25:46: error: 'EPOLLIN' undeclared (first use in this function) 25 | if (events & EVENT_READ) epevents |= EPOLLIN; | ^~~~~~~ epoll.c:25:46: note: each undeclared identifier is reported only once for each function it appears in epoll.c:26:47: error: 'EPOLLOUT' undeclared (first use in this function) 26 | if (events & EVENT_WRITE) epevents |= EPOLLOUT; | ^~~~~~~~ epoll.c:29:13: warning: implicit declaration of function 'epoll_ctl' [-Wimplicit-function-declaration] 29 | n = epoll_ctl(efd, op, fd, &ev); | ^~~~~~~~~ epoll.c:22:28: warning: unused variable 'ev' [-Wunused-variable] 22 | struct epoll_event ev; | ^~ epoll.c: In function 'epoll_event_add': epoll.c:38:37: error: 'EPOLL_CTL_ADD' undeclared (first use in this function) 38 | epoll_event_ctl(fd, events, EPOLL_CTL_ADD); | ^~~~~~~~~~~~~ epoll.c: In function 'epoll_event_arm': epoll.c:44:37: error: 'EPOLL_CTL_MOD' undeclared (first use in this function) 44 | epoll_event_ctl(fd, events, EPOLL_CTL_MOD); | ^~~~~~~~~~~~~ epoll.c: In function 'epoll_event_wait': epoll.c:59:23: warning: implicit declaration of function 'epoll_wait' [-Wimplicit-function-declaration] 59 | epoll_count = epoll_wait(efd, epoll_ev, maxevents, 1000*timeout); | ^~~~~~~~~~ In file included from epoll.c:8: epoll.c: In function 'epoll_event_fd': epoll.c:72:79: error: invalid use of undefined type 'struct epoll_event' 72 | DEBUG(3, "\tepoll_ev[%d] = {revents=%d, data.fd=%d}", pindex, epoll_ev[pindex].events, epoll_ev[pindex].data.fd); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:72:87: error: invalid use of undefined type 'struct epoll_event' 72 | DEBUG(3, "\tepoll_ev[%d] = {revents=%d, data.fd=%d}", pindex, epoll_ev[pindex].events, epoll_ev[pindex].data.fd); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:72:104: error: invalid use of undefined type 'struct epoll_event' 72 | DEBUG(3, "\tepoll_ev[%d] = {revents=%d, data.fd=%d}", pindex, epoll_ev[pindex].events, epoll_ev[pindex].data.fd); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:72:112: error: invalid use of undefined type 'struct epoll_event' 72 | DEBUG(3, "\tepoll_ev[%d] = {revents=%d, data.fd=%d}", pindex, epoll_ev[pindex].events, epoll_ev[pindex].data.fd); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:73:21: error: invalid use of undefined type 'struct epoll_event' 73 | if (epoll_ev[pindex].events & EPOLLIN) events |= EVENT_READ; | ^ epoll.c:73:29: error: invalid use of undefined type 'struct epoll_event' 73 | if (epoll_ev[pindex].events & EPOLLIN) events |= EVENT_READ; | ^ epoll.c:73:39: error: 'EPOLLIN' undeclared (first use in this function) 73 | if (epoll_ev[pindex].events & EPOLLIN) events |= EVENT_READ; | ^~~~~~~ epoll.c:74:21: error: invalid use of undefined type 'struct epoll_event' 74 | if (epoll_ev[pindex].events & EPOLLOUT) events |= EVENT_WRITE; | ^ epoll.c:74:29: error: invalid use of undefined type 'struct epoll_event' 74 | if (epoll_ev[pindex].events & EPOLLOUT) events |= EVENT_WRITE; | ^ epoll.c:74:39: error: 'EPOLLOUT' undeclared (first use in this function) 74 | if (epoll_ev[pindex].events & EPOLLOUT) events |= EVENT_WRITE; | ^~~~~~~~ epoll.c:75:21: error: invalid use of undefined type 'struct epoll_event' 75 | if (epoll_ev[pindex].events & EPOLLERR) events |= EVENT_ERR; | ^ epoll.c:75:29: error: invalid use of undefined type 'struct epoll_event' 75 | if (epoll_ev[pindex].events & EPOLLERR) events |= EVENT_ERR; | ^ epoll.c:75:39: error: 'EPOLLERR' undeclared (first use in this function) 75 | if (epoll_ev[pindex].events & EPOLLERR) events |= EVENT_ERR; | ^~~~~~~~ epoll.c:76:21: error: invalid use of undefined type 'struct epoll_event' 76 | if (epoll_ev[pindex].events & EPOLLHUP) events |= EVENT_ERR; | ^ epoll.c:76:29: error: invalid use of undefined type 'struct epoll_event' 76 | if (epoll_ev[pindex].events & EPOLLHUP) events |= EVENT_ERR; | ^ epoll.c:76:39: error: 'EPOLLHUP' undeclared (first use in this function) 76 | if (epoll_ev[pindex].events & EPOLLHUP) events |= EVENT_ERR; | ^~~~~~~~ epoll.c:77:68: error: invalid use of undefined type 'struct epoll_event' 77 | if (events == 0) DEBUG(2, "events for fd %d = %d", epoll_ev[pindex].data.fd, epoll_ev[pindex].events); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:77:76: error: invalid use of undefined type 'struct epoll_event' 77 | if (events == 0) DEBUG(2, "events for fd %d = %d", epoll_ev[pindex].data.fd, epoll_ev[pindex].events); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:77:94: error: invalid use of undefined type 'struct epoll_event' 77 | if (events == 0) DEBUG(2, "events for fd %d = %d", epoll_ev[pindex].data.fd, epoll_ev[pindex].events); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:77:102: error: invalid use of undefined type 'struct epoll_event' 77 | if (events == 0) DEBUG(2, "events for fd %d = %d", epoll_ev[pindex].data.fd, epoll_ev[pindex].events); | ^ diag.h:6:23: note: in definition of macro 'DEBUG' 6 | debug(__VA_ARGS__); \ | ^~~~~~~~~~~ epoll.c:79:24: error: invalid use of undefined type 'struct epoll_event' 79 | return epoll_ev[pindex].data.fd; | ^ epoll.c:79:32: error: invalid use of undefined type 'struct epoll_event' 79 | return epoll_ev[pindex].data.fd; | ^ epoll.c: In function 'epoll_init': epoll.c:84:15: warning: implicit declaration of function 'epoll_create1' [-Wimplicit-function-declaration] 84 | efd = epoll_create1(0); | ^~~~~~~~~~~~~ epoll.c:91:48: error: invalid application of 'sizeof' to incomplete type 'struct epoll_event' 91 | epoll_ev = pen_malloc(maxevents*sizeof *epoll_ev); | ^ epoll.c: In function 'epoll_event_fd': epoll.c:80:1: warning: control reaches end of non-void function [-Wreturn-type] 80 | } | ^ *** [epoll.o] Error code 1 bmake[1]: stopped making "all-am" in /home/pbulk/build/net/pen/work/pen-0.34.1 bmake[1]: 2 errors bmake[1]: stopped making "all-am" in /home/pbulk/build/net/pen/work/pen-0.34.1 bmake: stopped making "all" in /home/pbulk/build/net/pen/work/pen-0.34.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/net/pen *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/net/pen