+ 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 --- --- kqueue.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 --- 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 --- 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 --- 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 --- kqueue.o --- mv -f .deps/kqueue.Tpo .deps/kqueue.Po --- 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); | ^~~~~~~ --- dlist.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 dlist.o -MD -MP -MF .deps/dlist.Tpo -c -o dlist.o dlist.c --- pen.o --- pen.c: In function 'add_client': pen.c:1738:24: warning: unused variable 'one' [-Wunused-variable] 1738 | int n, one = 1; | ^~~ --- 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)); | ^~~~~~ --- select.o --- mv -f .deps/select.Tpo .deps/select.Po --- epoll.o --- 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 --- ssl.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 ssl.o -MD -MP -MF .deps/ssl.Tpo -c -o ssl.o ssl.c --- epoll.o --- 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; | ^~ --- pen.o --- *** [pen.o] Error code 1 bmake[1]: stopped making "all-am" in /home/pbulk/build/net/pen/work/pen-0.34.1 --- epoll.o --- 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); | ^~~~~~~~~~~~~ --- dlist.o --- mv -f .deps/dlist.Tpo .deps/dlist.Po --- epoll.o --- 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 --- ssl.o --- ssl.c: In function 'ssl_temp_rsa_cb': ssl.c:81:17: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 81 | RSA *rsa = RSA_new(); | ^~~ In file included from /home/pbulk/build/net/pen/work/.buildlink/include/openssl/x509.h:36, from /home/pbulk/build/net/pen/work/.buildlink/include/openssl/ssl.h:32, from ssl.h:2, from ssl.c:14: /home/pbulk/build/net/pen/work/.buildlink/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ ssl.c:86:21: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 86 | !RSA_generate_key_ex(rsa, 512, bn, NULL)) { | ^ /home/pbulk/build/net/pen/work/.buildlink/include/openssl/rsa.h:271:27: note: declared here 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ ssl.c:88:25: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 88 | RSA_free(rsa); rsa = NULL; | ^~~~~~~~ /home/pbulk/build/net/pen/work/.buildlink/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ ssl.c: In function 'ssl_create_context': ssl.c:387:9: warning: 'EC_KEY_new_by_curve_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 387 | EC_KEY *ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ^~~~~~ In file included from /home/pbulk/build/net/pen/work/.buildlink/include/openssl/x509.h:33: /home/pbulk/build/net/pen/work/.buildlink/include/openssl/ec.h:1017:31: note: declared here 1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); | ^~~~~~~~~~~~~~~~~~~~~~~~ ssl.c:396:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 396 | EC_KEY_free(ecdh); | ^~~~~~~~~~~ /home/pbulk/build/net/pen/work/.buildlink/include/openssl/ec.h:1022:28: note: declared here 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ mv -f .deps/ssl.Tpo .deps/ssl.Po 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