=> Bootstrap dependency digest>=20010302: found digest-20121220
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for hanterm-3.1.6nb5
--- main.o ---
--- input.o ---
--- charproc.o ---
--- cursor.o ---
--- main.o ---
rm -f main.o
--- input.o ---
gcc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -I/usr/pkg/include -c input.c
--- charproc.o ---
rm -f charproc.o
--- cursor.o ---
gcc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -I/usr/pkg/include -c cursor.c
--- main.o ---
gcc -c -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -DUTMP -DUSE_TTY_GROUP                    -DOSMAJORVERSION=6                   -DOSMINORVERSION=99 -DENV_HANGUL_KEYBOARD_TYPE main.c
--- charproc.o ---
gcc -c -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -DUTMP -DUSE_TTY_GROUP                    -DOSMAJORVERSION=6                   -DOSMINORVERSION=99 -DENV_HANGUL_KEYBOARD_TYPE charproc.c
--- input.o ---
input.c:160:6: warning: implicit declaration of function 'chat_mode_input' is invalid in C99 [-Wimplicit-function-declaration]
            chat_mode_input(keysym, event, string, nbytes);
            ^
input.c:163:6: warning: implicit declaration of function 'hanja_mode_input' is invalid in C99 [-Wimplicit-function-declaration]
            hanja_mode_input(keysym, event, string, nbytes);
            ^
input.c:166:3: warning: implicit declaration of function 'unparseseq' is invalid in C99 [-Wimplicit-function-declaration]
                unparseseq(&reply, pty);
                ^
input.c:167:3: warning: implicit declaration of function 'unparseputc' is invalid in C99 [-Wimplicit-function-declaration]
                unparseputc((char)(keysym-XK_KP_F1+'P'), pty);
                ^
--- cursor.o ---
cursor.c:44:2: warning: implicit declaration of function 'DisownSelection' is invalid in C99 [-Wimplicit-function-declaration]
        DisownSelection(term);
        ^
cursor.c:54:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorSet(screen, row, col, flags)
^~~~~~~~~
cursor.c:72:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:77:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorBack(screen, n)
^~~~~~~~~~
cursor.c:101:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:106:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorForward(screen, n)
^~~~~~~~~~~~~
cursor.c:115:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:121:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorDown(screen, n)
^~~~~~~~~~
cursor.c:135:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:141:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorUp(screen, n)
^~~~~~~~
cursor.c:155:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:206:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CarriageReturn(screen)
^~~~~~~~~~~~~~
cursor.c:212:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:217:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorSave(term, sc)
^~~~~~~~~~
cursor.c:236:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cursor.c:241:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
CursorRestore(term, sc)
^~~~~~~~~~~~~
cursor.c:262:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
17 warnings generated.
--- util.o ---
gcc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -I/usr/pkg/include -c util.c
--- input.o ---
4 warnings generated.
--- tabs.o ---
gcc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DALLOWLOGFILEONOFF -I/usr/pkg/include -c tabs.c
--- charproc.o ---
charproc.c:86:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration]
extern char *malloc();
             ^
charproc.c:86:14: note: 'malloc' is a builtin with type 'void *(unsigned long)'
charproc.c:87:14: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration]
extern char *realloc();
             ^
