+ 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/dvtm-0.15/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/dvtm-0.15/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for dvtm-0.15 --- clean --- --- options --- --- config.h --- --- clean --- cleaning --- options --- dvtm build options: CFLAGS = -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses -std=c99 -I. -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED LDFLAGS = -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lc -lutil -lcurses CC = gcc --- config.h --- cp config.def.h config.h --- dvtm.o --- --- vt.o --- --- dvtm.o --- CC dvtm.c --- vt.o --- CC vt.c In file included from vt.c:48: 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:3: 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:23: 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:23: note: in expansion of macro 'TTY_NAME_MAX' 45 | strlcpy(name, path, TTY_NAME_MAX); | ^~~~~~~~~~~~ forkpty-sunos.c:68:20: error: 'TIOCSWINSZ' undeclared (first use in this function) 68 | if (ioctl(slave, TIOCSWINSZ, ws) == -1) | ^~~~~~~~~~ vt.c: In function 'vt_process': vt.c:1422:18: warning: implicit declaration of function 'mbrtowc'; did you mean 'mbtowc'? [-Wimplicit-function-declaration] 1422 | len = (ssize_t)mbrtowc(&wc, t->rbuf + pos, t->rlen - pos, &ps); | ^~~~~~~ | mbtowc vt.c: In function 'vt_resize': vt.c:1474:9: error: variable 'ws' has initializer but incomplete type 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~~ vt.c:1474:25: error: 'struct winsize' has no member named 'ws_row' 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~ vt.c:1474:34: warning: excess elements in struct initializer 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~ vt.c:1474:34: note: (near initialization for 'ws') vt.c:1474:41: error: 'struct winsize' has no member named 'ws_col' 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~ vt.c:1474:50: warning: excess elements in struct initializer 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~ vt.c:1474:50: note: (near initialization for 'ws') vt.c:1474:17: error: storage size of 'ws' isn't known 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~ vt.c:1483:16: error: 'TIOCSWINSZ' undeclared (first use in this function) 1483 | ioctl(t->pty, TIOCSWINSZ, &ws); | ^~~~~~~~~~ vt.c: In function 'vt_draw': vt.c:1540:18: warning: implicit declaration of function 'wcrtomb'; did you mean 'wctomb'? [-Wimplicit-function-declaration] 1540 | size_t len = wcrtomb(buf, cell->text, NULL); | ^~~~~~~ | wctomb vt.c: In function 'vt_forkpty': vt.c:1589:17: error: storage size of 'ws' isn't known 1589 | struct winsize ws; | ^~ vt.c:1632:4: warning: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Wimplicit-function-declaration] 1632 | setenv(envp[0], envp[1], 1); | ^~~~~~ | getenv *** [vt.o] Error code 1 bmake: stopped in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 --- dvtm.o --- dvtm.c: In function 'resize_screen': dvtm.c:734:17: error: storage size of 'ws' isn't known 734 | struct winsize ws; | ^~ dvtm.c:736:6: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 736 | if (ioctl(0, TIOCGWINSZ, &ws) == -1) { | ^~~~~ dvtm.c:736:15: error: 'TIOCGWINSZ' undeclared (first use in this function) 736 | if (ioctl(0, TIOCGWINSZ, &ws) == -1) { | ^~~~~~~~~~ dvtm.c:736:15: note: each undeclared identifier is reported only once for each function it appears in dvtm.c: In function 'parse_args': dvtm.c:1705:5: warning: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Wimplicit-function-declaration] 1705 | setenv("DVTM_CMD_FIFO", fifo, 1); | ^~~~~~ | getenv dvtm.c: In function 'main': dvtm.c:1772:7: warning: implicit declaration of function 'pselect'; did you mean 'select'? [-Wimplicit-function-declaration] 1772 | r = pselect(nfds + 1, &rd, NULL, NULL, NULL, &emptyset); | ^~~~~~~ | select *** [dvtm.o] Error code 1 bmake: stopped in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 2 errors bmake: stopped in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/dvtm *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/dvtm