+ 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/abduco-0.6/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/abduco-0.6/work.log ===> Building for abduco-0.6 --- clean --- --- options --- --- config.h --- cp config.def.h config.h --- options --- abduco build options: CFLAGS = -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -std=c99 -pedantic -Wall -I. -DVERSION="0.6" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 LDFLAGS = -Wl,-R/opt/pkg/lib -lc -lutil CC = gcc --- clean --- cleaning --- abduco.o --- CC abduco.c In file included from abduco.c:59: forkpty-sunos.c:29:68: warning: 'struct winsize' declared inside parameter list will not be visible outside of this definition or declaration 29 | pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) | ^~~~~~~ forkpty-sunos.c: In function 'forkpty': forkpty-sunos.c:45:17: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 45 | strlcpy(name, path, TTY_NAME_MAX); | ^~~~~~~ | strncpy forkpty-sunos.c:26:22: error: 'TTYNAME_MAX' undeclared (first use in this function); did you mean 'TTY_NAME_MAX'? 26 | #define TTY_NAME_MAX TTYNAME_MAX | ^~~~~~~~~~~ forkpty-sunos.c:45:37: note: in expansion of macro 'TTY_NAME_MAX' 45 | strlcpy(name, path, TTY_NAME_MAX); | ^~~~~~~~~~~~ forkpty-sunos.c:26:22: note: each undeclared identifier is reported only once for each function it appears in 26 | #define TTY_NAME_MAX TTYNAME_MAX | ^~~~~~~~~~~ forkpty-sunos.c:45:37: note: in expansion of macro 'TTY_NAME_MAX' 45 | strlcpy(name, path, TTY_NAME_MAX); | ^~~~~~~~~~~~ forkpty-sunos.c:68:34: error: 'TIOCSWINSZ' undeclared (first use in this function) 68 | if (ioctl(slave, TIOCSWINSZ, ws) == -1) | ^~~~~~~~~~ abduco.c: At top level: abduco.c:78:32: error: field 'ws' has incomplete type 78 | struct winsize ws; | ^~ abduco.c:107:24: error: field 'winsize' has incomplete type 107 | struct winsize winsize; | ^~~~~~~ In file included from abduco.c:200: client.c: In function 'client_setup_terminal': client.c:43:23: error: 'VLNEXT' undeclared (first use in this function) 43 | cur_term.c_cc[VLNEXT] = _POSIX_VDISABLE; | ^~~~~~ client.c: In function 'client_mainloop': client.c:77:40: error: storage size of 'ws' isn't known 77 | struct winsize ws; | ^~ client.c:78:49: error: 'TIOCGWINSZ' undeclared (first use in this function) 78 | if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1) { | ^~~~~~~~~~ client.c:77:40: warning: unused variable 'ws' [-Wunused-variable] 77 | struct winsize ws; | ^~ In file included from abduco.c:201: server.c: In function 'server_mainloop': server.c:227:67: error: 'TIOCSWINSZ' undeclared (first use in this function) 227 | ioctl(server.pty, TIOCSWINSZ, &client_packet.u.ws); | ^~~~~~~~~~ abduco.c: In function 'list_session': abduco.c:545:17: warning: implicit declaration of function 'scandir' [-Wimplicit-function-declaration] 545 | int n = scandir(sockaddr.sun_path, &namelist, session_filter, session_comparator); | ^~~~~~~ abduco.c: In function 'main': abduco.c:638:33: error: 'TIOCGWINSZ' undeclared (first use in this function) 638 | if (ioctl(STDIN_FILENO, TIOCGWINSZ, &server.winsize) == -1) { | ^~~~~~~~~~ *** [abduco.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/abduco/work/abduco-0.6 bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/misc/abduco/work/abduco-0.6 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/abduco *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/abduco