+ 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/kterm-6.2.0nb24/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/kterm-6.2.0nb24/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for kterm-6.2.0nb24
--- button.o ---
--- kfontlist.c ---
--- button.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -DKTERM -DSTATUSLINE -DKEEPALIVE  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c button.c
--- kfontlist.c ---
m4 kfontlist.m4 > kfontlist.c
--- cursor.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -DKTERM -DSTATUSLINE -DKEEPALIVE  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c cursor.c
--- button.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from button.c:33:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- cursor.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from cursor.c:31:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
cursor.c: In function '_CheckSelection':
cursor.c:47:9: warning: implicit declaration of function 'TrackText' [-Wimplicit-function-declaration]
   47 |         TrackText(0, 0, 0, 0);
      |         ^~~~~~~~~
cursor.c: At top level:
cursor.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int]
   58 | CursorSet(screen, row, col, flags)
      | ^~~~~~~~~
cursor.c:81:1: warning: return type defaults to 'int' [-Wimplicit-int]
   81 | CursorBack(screen, n)
      | ^~~~~~~~~~
cursor.c:110:1: warning: return type defaults to 'int' [-Wimplicit-int]
  110 | CursorForward(screen, n)
      | ^~~~~~~~~~~~~
cursor.c:125:1: warning: return type defaults to 'int' [-Wimplicit-int]
  125 | CursorDown(screen, n)
      | ^~~~~~~~~~
cursor.c:145:1: warning: return type defaults to 'int' [-Wimplicit-int]
  145 | CursorUp(screen, n)
      | ^~~~~~~~
cursor.c: In function 'Index':
cursor.c:180:9: warning: implicit declaration of function 'Scroll' [-Wimplicit-function-declaration]
  180 |         Scroll(screen, amount - j);
      |         ^~~~~~
cursor.c: In function 'RevIndex':
cursor.c:199:9: warning: implicit declaration of function 'RevScroll' [-Wimplicit-function-declaration]
  199 |         RevScroll(screen, amount - (screen->cur_row - screen->top_marg));
      |         ^~~~~~~~~
cursor.c: At top level:
cursor.c:206:1: warning: return type defaults to 'int' [-Wimplicit-int]
  206 | CarriageReturn(screen)
      | ^~~~~~~~~~~~~~
cursor.c:217:1: warning: return type defaults to 'int' [-Wimplicit-int]
  217 | CursorSave(term, sc)
      | ^~~~~~~~~~
cursor.c:234:1: warning: return type defaults to 'int' [-Wimplicit-int]
  234 | CursorRestore(term, sc)
      | ^~~~~~~~~~~~~
