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=6 -DENV_HANGUL_KEYBOARD_TYPE main.c main.c:819:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int abbrev (tst, cmp) ^ main.c:826:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void Syntax (badOption) ^ main.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ConvertConsoleSelection(w, selection, target, type, value, length, format) ^ main.c:945:14: warning: passing arguments to 'do_hangup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_hangup(w); ^ main.c:939:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DeleteWindow(w, event, params, num_params) ^ main.c:950:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] KeyboardMapping(w, event, params, num_params) ^ 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:1239:30: warning: passing arguments to 'parse_tty_modes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int n = parse_tty_modes (resource.tty_modes, ttymodelist); ^ main.c:1283:25: warning: '/*' within block comment [-Wcomment] /* break; /* by ysyun */ ^ main.c:1426:34: warning: passing arguments to 'base_name' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resource.title = base_name (command_to_exec[0]); ^ main.c:1498:11: warning: passing arguments to 'StartLog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartLog(screen); ^ main.c:1535:49: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (ioctl (pty, FIONBIO, (char *)&mode) == -1) SysError (ERROR_FIONBIO); ^ main.c:1558:6: warning: call to undeclared function 'VTRun'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] VTRun(); ^ main.c:976:15: warning: unused variable 'i' [-Wunused-variable] register int i, pty; ^ main.c:971:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main (argc, argv) ^ main.c:1562:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *base_name(name) ^ main.c:1676:9: warning: call to undeclared function 'pty_search'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return pty_search(pty); ^ main.c:1579:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_pty (pty) ^ main.c:1690:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int pty_search(pty) ^ main.c:1751:38: warning: passing arguments to 'make_colored_cursor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] screen->arrow = make_colored_cursor (XC_left_ptr, ^ main.c:1776:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SIGNAL_T hungtty(i) ^ main.c:1820:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HsSysError(pf, error) ^ main.c:1943:16: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp utmp; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:2017:8: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SysError(ERROR_OPDEVTTY); ^ main.c:2089:2: warning: call to undeclared function 'VTInit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] VTInit(); /* realize now so know window size for tty driver */ ^ main.c:2125:10: warning: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (tgetent (ptr, resource.term_name) == 1) { ^ main.c:2151:6: warning: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(tgetent(ptr, *envnew) == 1) { ^ main.c:2161:8: warning: passing arguments to 'Exit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Exit (1); ^ main.c:2185:3: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-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:2636:10: warning: passing arguments to 'Setenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setenv ("TERM=", TermName); ^ main.c:2646:10: warning: passing arguments to 'Setenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setenv ("WINDOWID=", buf); ^ main.c:2648:10: warning: passing arguments to 'Setenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setenv ("DISPLAY=", XDisplayString (screen->display)); ^ main.c:2689:11: error: too many arguments to function call, expected 0, have 2 setpgrp(0,0); ~~~~~~~ ^~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here pid_t setpgrp(void) __DARWIN_ALIAS(setpgrp); ^ main.c:2697:14: warning: passing arguments to 'Setenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setenv ("LOGNAME=", pw->pw_name); /* for POSIX */ ^ main.c:2793:47: warning: 'utmp' is deprecated [-Wdeprecated-declarations] memset((char *)&utmp, '\0', sizeof(struct utmp)); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214: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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214: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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:2943:10: warning: passing arguments to 'Setenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setenv ("TERMCAP=", newtc); ^ 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: call to undeclared function 'XStrCmp'; ISO C99 and later do not support implicit function declarations [-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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214: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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214: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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214: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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3228:11: warning: passing arguments to 'CloseLog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CloseLog(screen); ^ main.c:3203:15: warning: unused variable 'i' [-Wunused-variable] register int i; ^ main.c:3140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Exit(n) ^ main.c:353:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] SIGNAL_T Exit(); ^ main.c:3258:23: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((ptr1 = strindex (oldtc, "co#")) == NULL){ ^ main.c:3260:19: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ptr1 = strindex (oldtc, "co#"); ^ main.c:3262:23: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((ptr2 = strindex (oldtc, "li#")) == NULL){ ^ main.c:3264:19: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ptr2 = strindex (oldtc, "li#"); ^ 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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.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: call to undeclared function 'Cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Cleanup (0); ^ main.c:3317:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static SIGNAL_T reapchild (n) ^ main.c:401:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static SIGNAL_T reapchild (); ^ main.c:3356:27: warning: passing arguments to 'SysErrorMsg' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcat(buf, SysErrorMsg (oerrno)); ^ main.c:3375:25: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strinbuf = strindex (buf, str); ^ main.c:3399:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int parse_tty_modes (s, modelist) ^ main.c:484:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int parse_tty_modes (); ^ main.c:3435:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBytesAvailable (fd) ^ In file included from main.c:52: ./ptyx.h:537:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern int GetBytesAvailable(); ^ main.c:3455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kill_process_group(pid, sig) ^ In file included from main.c:52: ./ptyx.h:539:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern int kill_process_group(); ^ 65 warnings and 2 errors generated. *** [main.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/x11/hanterm/work/hanterm-3.1.6 bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/x11/hanterm/work/hanterm-3.1.6 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/hanterm *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/hanterm