charproc.c:87:14: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)'
charproc.c:837:33: warning: implicit declaration of function 'in_put' is invalid in C99 [-Wimplicit-function-declaration]
                switch (parsestate[c = doinput()]) {
                                       ^
charproc.c:279:44: note: expanded from macro 'doinput'
#define doinput()               (bcnt-- > 0 ? *bptr++ : in_put())
                                                        ^
charproc.c:870:3: warning: implicit declaration of function 'CursorBack' is invalid in C99 [-Wimplicit-function-declaration]
                CursorBack(screen, 1);
                ^
charproc.c:969:13: warning: implicit declaration of function 'convert_johab_to_ks' is invalid in C99 [-Wimplicit-function-declaration]
                int ret = convert_johab_to_ks(col - 1, temp_buf, 2);
                          ^
charproc.c:978:3: warning: implicit declaration of function 'CursorForward' is invalid in C99 [-Wimplicit-function-declaration]
                CursorForward(screen, 1);
                ^
charproc.c:1027:16: warning: implicit declaration of function 'adjust_hangul_string' is invalid in C99 [-Wimplicit-function-declaration]
        last_hangul = adjust_hangul_string(bptr, cp - bptr, screen->code);
                      ^
charproc.c:1197:4: warning: implicit declaration of function 'CarriageReturn' is invalid in C99 [-Wimplicit-function-declaration]
                        CarriageReturn(screen);
                        ^
charproc.c:1221:22: warning: implicit declaration of function 'TabNext' is invalid in C99 [-Wimplicit-function-declaration]
                        screen->cur_col = TabNext(term->tabs, screen->cur_col);
                                          ^
charproc.c:1297:4: warning: implicit declaration of function 'CursorUp' is invalid in C99 [-Wimplicit-function-declaration]
                        CursorUp(screen, row);
                        ^
charproc.c:1305:4: warning: implicit declaration of function 'CursorDown' is invalid in C99 [-Wimplicit-function-declaration]
                        CursorDown(screen, row);
                        ^
charproc.c:1331:4: warning: implicit declaration of function 'CursorSet' is invalid in C99 [-Wimplicit-function-declaration]
                        CursorSet(screen, row-1, col-1, term->flags);
                        ^
charproc.c:1426:5: warning: implicit declaration of function 'unparseseq' is invalid in C99 [-Wimplicit-function-declaration]
                                unparseseq(&reply, screen->respond);
                                ^
charproc.c:1434:5: warning: implicit declaration of function 'TabClear' is invalid in C99 [-Wimplicit-function-declaration]
                                TabClear(term->tabs, screen->cur_col);
                                ^
charproc.c:1436:5: warning: implicit declaration of function 'TabZonk' is invalid in C99 [-Wimplicit-function-declaration]
                                TabZonk(term->tabs);
                                ^
charproc.c:1442:4: warning: implicit declaration of function 'ansi_modes' is invalid in C99 [-Wimplicit-function-declaration]
                        ansi_modes(term, bitset);
                        ^
charproc.c:1604:4: warning: implicit declaration of function 'dpmodes' is invalid in C99 [-Wimplicit-function-declaration]
                        dpmodes(term, bitset);
                        ^
charproc.c:1624:4: warning: implicit declaration of function 'ScrnRefresh' is invalid in C99 [-Wimplicit-function-declaration]
                        ScrnRefresh(screen, 0, 0, screen->max_row + 1,
                        ^
charproc.c:1636:4: warning: implicit declaration of function 'CursorSave' is invalid in C99 [-Wimplicit-function-declaration]
                        CursorSave(term, &screen->sc);
                        ^
charproc.c:1642:4: warning: implicit declaration of function 'CursorRestore' is invalid in C99 [-Wimplicit-function-declaration]
                        CursorRestore(term, &screen->sc);
                        ^
charproc.c:1682:4: warning: implicit declaration of function 'TabSet' is invalid in C99 [-Wimplicit-function-declaration]
                        TabSet(term->tabs, screen->cur_col);
                        ^
charproc.c:1713:4: warning: implicit declaration of function 'do_osc' is invalid in C99 [-Wimplicit-function-declaration]
                        do_osc(finput);
                        ^
charproc.c:1754:4: warning: implicit declaration of function 'savemodes' is invalid in C99 [-Wimplicit-function-declaration]
                        savemodes(term);
                        ^
charproc.c:1759:4: warning: implicit declaration of function 'restoremodes' is invalid in C99 [-Wimplicit-function-declaration]
                        restoremodes(term);
                        ^
charproc.c:1769:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static finput()
~~~~~~ ^
charproc.c:1786:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
v_write(f, d, len)
^~~~~~~
charproc.c:1941:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
in_put()
^~~~~~
charproc.c:1955:3: warning: implicit declaration of function 'FlushLog' is invalid in C99 [-Wimplicit-function-declaration]
                FlushLog(screen);
                ^
charproc.c:1984:7: warning: implicit declaration of function 'Cleanup' is invalid in C99 [-Wimplicit-function-declaration]
                    Cleanup (0);
                    ^
charproc.c:1986:7: warning: implicit declaration of function 'Panic' is invalid in C99 [-Wimplicit-function-declaration]
                    Panic(
                    ^
charproc.c:2073:3: warning: implicit declaration of function 'SysError' is invalid in C99 [-Wimplicit-function-declaration]
                SysError(ERROR_SELECT);
                ^
charproc.c:2240:8: warning: implicit declaration of function 'convert_ks_to_johab' is invalid in C99 [-Wimplicit-function-declaration]
        len = convert_ks_to_johab(str, johab_buf, len);
              ^
charproc.c:2243:8: warning: implicit declaration of function 'convert_utf8_to_johab' is invalid in C99 [-Wimplicit-function-declaration]
        len = convert_utf8_to_johab(str, johab_buf, len);
              ^
charproc.c:2291:8: warning: implicit declaration of function 'AddToRefresh' is invalid in C99 [-Wimplicit-function-declaration]
        if (!(AddToRefresh(screen))) {
              ^
charproc.c:2296:6: warning: implicit declaration of function 'HDrawImageString' is invalid in C99 [-Wimplicit-function-declaration]
            HDrawImageString(screen->display, TextWindow(screen), currentGC,
            ^
charproc.c:2302:7: warning: implicit declaration of function 'HDrawString' is invalid in C99 [-Wimplicit-function-declaration]
                    HDrawString(screen->display, TextWindow(screen),
                    ^
charproc.c:2327:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ansi_modes(termw, func)
^~~~~~~~~~
charproc.c:2345:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2350:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
dpmodes(termw, func)
^~~~~~~
charproc.c:2396:10: warning: implicit declaration of function 'ScreenResize' is invalid in C99 [-Wimplicit-function-declaration]
                                            ScreenResize (&termw->screen,
                                            ^
charproc.c:2498:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2503:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
savemodes(termw)
^~~~~~~~~
charproc.c:2564:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2569:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
restoremodes(termw)
^~~~~~~~~~~~
charproc.c:2694:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2716:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
unparseseq(ap, fd)
^~~~~~~~~~
charproc.c:2726:3: warning: implicit declaration of function 'unparseputc' is invalid in C99 [-Wimplicit-function-declaration]
                unparseputc(ESC, fd);
                ^
charproc.c:2737:4: warning: implicit declaration of function 'unparseputn' is invalid in C99 [-Wimplicit-function-declaration]
                        unparseputn((unsigned int) ap->a_param[i], fd);
                        ^
charproc.c:2747:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2749:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
unparseputn(n, fd)
^~~~~~~~~~~
charproc.c:2759:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2761:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
unparseputc(c, fd)
^~~~~~~~~~~
charproc.c:2766:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
        register i = 1;
        ~~~~~~~~ ^
charproc.c:2769:6: warning: implicit declaration of function 'hangul_automata' is invalid in C99 [-Wimplicit-function-declaration]
        i = hangul_automata(c, buf);
            ^
charproc.c:2777:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2779:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
unparsefputs (s, fd)
^~~~~~~~~~~~
charproc.c:2786:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2826:2: warning: implicit declaration of function 'SwitchBufPtrs' is invalid in C99 [-Wimplicit-function-declaration]
        SwitchBufPtrs(screen);
        ^
charproc.c:2846:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
SwitchBufPtrs(screen)
^~~~~~~~~~~~~
charproc.c:2856:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2858:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
VTRun()
^~~~~
charproc.c:2863:2: warning: implicit declaration of function 'set_vt_visibility' is invalid in C99 [-Wimplicit-function-declaration]
        set_vt_visibility (TRUE);
        ^
charproc.c:2875:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:2890:3: warning: implicit declaration of function 'HandleExposure' is invalid in C99 [-Wimplicit-function-declaration]
                HandleExposure (screen, event);
                ^
charproc.c:3129:4: warning: implicit declaration of function 'set_character_class' is invalid in C99 [-Wimplicit-function-declaration]
   set_character_class (new->screen.charClass);
   ^
charproc.c:3168:2: warning: implicit declaration of function 'TabReset' is invalid in C99 [-Wimplicit-function-declaration]
        TabReset (term->tabs);
        ^
charproc.c:3184:7: warning: implicit declaration of function 'LoadNewFont' is invalid in C99 [-Wimplicit-function-declaration]
        if (!LoadNewFont(screen, term->misc.f_n, term->misc.f_b,
             ^
charproc.c:3188:6: warning: implicit declaration of function 'Exit' is invalid in C99 [-Wimplicit-function-declaration]
            Exit (1);
            ^
charproc.c:3287:2: warning: implicit declaration of function 'set_cursor_gcs' is invalid in C99 [-Wimplicit-function-declaration]
        set_cursor_gcs (screen);
        ^
charproc.c:3317:2: warning: implicit declaration of function 'set_vt_box' is invalid in C99 [-Wimplicit-function-declaration]
        set_vt_box (screen);
        ^
charproc.c:3405:2: warning: implicit declaration of function 'chat_show_cursor' is invalid in C99 [-Wimplicit-function-declaration]
        chat_show_cursor();
        ^
charproc.c:3566:6: warning: implicit declaration of function 'chat_hide_cursor' is invalid in C99 [-Wimplicit-function-declaration]
            chat_hide_cursor();
            ^
charproc.c:3790:17: warning: implicit declaration of function 'SetCharacterClassRange' is invalid in C99 [-Wimplicit-function-declaration]
            } else if (SetCharacterClassRange (low, high, acc) != 0) {
                       ^
charproc.c:3862:36: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
    int percent = (*param_count) ? atoi(params[0]) : 0;
                                   ^
charproc.c:4138:5: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
    free(hfont_fullname);
    ^
charproc.c:4330:2: warning: implicit declaration of function 'DoResizeScreen' is invalid in C99 [-Wimplicit-function-declaration]
        DoResizeScreen (term);          /* set to the new natural size */
        ^
charproc.c:4342:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
set_vt_box (screen)
^~~~~~~~~~
charproc.c:4361:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
charproc.c:4496:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
set_cursor_gcs (screen)
^~~~~~~~~~~~~~
charproc.c:4578:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
--- util.o ---
util.c:131:2: warning: implicit declaration of function 'ScrollSelection' is invalid in C99 [-Wimplicit-function-declaration]
        ScrollSelection(screen, -(screen->scroll_amt));
        ^
util.c:143:3: warning: implicit declaration of function 'ScrnRefresh' is invalid in C99 [-Wimplicit-function-declaration]
                ScrnRefresh(screen, refreshtop, 0, refreshheight,
                ^
util.c:268:3: warning: implicit declaration of function 'ScrnDeleteLine' is invalid in C99 [-Wimplicit-function-declaration]
                ScrnDeleteLine(screen->allbuf, screen->bot_marg +
                ^
util.c:344:2: warning: implicit declaration of function 'ScrnInsertLine' is invalid in C99 [-Wimplicit-function-declaration]
        ScrnInsertLine (screen->buf, screen->bot_marg, screen->top_marg,
        ^
util.c:512:7: warning: implicit declaration of function 'non_blank_line' is invalid in C99 [-Wimplicit-function-declaration]
                if (non_blank_line (screen->buf, screen->cur_row, 
                    ^
util.c:530:2: warning: implicit declaration of function 'ScrnInsertChar' is invalid in C99 [-Wimplicit-function-declaration]
        ScrnInsertChar(screen->buf, screen->cur_row, screen->cur_col, n,
        ^
util.c:568:2: warning: implicit declaration of function 'ScrnDeleteChar' is invalid in C99 [-Wimplicit-function-declaration]
        ScrnDeleteChar (screen->buf, screen->cur_row, screen->cur_col, n,
        ^
util.c:579:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
        register top, height;
        ~~~~~~~~ ^
util.c:579:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
        register top, height;
        ~~~~~~~~      ^
util.c:597:2: warning: implicit declaration of function 'ClearBufRows' is invalid in C99 [-Wimplicit-function-declaration]
        ClearBufRows(screen, 0, screen->cur_row - 1);
        ^
util.c:606:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
        register top;
        ~~~~~~~~ ^
util.c:749:4: warning: implicit declaration of function 'HandleExposure' is invalid in C99 [-Wimplicit-function-declaration]
                        HandleExposure (screen, &reply);
                        ^
--- main.o ---
main.c:424:39: error: use of undeclared identifier 'ECHO'
        0, 0, 0177, CKILL, EVENP|ODDP|ECHO|XTABS|CRMOD
                                      ^
--- util.o ---
util.c:871:9: warning: implicit declaration of function 'handle_translated_exposure' is invalid in C99 [-Wimplicit-function-declaration]
        return handle_translated_exposure (screen, reply->x, reply->y,
               ^
util.c:935:3: warning: implicit declaration of function 'show_status' is invalid in C99 [-Wimplicit-function-declaration]
                show_status(screen, leftcol, ncols);
                ^
util.c:936:26: warning: implicit declaration of function 'show_hanja_buf' is invalid in C99 [-Wimplicit-function-declaration]
                if (hanja_mode) show_hanja_buf();
                                ^
--- main.o ---
main.c:821:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static Syntax (badOption)
~~~~~~ ^
main.c:847:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static Version ()
~~~~~~ ^
main.c:853:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static Help ()
~~~~~~ ^
--- util.o ---
util.c:1033:9: warning: implicit declaration of function 'set_cursor_gcs' is invalid in C99 [-Wimplicit-function-declaration]
        set_cursor_gcs(screen);
        ^
--- main.o ---
main.c:965:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main (argc, argv)
^~~~
--- util.o ---
util.c:1089:2: warning: implicit declaration of function 'ReverseOldColors' is invalid in C99 [-Wimplicit-function-declaration]
        ReverseOldColors();
        ^
--- main.o ---
main.c:1277:25: warning: '/*' within block comment [-Wcomment]
              /* break; /* by ysyun */
                        ^
--- util.o ---
util.c:1129:16: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)'
  t1 = (char *)malloc(strlen(s1)+1);
               ^
util.c:1129:16: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
util.c:1137:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
  free(t1);
  ^
--- main.o ---
main.c:1472:2: warning: implicit declaration of function 'get_terminal' is invalid in C99 [-Wimplicit-function-declaration]
        get_terminal ();
        ^
main.c:1529:49: warning: implicit declaration of function 'SysError' is invalid in C99 [-Wimplicit-function-declaration]
        if (ioctl (pty, FIONBIO, (char *)&mode) == -1) SysError (ERROR_FIONBIO);
                                                       ^
main.c:1552:6: warning: implicit declaration of function 'VTRun' is invalid in C99 [-Wimplicit-function-declaration]
            VTRun();
            ^
main.c:1572:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
get_pty (pty)
^~~~~~~
main.c:1669:9: warning: implicit declaration of function 'pty_search' is invalid in C99 [-Wimplicit-function-declaration]
        return pty_search(pty);
               ^
main.c:1736:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
get_terminal ()
^~~~~~~~~~~~
main.c:2081:2: warning: implicit declaration of function 'VTInit' is invalid in C99 [-Wimplicit-function-declaration]
        VTInit();               /* realize now so know window size for tty driver */
        ^
main.c:2117:10: warning: implicit declaration of function 'tgetent' is invalid in C99 [-Wimplicit-function-declaration]
            if (tgetent (ptr, resource.term_name) == 1) {
                ^
main.c:2119:3: warning: implicit declaration of function 'resize' is invalid in C99 [-Wimplicit-function-declaration]
                resize (screen, TermName, termcap, newtc);
                ^
main.c:2338:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if (ptr = ttyname(tty))
                    ~~~~^~~~~~~~~~~~~~
main.c:2338:11: note: place parentheses around the assignment to silence this warning
                if (ptr = ttyname(tty))
                        ^
                    (                 )
main.c:2338:11: note: use '==' to turn this assignment into an equality comparison
                if (ptr = ttyname(tty))
                        ^
                        ==
main.c:2522:22: error: use of undeclared identifier 'ECHO'
                    sg.sg_flags |= ECHO | CRMOD;
                                   ^
main.c:2974:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if(shname = rindex(ptr, '/'))
                   ~~~~~~~^~~~~~~~~~~~~~~~~~
main.c:2974:13: note: place parentheses around the assignment to silence this warning
                if(shname = rindex(ptr, '/'))
                          ^
                   (                        )
main.c:2974:13: note: use '==' to turn this assignment into an equality comparison
                if(shname = rindex(ptr, '/'))
                          ^
                          ==
main.c:2982:11: warning: implicit declaration of function 'XStrCmp' is invalid in C99 [-Wimplicit-function-declaration]
                ldisc = XStrCmp("csh", shname + strlen(shname) - 3) == 0 ?
                        ^
main.c:3241:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
resize(screen, TermName, oldtc, newtc)
^~~~~~
main.c:3303:22: warning: incompatible pointer types passing 'union wait *' to parameter of type 'int *' [-Wincompatible-pointer-types]
        pid = wait3 (&status, WNOHANG, (struct rusage *)NULL);
                     ^~~~~~~
/usr/include/sys/wait.h:179:18: note: passing argument to parameter here
pid_t   wait3(int *, int, struct rusage *) __RENAME(__wait350);
                   ^
main.c:3327:13: warning: implicit declaration of function 'Cleanup' is invalid in C99 [-Wimplicit-function-declaration]
            Cleanup (0);
            ^
main.c:3335:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9)
^~~~~~~~~
21 warnings and 2 errors generated.
*** [main.o] Error code 1

make: stopped in /scratch/x11/hanterm/work/hanterm-3.1.6
--- util.o ---
19 warnings generated.
--- tabs.o ---
tabs.c:41:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
TabReset(tabs)
^~~~~~~~
tabs.c:50:3: warning: implicit declaration of function 'TabSet' is invalid in C99 [-Wimplicit-function-declaration]
                TabSet(tabs, i);
                ^
tabs.c:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}       
^
tabs.c:57:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
TabSet(tabs, col)
^~~~~~
tabs.c:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tabs.c:67:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
TabClear(tabs, col)
^~~~~~~~
tabs.c:72:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tabs.c:79:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
TabNext (tabs, col)
^~~~~~~
tabs.c:100:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
TabZonk (tabs)
^~~~~~~
tabs.c:107:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
10 warnings generated.
--- charproc.o ---
80 warnings generated.
1 error

make: stopped in /scratch/x11/hanterm/work/hanterm-3.1.6
*** Error code 2

Stop.
make: stopped in /data/pkgsrc/x11/hanterm
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/x11/hanterm