--- button.o ---
button.c: In function 'SelectionReceived':
button.c:390:13: warning: implicit declaration of function 'check_ctext_kterm' [-Wimplicit-function-declaration]
  390 |         if (check_ctext_kterm((char*)value, *length)) {
      |             ^~~~~~~~~~~~~~~~~
button.c: In function 'paste_compound_text':
button.c:427:9: warning: implicit declaration of function 'convCTtoCS' [-Wimplicit-function-declaration]
  427 |     n = convCTtoCS(ct, len, NULL);
      |         ^~~~~~~~~~
button.c: In function 'paste_utf8_string':
button.c:457:9: warning: implicit declaration of function 'convUTF8toCS' [-Wimplicit-function-declaration]
  457 |     n = convUTF8toCS(ut, len, NULL);
      |         ^~~~~~~~~~~~
button.c: In function 'paste_text':
button.c:555:13: warning: implicit declaration of function 'v_write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  555 |             v_write(pty, lag, cp - lag + 1);
      |             ^~~~~~~
      |             fwrite
button.c: In function 'StartSelect':
button.c:688:13: warning: implicit declaration of function 'HideCursor'; did you mean 'BadCursor'? [-Wimplicit-function-declaration]
  688 |             HideCursor ();
      |             ^~~~~~~~~~
      |             BadCursor
button.c: In function 'SelectSet':
button.c:785:17: warning: implicit declaration of function 'DisownSelection'; did you mean 'XtDisownSelection'? [-Wimplicit-function-declaration]
  785 |                 DisownSelection(term);
      |                 ^~~~~~~~~~~~~~~
      |                 XtDisownSelection
button.c: At top level:
button.c:895:1: warning: return type defaults to 'int' [-Wimplicit-int]
  895 | ScrollSelection(screen, amount)
      | ^~~~~~~~~~~~~~~
button.c:930:1: warning: return type defaults to 'int' [-Wimplicit-int]
  930 | ResizeSelection (screen, rows, cols)
      | ^~~~~~~~~~~~~~~
button.c: In function 'PointToRowCol':
button.c:960:18: warning: type defaults to 'int' in declaration of 'row' [-Wimplicit-int]
  960 |         register row, col;
      |                  ^~~
button.c:960:23: warning: type defaults to 'int' in declaration of 'col' [-Wimplicit-int]
  960 |         register row, col;
      |                       ^~~
button.c: In function 'ReHiliteText':
button.c:1439:21: warning: implicit declaration of function 'ScrnRefresh' [-Wimplicit-function-declaration]
 1439 |                     ScrnRefresh(screen, frow, fcol, 1, i, True);
      |                     ^~~~~~~~~~~
button.c: In function 'SaltTextAway':
button.c:1503:17: warning: implicit declaration of function 'SysError' [-Wimplicit-function-declaration]
 1503 |                 SysError(ERROR_BMALLOC2);
      |                 ^~~~~~~~
button.c: In function 'ConvertSelection':
button.c:1603:23: warning: implicit declaration of function 'pasteCStoUTF8' [-Wimplicit-function-declaration]
 1603 |             *length = pasteCStoUTF8(xterm->screen.selection, NULL);
      |                       ^~~~~~~~~~~~~
button.c:1608:23: warning: implicit declaration of function 'convCStoCT' [-Wimplicit-function-declaration]
 1608 |             *length = convCStoCT(xterm->screen.selection, NULL);
      |                       ^~~~~~~~~~
--- data.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -DKTERM -DSTATUSLINE -DKEEPALIVE  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c data.c
--- button.o ---
button.c:1613:23: warning: implicit declaration of function 'convCStoLatin1' [-Wimplicit-function-declaration]
 1613 |             *length = convCStoLatin1(xterm->screen.selection, NULL);
      |                       ^~~~~~~~~~~~~~
button.c: At top level:
button.c:1812:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1812 | DisownSelection(termw)
      | ^~~~~~~~~~~~~~~
button.c: In function 'SaveText':
button.c:1887:20: warning: implicit declaration of function 'ScrnGetAttributes' [-Wimplicit-function-declaration]
 1887 |                 if(ScrnGetAttributes(screen, row + screen->topline, 0, &attr, 1) == 1) {
      |                    ^~~~~~~~~~~~~~~~~
--- data.o ---
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from data.c:29:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
--- input.o ---
cc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -DKTERM -DSTATUSLINE -DKEEPALIVE  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c input.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from input.c:31:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
input.c: In function 'AdjustAfterInput':
input.c:50:17: warning: implicit declaration of function 'WindowScroll' [-Wimplicit-function-declaration]
   50 |                 WindowScroll(screen, 0);
      |                 ^~~~~~~~~~~~
input.c:56:33: warning: implicit declaration of function 'Bell'; did you mean 'XBell'? [-Wimplicit-function-declaration]
   56 |                                 Bell(XkbBI_MarginBell,0);
      |                                 ^~~~
      |                                 XBell
input.c: In function 'Input':
input.c:90:22: warning: implicit declaration of function 'XmuLookupKana'; did you mean 'XLookupNone'? [-Wimplicit-function-declaration]
   90 |             nbytes = XmuLookupKana (event, strbuf, STRBUFSIZE,
      |                      ^~~~~~~~~~~~~
      |                      XLookupNone
input.c:120:17: warning: implicit declaration of function 'unparseseq' [-Wimplicit-function-declaration]
  120 |                 unparseseq(&reply, pty);
      |                 ^~~~~~~~~~
input.c:121:17: warning: implicit declaration of function 'unparseputc' [-Wimplicit-function-declaration]
  121 |                 unparseputc((char)(keysym-XK_KP_F1+'P'), pty);
      |                 ^~~~~~~~~~~
input.c: At top level:
input.c:231:1: warning: return type defaults to 'int' [-Wimplicit-int]
  231 | StringInput (screen, string, nbytes)
      | ^~~~~~~~~~~
--- main.o ---
rm -f main.o
cc -c -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/pkg/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -DKTERM -DSTATUSLINE -DKEEPALIVE  -DUTMP -DUSE_TTY_GROUP  		  -DOSMAJORVERSION=5 		  -DOSMINORVERSION=14 main.c
In file included from /usr/include/sys/types.h:25,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Xlib.h:38,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:53,
                 from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from main.c:71:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
main.c:1187:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1187 | main (argc, argv)
      | ^~~~
main.c: In function 'main':
main.c:1225:25: error: 'ICRNL' undeclared (first use in this function)
 1225 |         d_tio.c_iflag = ICRNL|IXON;
      |                         ^~~~~
main.c:1225:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:1225:31: error: 'IXON' undeclared (first use in this function)
 1225 |         d_tio.c_iflag = ICRNL|IXON;
      |                               ^~~~
main.c:1226:25: error: 'OPOST' undeclared (first use in this function)
 1226 |         d_tio.c_oflag = OPOST;
      |                         ^~~~~
main.c:1282:25: error: 'B9600' undeclared (first use in this function)
 1282 |         d_tio.c_cflag = B9600|CS8|CREAD|PARENB|HUPCL;
      |                         ^~~~~
main.c:1282:31: error: 'CS8' undeclared (first use in this function); did you mean 'CSI'?
 1282 |         d_tio.c_cflag = B9600|CS8|CREAD|PARENB|HUPCL;
      |                               ^~~
      |                               CSI
main.c:1282:35: error: 'CREAD' undeclared (first use in this function)
 1282 |         d_tio.c_cflag = B9600|CS8|CREAD|PARENB|HUPCL;
      |                                   ^~~~~
main.c:1282:41: error: 'PARENB' undeclared (first use in this function)
 1282 |         d_tio.c_cflag = B9600|CS8|CREAD|PARENB|HUPCL;
      |                                         ^~~~~~
main.c:1282:48: error: 'HUPCL' undeclared (first use in this function)
 1282 |         d_tio.c_cflag = B9600|CS8|CREAD|PARENB|HUPCL;
      |                                                ^~~~~
main.c:1289:25: error: 'ISIG' undeclared (first use in this function); did you mean 'NSIG'?
 1289 |         d_tio.c_lflag = ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                         ^~~~
      |                         NSIG
main.c:1289:30: error: 'ICANON' undeclared (first use in this function)
 1289 |         d_tio.c_lflag = ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                              ^~~~~~
main.c:1289:37: error: 'ECHO' undeclared (first use in this function)
 1289 |         d_tio.c_lflag = ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                     ^~~~
main.c:1289:42: error: 'ECHOE' undeclared (first use in this function)
 1289 |         d_tio.c_lflag = ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                          ^~~~~
main.c:1289:48: error: 'ECHOK' undeclared (first use in this function)
 1289 |         d_tio.c_lflag = ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                                ^~~~~
main.c:1307:20: error: 'VINTR' undeclared (first use in this function); did you mean 'EINTR'?
 1307 |         d_tio.c_cc[VINTR] = 'C' & 0x3f;         /* '^C' */
      |                    ^~~~~
      |                    EINTR
main.c:1308:20: error: 'VERASE' undeclared (first use in this function); did you mean 'CERASE'?
 1308 |         d_tio.c_cc[VERASE] = 0x7f;              /* DEL  */
      |                    ^~~~~~
      |                    CERASE
main.c:1309:20: error: 'VKILL' undeclared (first use in this function); did you mean 'CKILL'?
 1309 |         d_tio.c_cc[VKILL] = 'U' & 0x3f;         /* '^U' */
      |                    ^~~~~
      |                    CKILL
main.c:1310:20: error: 'VQUIT' undeclared (first use in this function); did you mean 'CQUIT'?
 1310 |         d_tio.c_cc[VQUIT] = CQUIT;              /* '^\' */
      |                    ^~~~~
      |                    CQUIT
main.c:1311:20: error: 'VEOF' undeclared (first use in this function); did you mean 'EOF'?
 1311 |         d_tio.c_cc[VEOF] = CEOF;                /* '^D' */
      |                    ^~~~
      |                    EOF
main.c:1312:20: error: 'VEOL' undeclared (first use in this function); did you mean 'CEOL'?
 1312 |         d_tio.c_cc[VEOL] = CEOL;                /* '^@' */
      |                    ^~~~
      |                    CEOL
main.c:1313:20: error: 'VMIN' undeclared (first use in this function); did you mean 'CMIN'?
 1313 |         d_tio.c_cc[VMIN] = 1;
      |                    ^~~~
      |                    CMIN
main.c:1314:20: error: 'VTIME' undeclared (first use in this function); did you mean 'ETIME'?
 1314 |         d_tio.c_cc[VTIME] = 0;
      |                    ^~~~~
      |                    ETIME
main.c:1430:27: warning: passing argument 1 of 'XtSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers]
 1430 |         XtSetErrorHandler(xt_error);
      |                           ^~~~~~~~
In file included from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from main.c:71:
/home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:1784:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)()'
 1784 |     XtErrorHandler      /* handler */ _X_NORETURN
main.c:1447:31: warning: passing argument 1 of 'XtSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers]
 1447 |             XtSetErrorHandler(xt_error);
      |                               ^~~~~~~~
In file included from /home/pbulk/build/x11/kterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:35,
                 from main.c:71:
/home/pbulk/build/x11/kterm/work/.buildlink/include/X11/Intrinsic.h:1784:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)()'
 1784 |     XtErrorHandler      /* handler */ _X_NORETURN
main.c:1729:9: warning: implicit declaration of function 'get_terminal' [-Wimplicit-function-declaration]
 1729 |         get_terminal ();
      |         ^~~~~~~~~~~~
main.c:1730:9: warning: implicit declaration of function 'spawn' [-Wimplicit-function-declaration]
 1730 |         spawn ();
      |         ^~~~~
main.c:1752:17: warning: implicit declaration of function 'StartLog' [-Wimplicit-function-declaration]
 1752 |                 StartLog(screen);
      |                 ^~~~~~~~
main.c:1779:17: warning: implicit declaration of function 'Error'; did you mean 'xerror'? [-Wimplicit-function-declaration]
 1779 |                 Error();
      |                 ^~~~~
      |                 xerror
main.c:1814:25: warning: implicit declaration of function 'VTRun' [-Wimplicit-function-declaration]
 1814 |                         VTRun();
      |                         ^~~~~
main.c: At top level:
main.c:1834:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1834 | get_pty (pty)
      | ^~~~~~~
main.c: In function 'get_pty':
main.c:1935:16: warning: implicit declaration of function 'pty_search'; did you mean 'bsearch'? [-Wimplicit-function-declaration]
 1935 |         return pty_search(pty);
      |                ^~~~~~~~~~
      |                bsearch
main.c: At top level:
main.c:2002:1: warning: return type defaults to 'int' [-Wimplicit-int]
 2002 | get_terminal ()
      | ^~~~~~~~~~~~
main.c:2153:1: warning: return type defaults to 'int' [-Wimplicit-int]
 2153 | spawn ()
      | ^~~~~
main.c: In function 'spawn':
main.c:2300:29: warning: implicit declaration of function 'SysError'; did you mean 'HsSysError'? [-Wimplicit-function-declaration]
 2300 |                             SysError(ERROR_OPDEVTTY);
      |                             ^~~~~~~~
      |                             HsSysError
main.c:2382:13: warning: implicit declaration of function 'VTInit' [-Wimplicit-function-declaration]
 2382 |             VTInit();           /* realize now so know window size for tty driver */
      |             ^~~~~~
main.c:2416:17: warning: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration]
 2416 |             if (tgetent (ptr, resource.term_name) == 1) {
      |                 ^~~~~~~
      |                 getenv
main.c:2421:21: warning: implicit declaration of function 'resize'; did you mean 'dysize'? [-Wimplicit-function-declaration]
 2421 |                     resize (screen, TermName, termcap, newtc);
      |                     ^~~~~~
      |                     dysize
main.c:2711:36: error: 'ECHOE' undeclared (first use in this function)
 2711 |                     tio.c_lflag |= ECHOE;
      |                                    ^~~~~
main.c:2717:38: error: 'INLCR' undeclared (first use in this function)
 2717 |                     tio.c_iflag &= ~(INLCR|IGNCR);
      |                                      ^~~~~
main.c:2717:44: error: 'IGNCR' undeclared (first use in this function)
 2717 |                     tio.c_iflag &= ~(INLCR|IGNCR);
      |                                            ^~~~~
main.c:2718:36: error: 'ICRNL' undeclared (first use in this function)
 2718 |                     tio.c_iflag |= ICRNL;
      |                                    ^~~~~
main.c:2722:24: error: 'OCRNL' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                        ^~~~~
main.c:2722:30: error: 'ONLRET' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                              ^~~~~~
main.c:2722:37: error: 'NLDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                     ^~~~~
main.c:2722:43: error: 'CRDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                           ^~~~~
main.c:2722:49: error: 'TABDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                                 ^~~~~~
main.c:2722:56: error: 'BSDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                                        ^~~~~
main.c:2722:62: error: 'VTDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                                              ^~~~~
main.c:2722:68: error: 'FFDLY' undeclared (first use in this function)
 2722 |                      ~(OCRNL|ONLRET|NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
      |                                                                    ^~~~~
main.c:2736:38: error: 'CBAUD' undeclared (first use in this function)
 2736 |                     tio.c_cflag &= ~(CBAUD);
      |                                      ^~~~~
main.c:2737:36: error: 'B9600' undeclared (first use in this function)
 2737 |                     tio.c_cflag |= B9600;
      |                                    ^~~~~
main.c:2746:37: error: 'CSIZE' undeclared (first use in this function); did you mean 'CSI'?
 2746 |                     tio.c_cflag &= ~CSIZE;
      |                                     ^~~~~
      |                                     CSI
main.c:2748:40: error: 'CS8' undeclared (first use in this function); did you mean 'CSI'?
 2748 |                         tio.c_cflag |= CS8;
      |                                        ^~~
      |                                        CSI
main.c:2750:40: error: 'CS7' undeclared (first use in this function); did you mean 'CSI'?
 2750 |                         tio.c_cflag |= CS7;
      |                                        ^~~
      |                                        CSI
main.c:2754:36: error: 'ISIG' undeclared (first use in this function); did you mean 'NSIG'?
 2754 |                     tio.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                    ^~~~
      |                                    NSIG
main.c:2754:41: error: 'ICANON' undeclared (first use in this function)
 2754 |                     tio.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                         ^~~~~~
main.c:2754:48: error: 'ECHO' undeclared (first use in this function)
 2754 |                     tio.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                                ^~~~
main.c:2754:59: error: 'ECHOK' undeclared (first use in this function)
 2754 |                     tio.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK;
      |                                                           ^~~~~
main.c:2762:30: error: 'VEOL' undeclared (first use in this function); did you mean 'CEOL'?
 2762 |                     tio.c_cc[VEOL] = CEOL;                      /* '^@' */
      |                              ^~~~
      |                              CEOL
main.c:2764:30: error: 'VEOF' undeclared (first use in this function); did you mean 'EOF'?
 2764 |                     tio.c_cc[VEOF] = CEOF;                      /* '^D' */
      |                              ^~~~
      |                              EOF
main.c:2798:56: error: 'VINTR' undeclared (first use in this function); did you mean 'EINTR'?
 2798 |                         TMODE (XTTYMODE_intr, tio.c_cc[VINTR]);
      |                                                        ^~~~~
main.c:2795:50: note: in definition of macro 'TMODE'
 2795 | #define TMODE(ind,var) if (ttymodelist[ind].set) var = ttymodelist[ind].value;
      |                                                  ^~~
main.c:2799:56: error: 'VQUIT' undeclared (first use in this function); did you mean 'CQUIT'?
 2799 |                         TMODE (XTTYMODE_quit, tio.c_cc[VQUIT]);
      |                                                        ^~~~~
main.c:2795:50: note: in definition of macro 'TMODE'
 2795 | #define TMODE(ind,var) if (ttymodelist[ind].set) var = ttymodelist[ind].value;
      |                                                  ^~~
main.c:2800:57: error: 'VERASE' undeclared (first use in this function); did you mean 'CERASE'?
 2800 |                         TMODE (XTTYMODE_erase, tio.c_cc[VERASE]);
      |                                                         ^~~~~~
main.c:2795:50: note: in definition of macro 'TMODE'
 2795 | #define TMODE(ind,var) if (ttymodelist[ind].set) var = ttymodelist[ind].value;
      |                                                  ^~~
main.c:2801:56: error: 'VKILL' undeclared (first use in this function); did you mean 'CKILL'?
 2801 |                         TMODE (XTTYMODE_kill, tio.c_cc[VKILL]);
      |                                                        ^~~~~
main.c:2795:50: note: in definition of macro 'TMODE'
 2795 | #define TMODE(ind,var) if (ttymodelist[ind].set) var = ttymodelist[ind].value;
      |                                                  ^~~
main.c:3014:17: warning: implicit declaration of function 'Setenv'; did you mean 'setenv'? [-Wimplicit-function-declaration]
 3014 |                 Setenv ("TERM=", TermName);
      |                 ^~~~~~
      |                 setenv
main.c:3265:19: warning: implicit declaration of function 'initgroups' [-Wimplicit-function-declaration]
 3265 |                   initgroups (pw->pw_name, pw->pw_gid);
      |                   ^~~~~~~~~~
In file included from main.c:2677:
/usr/include/grp.h:197:12: note: previous declaration of 'initgroups' with type 'int(const char *, __gid_t)' {aka 'int(const char *, unsigned int)'}
  197 | extern int initgroups (const char *__user, __gid_t __group);
      |            ^~~~~~~~~~
main.c:3336:21: warning: implicit declaration of function 'remove_termcap_entry' [-Wimplicit-function-declaration]
 3336 |                     remove_termcap_entry (newtc, ":ti=");
      |                     ^~~~~~~~~~~~~~~~~~~~
main.c: In function 'Exit':
main.c:3660:17: warning: implicit declaration of function 'CloseLog' [-Wimplicit-function-declaration]
 3660 |                 CloseLog(screen);
      |                 ^~~~~~~~
main.c: At top level:
main.c:3681:1: warning: return type defaults to 'int' [-Wimplicit-int]
 3681 | resize(screen, TermName, oldtc, newtc)
      | ^~~~~~
main.c: In function 'reapchild':
main.c:3769:13: warning: implicit declaration of function 'Cleanup'; did you mean 'SmsCleanUp'? [-Wimplicit-function-declaration]
 3769 |             Cleanup (0);
      |             ^~~~~~~
      |             SmsCleanUp
main.c: At top level:
main.c:3777:1: warning: return type defaults to 'int' [-Wimplicit-int]
 3777 | consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9)
      | ^~~~~~~~~
main.c: In function 'consolepr':
main.c:3777:1: warning: type of 'x0' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x1' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x2' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x3' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x4' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x5' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x6' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x7' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x8' defaults to 'int' [-Wimplicit-int]
main.c:3777:1: warning: type of 'x9' defaults to 'int' [-Wimplicit-int]
main.c: At top level:
main.c:3803:1: warning: return type defaults to 'int' [-Wimplicit-int]
 3803 | remove_termcap_entry (buf, str)
      | ^~~~~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:1747:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 1747 |             write (screen->respond, buf, strlen (buf));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'HsSysError':
main.c:2116:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 2116 |         write(pf, (char *) &handshake, sizeof(handshake));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'first_map_occurred':
main.c:2128:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 2128 |     write (pc_pipe[1], (char *) &handshake, sizeof(handshake));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'spawn':
main.c:2250:17: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result]
 2250 |                 setgid (screen->gid);
      |                 ^~~~~~~~~~~~~~~~~~~~
