+ 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 ===> Building for dvtm-0.15 --- clean --- --- options --- --- config.h --- --- clean --- cleaning --- options --- dvtm build options: CFLAGS = -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNCURSES_WIDECHAR=1 -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: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) | ^~~~~~~~~~ --- dvtm.o --- dvtm.c: In function 'resize_screen': dvtm.c:734:24: error: storage size of 'ws' isn't known 734 | struct winsize ws; | ^~ dvtm.c:736:13: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 736 | if (ioctl(0, TIOCGWINSZ, &ws) == -1) { | ^~~~~ --- vt.o --- vt.c: In function 'vt_process': --- dvtm.o --- dvtm.c:736:22: error: 'TIOCGWINSZ' undeclared (first use in this function) 736 | if (ioctl(0, TIOCGWINSZ, &ws) == -1) { | ^~~~~~~~~~ dvtm.c:736:22: note: each undeclared identifier is reported only once for each function it appears in --- vt.o --- vt.c:1422:32: 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:16: error: variable 'ws' has initializer but incomplete type 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~~ vt.c:1474:32: error: 'struct winsize' has no member named 'ws_row' 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~ vt.c:1474:41: warning: excess elements in struct initializer 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~ vt.c:1474:41: note: (near initialization for 'ws') vt.c:1474:48: error: 'struct winsize' has no member named 'ws_col' 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~~~ vt.c:1474:57: warning: excess elements in struct initializer 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~~~ vt.c:1474:57: note: (near initialization for 'ws') vt.c:1474:24: error: storage size of 'ws' isn't known 1474 | struct winsize ws = { .ws_row = rows, .ws_col = cols }; | ^~ vt.c:1483:23: error: 'TIOCSWINSZ' undeclared (first use in this function) 1483 | ioctl(t->pty, TIOCSWINSZ, &ws); | ^~~~~~~~~~ vt.c: In function 'vt_draw': vt.c:1540:46: 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:24: error: storage size of 'ws' isn't known 1589 | struct winsize ws; | ^~ vt.c:1632:25: warning: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Wimplicit-function-declaration] 1632 | setenv(envp[0], envp[1], 1); | ^~~~~~ | getenv --- dvtm.o --- dvtm.c: In function 'parse_args': dvtm.c:1705:33: 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:21: 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 making "all" in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 --- vt.o --- *** [vt.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/build/misc/dvtm/work/dvtm-0.15 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/dvtm *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/dvtm