+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ve-1.0/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ve-1.0/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for ve-1.0 --- edit.o --- --- term.o --- --- edit.o --- cc -pipe -O2 -I/usr/pkg/include/ncurses -DVEDITOR -I/usr/pkg/include/ncurses -c edit.c --- term.o --- cc -pipe -O2 -I/usr/pkg/include/ncurses -DVEDITOR -I/usr/pkg/include/ncurses -c term.c --- edit.o --- edit.c: In function 'indigestion': edit.c:59:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int] indigestion(i) ^~~~~~~~~~~ edit.c: In function 'n2ansi': edit.c:97:12: warning: type defaults to 'int' in declaration of 'ansix' [-Wimplicit-int] register ansix = 0; ^~~~~ edit.c: In function 'edit_msg': edit.c:134:3: warning: implicit declaration of function 'move'; did you mean 'remove'? [-Wimplicit-function-declaration] move(b_lines, 0); ^~~~ remove edit.c:135:3: warning: implicit declaration of function 'clrtoeol'; did you mean 'chroot'? [-Wimplicit-function-declaration] clrtoeol(); ^~~~~~~~ chroot edit.c:136:3: warning: implicit declaration of function 'prints'; did you mean 'printf'? [-Wimplicit-function-declaration] prints("\033[%sm 編輯文章 \033[31;47m (Ctrl-G)\033[30m 線上輔助說明 \033[31m(^X,^Q)\033[30m 檔案處理 ║%s│%c%c%c%c║ %3d:%3d \033[m", ^~~~~~ printf edit.c: In function 'alloc_line': edit.c:221:3: warning: implicit declaration of function 'abort_bbs'; did you mean 'abort'? [-Wimplicit-function-declaration] abort_bbs(); ^~~~~~~~~ abort edit.c: At top level: edit.c:280:1: warning: return type defaults to 'int' [-Wimplicit-int] undelete_line() ^~~~~~~~~~~~~ edit.c: In function 'undelete_line': edit.c:296:4: warning: implicit declaration of function 'insert_string' [-Wimplicit-function-declaration] insert_string(deleted_lines->data); ^~~~~~~~~~~~~ edit.c: At top level: edit.c:468:1: warning: return type defaults to 'int' [-Wimplicit-int] insert_string(str) ^~~~~~~~~~~~~ edit.c: In function 'insert_string': edit.c:477:9: warning: implicit declaration of function 'isprint2'; did you mean 'isprint'? [-Wimplicit-function-declaration] if (isprint2(ch) || ch == '') ^~~~~~~~ isprint edit.c: In function 'ask_tmpbuf': edit.c:547:10: warning: implicit declaration of function 'getdata'; did you mean 'getpass'? [-Wimplicit-function-declaration] if (!getdata(3, 0, msg, fp_buf + 4, 4, DOECHO)) ^~~~~~~ getpass edit.c: In function 'read_tmpbuf': edit.c:572:3: warning: implicit declaration of function 'setuserfile'; did you mean 'setusershell'? [-Wimplicit-function-declaration] setuserfile(fp_tmpbuf, tmpf); ^~~~~~~~~~~ setusershell edit.c:577:27: warning: implicit declaration of function 'more'; did you mean 'fork'? [-Wimplicit-function-declaration] if (n != 0 && n != 5 && more(fp_tmpbuf, NA) != -1) ^~~~ fork edit.c: In function 'write_tmpbuf': edit.c:602:7: warning: implicit declaration of function 'dashf' [-Wimplicit-function-declaration] if (dashf(fp_tmpbuf)) ^~~~~ edit.c: In function 'restore_backup': edit.c:677:5: warning: implicit declaration of function 'stand_title'; did you mean 'load_file'? [-Wimplicit-function-declaration] stand_title("編輯器自動復原"); ^~~~~~~~~~~ load_file edit.c: In function 'write_file': edit.c:730:5: warning: implicit declaration of function 'outs'; did you mean 'puts'? [-Wimplicit-function-declaration] outs("文章[1m 沒有 [0m存入"); ^~~~ puts edit.c:782:9: warning: implicit declaration of function 'trim' [-Wimplicit-function-declaration] trim(line); ^~~~ edit.c:796:6: warning: implicit declaration of function 'convert' [-Wimplicit-function-declaration] convert(FPath); ^~~~~~~ edit.c: At top level: edit.c:805:1: warning: return type defaults to 'int' [-Wimplicit-int] edit_outs(text) ^~~~~~~~~ edit.c: In function 'edit_outs': edit.c:813:5: warning: implicit declaration of function 'outch'; did you mean 'putc'? [-Wimplicit-function-declaration] outch(ch == 27 ? '*' : ch); ^~~~~ putc edit.c: At top level: edit.c:817:1: warning: return type defaults to 'int' [-Wimplicit-int] block_outs(char* text, int column) ^~~~~~~~~~ edit.c: In function 'show_help': edit.c:937:3: warning: implicit declaration of function 'clear'; did you mean 'creat'? [-Wimplicit-function-declaration] clear(); ^~~~~ creat edit.c: At top level: edit.c:959:1: warning: return type defaults to 'int' [-Wimplicit-int] goto_line(int lino) ^~~~~~~~~ edit.c:1022:1: warning: return type defaults to 'int' [-Wimplicit-int] search_str(int mode) ^~~~~~~~~~ edit.c:1237:1: warning: return type defaults to 'int' [-Wimplicit-int] block_del(int hide) ^~~~~~~~~ edit.c:1382:1: warning: return type defaults to 'int' [-Wimplicit-int] block_shift_left() ^~~~~~~~~~~~~~~~ edit.c:1411:1: warning: return type defaults to 'int' [-Wimplicit-int] block_shift_right() ^~~~~~~~~~~~~~~~~ edit.c:1445:1: warning: return type defaults to 'int' [-Wimplicit-int] transform_to_color(char* line) ^~~~~~~~~~~~~~~~~~ edit.c:1458:1: warning: return type defaults to 'int' [-Wimplicit-int] block_color() ^~~~~~~~~~~ edit.c: In function 'vedit': edit.c:1535:10: warning: implicit declaration of function 'igetkey' [-Wimplicit-function-declaration] ch = igetkey(); ^~~~~~~ edit.c:1625:14: warning: implicit declaration of function 'ask'; did you mean 'umask'? [-Wimplicit-function-declaration] ch = ask("結束但不儲存 (Y/N)? [N]: "); ^~~ umask edit.c:1892:9: warning: implicit declaration of function 'refresh' [-Wimplicit-function-declaration] refresh(); ^~~~~~~ edit.c:1893:9: warning: implicit declaration of function 'reset_tty' [-Wimplicit-function-declaration] reset_tty(); ^~~~~~~~~ edit.c:1895:9: warning: implicit declaration of function 'restore_tty'; did you mean 'restore_backup'? [-Wimplicit-function-declaration] restore_tty(); ^~~~~~~~~~~ restore_backup edit.c:2197:11: warning: implicit declaration of function 'rscroll'; did you mean 'strcoll'? [-Wimplicit-function-declaration] rscroll(); ^~~~~~~ strcoll edit.c:2212:11: warning: implicit declaration of function 'scroll'; did you mean 'strcoll'? [-Wimplicit-function-declaration] scroll(); ^~~~~~ strcoll edit.c:1894:9: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(getenv("SHELL")); ^~~~~~~~~~~~~~~~~~~~~~~ --- term.o --- term.c: In function 'init_tty': term.c:68:38: error: invalid application of 'sizeof' to incomplete type 'struct sgttyb' memcpy(&tty_new, &tty_state, sizeof(tty_new)); ^ term.c:78:10: error: invalid use of undefined type 'struct sgttyb' tty_new.sg_flags |= RAW; ^ term.c:78:23: error: 'RAW' undeclared (first use in this function) tty_new.sg_flags |= RAW; ^~~ term.c:78:23: note: each undeclared identifier is reported only once for each function it appears in term.c:83:10: error: invalid use of undefined type 'struct sgttyb' tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ^ term.c:83:43: error: 'LCASE' undeclared (first use in this function); did you mean 'XCASE'? tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ^~~~~ XCASE term.c:83:58: error: 'CRMOD' undeclared (first use in this function); did you mean 'CREAD'? tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ^~~~~ CREAD term.c: In function 'term_init': term.c:182:21: error: invalid use of undefined type 'struct sgttyb' ospeed = tty_state.sg_ospeed; ^ term.c:203:23: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(s, t_lines, outcf); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c:211:17: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c:219:17: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c:227:17: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c:235:17: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c: In function 'do_move': term.c:265:42: warning: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] tputs(tgoto(cm, destcol, destline), 0, ochar); ^~~~~ In file included from term.c:14: /home/pbulk/build/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:54: note: expected 'int (*)(int)' but argument is of type 'void (*)()' extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^~~~~~~~~~~~ term.c: At top level: term.c:40:15: error: storage size of 'tty_state' isn't known struct sgttyb tty_state, tty_new; ^~~~~~~~~ term.c:40:26: error: storage size of 'tty_new' isn't known struct sgttyb tty_state, tty_new; ^~~~~~~ *** [term.o] Error code 1 bmake: stopped in /home/pbulk/build/editors/ve/work/ve-1.0 1 error bmake: stopped in /home/pbulk/build/editors/ve/work/ve-1.0 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/editors/ve *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/editors/ve