main.c:2251:17: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result]
 2251 |                 setuid (screen->uid);
      |                 ^~~~~~~~~~~~~~~~~~~~
main.c:2637:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 2637 |                         write(cp_pipe[1], (char *) &handshake,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2638 |                             sizeof(handshake));
      |                             ~~~~~~~~~~~~~~~~~~
main.c:2681:25: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
 2681 |                         chown (ttydev, screen->uid, ttygrp->gr_gid);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:2686:25: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
 2686 |                         chown (ttydev, screen->uid, screen->gid);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3052:36: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result]
 3052 |                             (void) dup(tty);
      |                                    ^~~~~~~~
main.c:3177:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3177 |                     write(i, (char *)&utmp, sizeof(struct utmp));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3258:23: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3258 |                 (void)write(cp_pipe[1], (char *)&handshake, sizeof(handshake));
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3262:24: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result]
 3262 |                 (void) setgid (screen->gid);
      |                        ^~~~~~~~~~~~~~~~~~~~
main.c:3267:24: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result]
 3267 |                 (void) setuid (screen->uid);
      |                        ^~~~~~~~~~~~~~~~~~~~
main.c:3281:23: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3281 |                 (void)write(cp_pipe[1], (char *)&handshake, sizeof(handshake));
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3467:29: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3467 |                             write(pc_pipe[1], (char *) &handshake, sizeof(handshake));
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3472:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3472 |                         write(pc_pipe[1], (char *) &handshake, sizeof(handshake));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'Exit':
main.c:3665:17: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
 3665 |                 chown (ttydev, 0, 0);
      |                 ^~~~~~~~~~~~~~~~~~~~
main.c:3667:17: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
 3667 |                 chown (ptydev, 0, 0);
      |                 ^~~~~~~~~~~~~~~~~~~~
main.c: In function 'consolepr':
main.c:3792:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 3792 |         write(f, buf, strlen(buf));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
*** [main.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/x11/kterm/work/kterm-6.2.0
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/x11/kterm/work/kterm-6.2.0
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/x11/kterm
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/x11/kterm