=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for hanterm-3.1.6nb6
rm -f main.o
clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp     -I/opt/pkg/include    -D__aarch64__ -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED       -DALLOWLOGFILEONOFF -DUTMP -DUSE_TTY_GROUP                    -DOSMAJORVERSION=23                   -DOSMINORVERSION=5 -DENV_HANGUL_KEYBOARD_TYPE main.c
main.c:964:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    "DeleteWindow", DeleteWindow,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {                           }
main.c:965:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    "KeyboardMapping", KeyboardMapping,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {                                 }
main.c:1283:25: warning: '/*' within block comment [-Wcomment]
              /* break; /* by ysyun */
                        ^
main.c:1535: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:1558:6: warning: implicit declaration of function 'VTRun' is invalid in C99 [-Wimplicit-function-declaration]
            VTRun();
            ^
main.c:976:15: warning: unused variable 'i' [-Wunused-variable]
        register int i, pty;
                     ^
main.c:1676:9: warning: implicit declaration of function 'pty_search' is invalid in C99 [-Wimplicit-function-declaration]
        return pty_search(pty);
               ^
main.c:1943:16: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
        struct utmp utmp;
               ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:2017:8: warning: implicit declaration of function 'SysError' is invalid in C99 [-Wimplicit-function-declaration]
                            SysError(ERROR_OPDEVTTY);
                            ^
main.c:2089: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:2125:10: warning: implicit declaration of function 'tgetent' is invalid in C99 [-Wimplicit-function-declaration]
            if (tgetent (ptr, resource.term_name) == 1) {
                ^
main.c:2151:6: warning: implicit declaration of function 'tgetent' is invalid in C99 [-Wimplicit-function-declaration]
                if(tgetent(ptr, *envnew) == 1) {
                   ^
main.c:2185:3: warning: implicit declaration of function 'SysError' is invalid in C99 [-Wimplicit-function-declaration]
                SysError (ERROR_FORK);
                ^
main.c:2346:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if (ptr = ttyname(tty))
                    ~~~~^~~~~~~~~~~~~~
main.c:2346:11: note: place parentheses around the assignment to silence this warning
                if (ptr = ttyname(tty))
                        ^
                    (                 )
main.c:2346:11: note: use '==' to turn this assignment into an equality comparison
                if (ptr = ttyname(tty))
                        ^
                        ==
main.c:2689:11: error: too many arguments to function call, expected 0, have 2
                setpgrp(0,0);
                ~~~~~~~ ^~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here
pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);
         ^
main.c:2691:12: error: too many arguments to function call, expected 0, have 2
                setpgrp (0, pgrp);
                ~~~~~~~  ^~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here
pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);
         ^
main.c:2793:47: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                                memset((char *)&utmp, '\0', sizeof(struct utmp));
                                                                          ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:2805:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                                lseek(i, (long)(tslot * sizeof(struct utmp)), 0);
                                                                      ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:2806:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                                write(i, (char *)&utmp, sizeof(struct utmp));
                                                                      ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:2982:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if(shname = rindex(ptr, '/'))
                   ~~~~~~~^~~~~~~~~~~~~~~~~~
main.c:2982:13: note: place parentheses around the assignment to silence this warning
                if(shname = rindex(ptr, '/'))
                          ^
                   (                        )
main.c:2982:13: note: use '==' to turn this assignment into an equality comparison
                if(shname = rindex(ptr, '/'))
                          ^
                          ==
main.c:2990:11: warning: implicit declaration of function 'XStrCmp' is invalid in C99 [-Wimplicit-function-declaration]
                ldisc = XStrCmp("csh", shname + strlen(shname) - 3) == 0 ?
                        ^
main.c:3204:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
        struct utmp utmp;
               ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:3208:45: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                memset((char *)&utmp, '\0', sizeof(struct utmp));
                                                          ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:3209:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                lseek(wfd, (long)(tslot * sizeof(struct utmp)), 0);
                                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:3210:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
                write(wfd, (char *)&utmp, sizeof(struct utmp));
                                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here
}                                       __deprecated;
                                        ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
main.c:3203:15: warning: unused variable 'i' [-Wunused-variable]
        register int i;
                     ^
main.c:3309:22: warning: incompatible pointer types passing 'union wait *' to parameter of type 'int *' [-Wincompatible-pointer-types]
        pid = wait3 (&status, WNOHANG, (struct rusage *)NULL);
                     ^~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/wait.h:254:20: note: passing argument to parameter here
pid_t   wait3(int *, int, struct rusage *);
                   ^
main.c:3333:13: warning: implicit declaration of function 'Cleanup' is invalid in C99 [-Wimplicit-function-declaration]
            Cleanup (0);
            ^
26 warnings and 2 errors generated.
*** [main.o] Error code 1

bmake: stopped in /Users/pbulk/build/x11/hanterm/work/hanterm-3.1.6
1 error

bmake: stopped in /Users/pbulk/build/x11/hanterm/work/hanterm-3.1.6
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/hanterm
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/hanterm