=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/x11/hanterm", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for hanterm-3.1.6nb6 --- main.o --- --- input.o --- --- main.o --- rm -f main.o --- input.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DALLOWLOGFILEONOFF -I/opt/pkg/include -c input.c --- main.o --- gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DALLOWLOGFILEONOFF -DUTMP -DUSE_TTY_GROUP -DOSMAJORVERSION=5 -DOSMINORVERSION=11 -DENV_HANGUL_KEYBOARD_TYPE main.c --- input.o --- input.c: In function 'AdjustAfterInput': input.c:53:1: warning: old-style function definition [-Wold-style-definition] 53 | AdjustAfterInput (screen) | ^~~~~~~~~~~~~~~~ input.c:57:17: error: too many arguments to function 'WindowScroll'; expected 0, have 2 57 | WindowScroll(screen, 0); | ^~~~~~~~~~~~ ~~~~~~ input.c:47:13: note: declared here 47 | extern void WindowScroll(); | ^~~~~~~~~~~~ input.c: In function 'IsEditFunctionKey': input.c:75:16: warning: old-style function definition [-Wold-style-definition] 75 | static Boolean IsEditFunctionKey(keysym) | ^~~~~~~~~~~~~~~~~ input.c: In function 'Input': input.c:97:6: warning: old-style function definition [-Wold-style-definition] 97 | void Input (keyboard, screen, event, eightbit) | ^~~~~ input.c:160:13: error: implicit declaration of function 'chat_mode_input' [-Wimplicit-function-declaration] 160 | chat_mode_input(keysym, event, string, nbytes); | ^~~~~~~~~~~~~~~ input.c:163:13: error: implicit declaration of function 'hanja_mode_input' [-Wimplicit-function-declaration] 163 | hanja_mode_input(keysym, event, string, nbytes); | ^~~~~~~~~~~~~~~~ input.c:187:40: error: too many arguments to function 'sunfuncvalue'; expected 0, have 1 187 | reply.a_param[0] = sunfuncvalue (keysym); | ^~~~~~~~~~~~ ~~~~~~ input.c:45:25: note: declared here 45 | static int funcvalue(), sunfuncvalue(); | ^~~~~~~~~~~~ input.c:190:40: error: too many arguments to function 'funcvalue'; expected 0, have 1 190 | reply.a_param[0] = funcvalue (keysym); | ^~~~~~~~~ ~~~~~~ input.c:45:12: note: declared here 45 | static int funcvalue(), sunfuncvalue(); | ^~~~~~~~~ input.c: In function 'StringInput': input.c:220:6: warning: old-style function definition [-Wold-style-definition] 220 | void StringInput (screen, string, nbytes) | ^~~~~~~~~~~ input.c: In function 'funcvalue': input.c:232:12: warning: old-style function definition [-Wold-style-definition] 232 | static int funcvalue (keycode) | ^~~~~~~~~ input.c: In function 'sunfuncvalue': input.c:279:12: warning: old-style function definition [-Wold-style-definition] 279 | static int sunfuncvalue (keycode) | ^~~~~~~~~~~~ --- main.o --- In file included from /usr/include/termio.h:29, from /usr/include/curses.h:73, from main.c:385: /usr/include/sys/termio.h:47:1: error: redefinition of struct or union 'struct termios' 47 | }; | ^ In file included from /usr/include/termios.h:29, from main.c:66: /usr/include/sys/termios.h:88:8: note: originally defined here 88 | struct termios { | ^~~~~~~ /usr/include/curses.h:100:14: error: 'bool' cannot be defined via 'typedef' 100 | typedef char bool; | ^~~~ /usr/include/curses.h:100:14: note: 'bool' is a keyword with '-std=c23' onwards --- input.o --- *** [input.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/x11/hanterm/work/hanterm-3.1.6 --- main.o --- main.c:390:14: error: conflicting types for 'ptsname'; have 'char *(void)' 390 | extern char *ptsname(); | ^~~~~~~ In file included from main.c:367: /usr/include/stdlib.h:239:14: note: previous declaration of 'ptsname' with type 'char *(int)' 239 | extern char *ptsname(int); | ^~~~~~~ main.c:550:23: error: conflicting types for 'fgetpwent'; have 'struct passwd *(void)' 550 | extern struct passwd *fgetpwent(); | ^~~~~~~~~ In file included from main.c:64: /usr/include/pwd.h:75:23: note: previous declaration of 'fgetpwent' with type 'struct passwd *(FILE *)' 75 | extern struct passwd *fgetpwent(FILE *); /* MT-unsafe */ | ^~~~~~~~~ main.c: In function 'abbrev': main.c:819:12: warning: old-style function definition [-Wold-style-definition] 819 | static int abbrev (tst, cmp) | ^~~~~~ main.c: In function 'Syntax': main.c:826:13: warning: old-style function definition [-Wold-style-definition] 826 | static void Syntax (badOption) | ^~~~~~ main.c: In function 'ConvertConsoleSelection': main.c:884:1: warning: old-style function definition [-Wold-style-definition] 884 | ConvertConsoleSelection(w, selection, target, type, value, length, format) | ^~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'DeleteWindow': main.c:939:1: warning: old-style function definition [-Wold-style-definition] 939 | DeleteWindow(w, event, params, num_params) | ^~~~~~~~~~~~ main.c:945:5: error: too many arguments to function 'do_hangup'; expected 0, have 1 945 | do_hangup(w); | ^~~~~~~~~ ~ main.c:931:13: note: declared here 931 | extern void do_hangup(); | ^~~~~~~~~ main.c: In function 'KeyboardMapping': main.c:950:1: warning: old-style function definition [-Wold-style-definition] 950 | KeyboardMapping(w, event, params, num_params) | ^~~~~~~~~~~~~~~ main.c: In function 'main': main.c:971:1: warning: old-style function definition [-Wold-style-definition] 971 | main (argc, argv) | ^~~~ main.c:1192:27: error: passing argument 1 of 'XtSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 1192 | XtSetErrorHandler(xt_error); | ^~~~~~~~ | | | void (*)(void) In file included from /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/IntrinsicP.h:51, from ptyx.h:31, from main.c:52: /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Intrinsic.h:1784:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)(void)' 1784 | XtErrorHandler /* handler */ _X_NORETURN main.c:932:13: note: 'xt_error' declared here 932 | extern void xt_error(); | ^~~~~~~~ main.c:1239:21: error: too many arguments to function 'parse_tty_modes'; expected 0, have 2 1239 | int n = parse_tty_modes (resource.tty_modes, ttymodelist); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ main.c:484:12: note: declared here 484 | static int parse_tty_modes (); | ^~~~~~~~~~~~~~~ main.c:1339:31: error: passing argument 1 of 'XtRegisterGrabAction' from incompatible pointer type [-Wincompatible-pointer-types] 1339 | XtRegisterGrabAction (HandlePopupMenu, True, | ^~~~~~~~~~~~~~~ | | | void (*)(void) /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Intrinsic.h:772:5: note: expected 'XtActionProc' {aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)'} but argument is of type 'void (*)(void)' 772 | XtActionProc /* action_proc */, | ^~~~~~~~~~~~ main.c:394:13: note: 'HandlePopupMenu' declared here 394 | extern void HandlePopupMenu(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Intrinsic.h:192:16: note: 'XtActionProc' declared here 192 | typedef void (*XtActionProc)( | ^~~~~~~~~~~~ main.c:1426:38: error: too many arguments to function 'base_name'; expected 0, have 1 1426 | resource.title = base_name (command_to_exec[0]); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~ main.c:978:15: note: declared here 978 | char *base_name(), *ptr; | ^~~~~~~~~ main.c:1481:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1481 | signal (SIGCHLD, reapchild); | ^~~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from /usr/include/poll.h:41, from main.c:170: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:401:17: note: 'reapchild' declared here 401 | static SIGNAL_T reapchild (); | ^~~~~~~~~ main.c:1498:17: error: too many arguments to function 'StartLog'; expected 0, have 1 1498 | StartLog(screen); | ^~~~~~~~ ~~~~~~ main.c:925:13: note: declared here 925 | extern void StartLog(); | ^~~~~~~~ main.c:1525:17: error: implicit declaration of function 'Error'; did you mean 'xerror'? [-Wimplicit-function-declaration] 1525 | Error(); | ^~~~~ | xerror main.c:1555:26: error: passing argument 1 of 'XSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 1555 | XSetErrorHandler(xerror); | ^~~~~~ | | | int (*)(void) In file included from /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Intrinsic.h:53: /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Xlib.h:1849:5: note: expected 'XErrorHandler' {aka 'int (*)(struct _XDisplay *, XErrorEvent *)'} but argument is of type 'int (*)(void)' 1849 | XErrorHandler /* handler */ | ^~~~~~~~~~~~~ main.c:979:13: note: 'xerror' declared here 979 | int xerror(), xioerror(); | ^~~~~~ /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ main.c:1556:28: error: passing argument 1 of 'XSetIOErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 1556 | XSetIOErrorHandler(xioerror); | ^~~~~~~~ | | | int (*)(void) /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Xlib.h:1858:5: note: expected 'XIOErrorHandler' {aka 'int (*)(struct _XDisplay *)'} but argument is of type 'int (*)(void)' 1858 | XIOErrorHandler /* handler */ | ^~~~~~~~~~~~~~~ main.c:979:23: note: 'xioerror' declared here 979 | int xerror(), xioerror(); | ^~~~~~~~ /home/pbulk/work/x11/hanterm/work/.buildlink/include/X11/Xlib.h:1853:15: note: 'XIOErrorHandler' declared here 1853 | typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~~~ main.c:1558:13: error: implicit declaration of function 'VTRun' [-Wimplicit-function-declaration] 1558 | VTRun(); | ^~~~~ main.c: In function 'base_name': main.c:978:15: warning: old-style function definition [-Wold-style-definition] 978 | char *base_name(), *ptr; | ^~~~~~~~~ main.c:1564:1: error: number of arguments doesn't match prototype 1564 | { | ^ main.c:978:15: error: prototype declaration 978 | char *base_name(), *ptr; | ^~~~~~~~~ main.c: In function 'get_pty': main.c:1579:1: warning: old-style function definition [-Wold-style-definition] 1579 | get_pty (pty) | ^~~~~~~ main.c:1614:24: error: too many arguments to function 'ptsname'; expected 0, have 1 1614 | strcpy(ttydev, ptsname(*pty)); | ^~~~~~~ ~~~~ main.c:390:14: note: declared here 390 | extern char *ptsname(); | ^~~~~~~ main.c: In function 'pty_search': main.c:1690:5: warning: old-style function definition [-Wold-style-definition] 1690 | int pty_search(pty) | ^~~~~~~~~~ main.c: In function 'get_terminal': main.c:1751:25: error: too many arguments to function 'make_colored_cursor'; expected 0, have 3 1751 | screen->arrow = make_colored_cursor (XC_left_ptr, | ^~~~~~~~~~~~~~~~~~~ ptyx.h:536:15: note: declared here 536 | extern Cursor make_colored_cursor(); | ^~~~~~~~~~~~~~~~~~~ main.c: In function 'hungtty': main.c:1776:10: warning: old-style function definition [-Wold-style-definition] 1776 | SIGNAL_T hungtty(i) | ^~~~~~~ main.c: In function 'HsSysError': main.c:1849:1: warning: old-style function definition [-Wold-style-definition] 1849 | HsSysError(pf, error) | ^~~~~~~~~~ main.c: In function 'spawn': main.c:2017:29: error: implicit declaration of function 'SysError'; did you mean 'HsSysError'? [-Wimplicit-function-declaration] 2017 | SysError(ERROR_OPDEVTTY); | ^~~~~~~~ | HsSysError main.c:2089:9: error: implicit declaration of function 'VTInit' [-Wimplicit-function-declaration] 2089 | VTInit(); /* realize now so know window size for tty driver */ | ^~~~~~ main.c:2147:17: error: too many arguments to function 'Exit'; expected 0, have 1 2147 | Exit (1); | ^~~~ ~ main.c:353:10: note: declared here 353 | SIGNAL_T Exit(); | ^~~~ main.c:2216:36: error: too many arguments to function 'ptsname'; expected 0, have 1 2216 | if ((ptyfd = open (ptsname(screen->respond), O_RDWR)) < 0) { | ^~~~~~~ ~~~~~~~~~~~~~~~ main.c:390:14: note: declared here 390 | extern char *ptsname(); | ^~~~~~~ main.c:2636:17: error: too many arguments to function 'Setenv'; expected 0, have 2 2636 | Setenv ("TERM=", TermName); | ^~~~~~ ~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:2646:17: error: too many arguments to function 'Setenv'; expected 0, have 2 2646 | Setenv ("WINDOWID=", buf); | ^~~~~~ ~~~~~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:2648:17: error: too many arguments to function 'Setenv'; expected 0, have 2 2648 | Setenv ("DISPLAY=", XDisplayString (screen->display)); | ^~~~~~ ~~~~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:2697:21: error: too many arguments to function 'Setenv'; expected 0, have 2 2697 | Setenv ("LOGNAME=", pw->pw_name); /* for POSIX */ | ^~~~~~ ~~~~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:2919:25: error: too many arguments to function 'Setenv'; expected 0, have 2 2919 | Setenv("HOME=", pw->pw_dir); | ^~~~~~ ~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:2921:25: error: too many arguments to function 'Setenv'; expected 0, have 2 2921 | Setenv("SHELL=", pw->pw_shell); | ^~~~~~ ~~~~~~~~ main.c:929:13: note: declared here 929 | extern void Setenv (); | ^~~~~~ main.c:3119:35: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 3119 | (void) signal(SIGINT, Exit); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:353:10: note: 'Exit' declared here 353 | SIGNAL_T Exit(); | ^~~~ main.c:3120:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 3120 | (void) signal(SIGQUIT, Exit); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:353:10: note: 'Exit' declared here 353 | SIGNAL_T Exit(); | ^~~~ main.c:3121:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 3121 | (void) signal(SIGTERM, Exit); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:353:10: note: 'Exit' declared here 353 | SIGNAL_T Exit(); | ^~~~ main.c:3127:32: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 3127 | (void) signal(SIGPIPE, Exit); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:353:10: note: 'Exit' declared here 353 | SIGNAL_T Exit(); | ^~~~ main.c: In function 'Exit': main.c:3140:1: warning: old-style function definition [-Wold-style-definition] 3140 | Exit(n) | ^~~~ main.c:3142:1: error: number of arguments doesn't match prototype 3142 | { | ^ main.c:353:10: error: prototype declaration 353 | SIGNAL_T Exit(); | ^~~~ main.c:3228:17: error: too many arguments to function 'CloseLog'; expected 0, have 1 3228 | CloseLog(screen); | ^~~~~~~~ ~~~~~~ main.c:926:13: note: declared here 926 | extern void CloseLog(); | ^~~~~~~~ main.c: In function 'reapchild': main.c:3317:17: warning: old-style function definition [-Wold-style-definition] 3317 | static SIGNAL_T reapchild (n) | ^~~~~~~~~ main.c:3326:28: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 3326 | (void) signal(SIGCHLD, reapchild); | ^~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:3317:17: note: 'reapchild' declared here 3317 | static SIGNAL_T reapchild (n) | ^~~~~~~~~ main.c:3333:13: error: implicit declaration of function 'Cleanup' [-Wimplicit-function-declaration] 3333 | Cleanup (0); | ^~~~~~~ main.c: In function 'consolepr': main.c:3356:21: error: too many arguments to function 'SysErrorMsg'; expected 0, have 1 3356 | strcat(buf, SysErrorMsg (oerrno)); | ^~~~~~~~~~~ ~~~~~~ main.c:3344:22: note: declared here 3344 | extern char *SysErrorMsg(); | ^~~~~~~~~~~ main.c: In function 'remove_termcap_entry': main.c:3375:16: error: too many arguments to function 'strindex'; expected 0, have 2 3375 | strinbuf = strindex (buf, str); | ^~~~~~~~ ~~~ main.c:393:14: note: declared here 393 | extern char *strindex (); | ^~~~~~~~ main.c: In function 'parse_tty_modes': main.c:3399:12: warning: old-style function definition [-Wold-style-definition] 3399 | static int parse_tty_modes (s, modelist) | ^~~~~~~~~~~~~~~ main.c: In function 'GetBytesAvailable': main.c:3435:5: warning: old-style function definition [-Wold-style-definition] 3435 | int GetBytesAvailable (fd) | ^~~~~~~~~~~~~~~~~ main.c:3437:1: error: number of arguments doesn't match prototype 3437 | { | ^ ptyx.h:537:12: error: prototype declaration 537 | extern int GetBytesAvailable(); | ^~~~~~~~~~~~~~~~~ main.c: In function 'kill_process_group': main.c:3455:1: warning: old-style function definition [-Wold-style-definition] 3455 | kill_process_group(pid, sig) | ^~~~~~~~~~~~~~~~~~ main.c:3458:1: error: number of arguments doesn't match prototype 3458 | { | ^ ptyx.h:539:12: error: prototype declaration 539 | extern int kill_process_group(); | ^~~~~~~~~~~~~~~~~~ *** [main.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/x11/hanterm/work/hanterm-3.1.6 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/x11/hanterm/work/hanterm-3.1.6 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/hanterm *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/hanterm