=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/splitvt", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for splitvt-1.6.6 --- splitvt.o --- --- misc.o --- --- splitvt.o --- clang -O -DSHELL=\"/bin/csh\" -DPTYCHAR=\"pqrstuvw\" -DHEXDIGIT=\"0123456789abcdef\" -c splitvt.c --- misc.o --- clang -O -DSHELL=\"/bin/csh\" -DPTYCHAR=\"pqrstuvw\" -DHEXDIGIT=\"0123456789abcdef\" -c misc.c --- splitvt.o --- splitvt.c:87:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | void print_usage(argv) | ^ splitvt.c:110:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 110 | main(argc, argv) | ^ | int splitvt.c:160:13: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | while ( (i=getopt(argc, argv, "n:u:l:r:b:s:t:vh")) != EOF ) | ^ splitvt.c:172:7: warning: call to undeclared function 'tokenize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | tokenize(upper_args, MAX_ARGS+1, | ^ splitvt.c:211:37: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | if ( (pw=(struct passwd *)getpwuid(getuid())) == NULL ) { | ^ splitvt.c:214:3: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | sleep(2); | ^ splitvt.c:216:3: warning: call to undeclared function 'd_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 216 | d_copy((char *)pw, (char *)&pwdata, sizeof(pwdata)); | ^ splitvt.c:220:7: warning: call to undeclared function 'tty_getmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 220 | if ( tty_getmode(ttyfd) < 0 ) | ^ splitvt.c:225:9: warning: call to undeclared function 'tty_raw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | (void) tty_raw(0); /* Set the tty raw here to prevent lost input */ | ^ splitvt.c:229:8: warning: call to undeclared function 'tty_reset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | if ( tty_reset(0) < 0 ) | ^ splitvt.c:230:11: warning: call to undeclared function 'tty_sane'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 230 | (void) tty_sane(0); | ^ splitvt.c:245:19: warning: passing arguments to 'event_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | (void) event_init(stdin, stdout, xterm_title); | ^ splitvt.c:275:21: warning: passing arguments to 'insert_dash' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | (void) insert_dash(upper_args); | ^ splitvt.c:276:21: warning: passing arguments to 'insert_dash' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | (void) insert_dash(lower_args); | ^ splitvt.c:282:9: warning: call to undeclared function 'remove_me'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 282 | (void) remove_me(); | ^ splitvt.c:283:14: warning: call to undeclared function 'pty_open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | if ( (topfd=pty_open(upper_args, &toppid, UPPER)) < 0 ) | ^ splitvt.c:298:9: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | finish(0); | ^ splitvt.c:301:10: warning: call to undeclared function 'addutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 301 | (void) addutmp(pw->pw_name, pw->pw_uid, upper_tty); | ^ splitvt.c:319:9: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | finish(0); | ^ splitvt.c:322:10: warning: call to undeclared function 'addutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 322 | (void) addutmp(pw->pw_name, pw->pw_uid, lower_tty); | ^ splitvt.c:344:16: warning: call to undeclared function 'getdtablesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 344 | maxfds=getdtablesize(); | ^ splitvt.c:367:8: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | for ( SET_WIN(); (topok || bottomok); ) | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:397:39: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | finish(0); | ^ splitvt.c:409:23: warning: passing arguments to 'event_getc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 409 | if ( (c=event_getc(&X_event)) == EOF ) | ^ splitvt.c:410:12: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | finish(0); | ^ splitvt.c:420:8: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:426:8: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:432:8: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 432 | write(thisfd, selection, strlen(selection)); | ^ splitvt.c:435:15: warning: passing arguments to 'move_bar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | move_bar(X_event.x-on_separator); | ^ splitvt.c:440:7: warning: call to undeclared function 'vt_setsel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 440 | vt_setsel(selection, BUFSIZ-1, | ^ splitvt.c:445:19: warning: passing arguments to 'vt_setselbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 445 | vt_setselbuf(selection); | ^ splitvt.c:449:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | do_input(c); | ^ splitvt.c:455:14: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 455 | if ( (len=read(bottomfd, buffer, BUFSIZ)) <= 0 ) | ^ splitvt.c:461:14: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | finish(0); | ^ splitvt.c:465:20: warning: passing arguments to 'vt_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | (void) vt_write(LOWER, buffer, len, &bottomfd); | ^ splitvt.c:467:6: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:473:14: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 473 | if ( (len=read(topfd, buffer, BUFSIZ)) <= 0 ) | ^ splitvt.c:479:14: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | finish(0); | ^ splitvt.c:483:20: warning: passing arguments to 'vt_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | (void) vt_write(UPPER, buffer, len, &topfd); | ^ splitvt.c:485:6: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:489:8: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | finish(0); | ^ splitvt.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | main(argc, argv) | ^ splitvt.c:495:2: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 495 | sleep(sleeptime); | ^ splitvt.c:496:9: warning: passing arguments to 'vt_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | vt_info(NULL); | ^ splitvt.c:492:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | void reset_bar(sleeptime) | ^ In file included from splitvt.c:30: ./splitvt.h:39:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | extern void reset_bar(); | ^ splitvt.c:515:15: warning: passing arguments to 'vt_showscreen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | vt_showscreen("Splitvt HELP screen:", help); | ^ splitvt.c:526:3: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | read(ttyfd, &c, 1); | ^ splitvt.c:533:3: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:536:14: warning: passing arguments to 'vt_prompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | c=vt_prompt(PROMPT); | ^ splitvt.c:541:15: warning: passing arguments to 'move_bar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | move_bar(thisfd == topfd ? -param : param); | ^ splitvt.c:547:15: warning: passing arguments to 'move_bar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | move_bar(thisfd == topfd ? param : -param); | ^ splitvt.c:553:23: warning: passing arguments to 'vt_prompt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | switch(vt_prompt(message)) { | ^ splitvt.c:562:14: warning: passing arguments to 'vt_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | vt_info(NULL); | ^ splitvt.c:565:23: warning: passing arguments to 'vt_getsel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | case 'c': vt_getsel(CUR_WIN(), selection, BUFSIZ); --- misc.o --- misc.c:58:20: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- | ^ splitvt.c:566:19: warning: passing arguments to 'vt_setselbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- misc.o --- 58 | if ( ((*childpid)=fork()) < 0 ) | ^ --- splitvt.o --- 566 | vt_setselbuf(selection); | ^ --- misc.o --- misc.c:69:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- splitvt.c:571:7: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- misc.o --- 69 | close(0); close(1); close(2); | ^ misc.c:70:3: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- 571 | write(thisfd, selection, strlen(selection)); | ^ splitvt.c:574:21: warning: passing arguments to 'vt_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- misc.o --- 70 | dup(slave_fd); dup(slave_fd); dup(slave_fd); | ^ --- splitvt.o --- 574 | case 'x': vt_info("Enter password: "); | ^ --- misc.o --- misc.c:83:13: warning: passing arguments to 'pty_setwin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- splitvt.o --- splitvt.c:581:20: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- misc.o --- 83 | pty_setwin(0, win); | ^ --- splitvt.o --- 581 | case 'q': finish(0); | ^ splitvt.c:605:3: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 605 | write(thisfd, &c, 1); --- misc.o --- misc.c:98:11: warning: passing arguments to 'myputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | myputenv(SPLITVT); | ^ misc.c:99:11: warning: passing arguments to 'myputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- splitvt.o --- | ^ splitvt.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | void normal_input(c) | ^ splitvt.c:60:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] --- misc.o --- 99 | myputenv("TERM=vt100"); /* Put the new TERM in the env. */ | ^ --- splitvt.o --- 60 | void normal_input(); | ^ --- misc.o --- misc.c:107:10: warning: call to undeclared function 'tty_reset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | (void) tty_reset(0); | ^ misc.c:110:10: warning: call to undeclared function 'utime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 110 | (void) utime(get_ttyname(), NULL); | ^ misc.c:113:7: warning: call to undeclared function 'setgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | if (setgid(getgid()) != 0) { | ^ misc.c:113:14: warning: call to undeclared function 'getgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | if (setgid(getgid()) != 0) { | ^ --- splitvt.o --- splitvt.c:650:12: warning: call to undeclared function 'delutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- misc.o --- misc.c:119:7: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- 650 | (void) delutmp(pw->pw_name, upper_tty); | ^ --- misc.o --- 119 | if (setuid(getuid()) != 0) { | ^ misc.c:119:14: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | if (setuid(getuid()) != 0) { | ^ misc.c:125:3: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- splitvt.c:653:11: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 653 | (void) close(topfd); | ^ --- misc.o --- 125 | execvp(((*argv[0] == '-') ? argv[0]+1 : argv[0]), argv); --- splitvt.o --- splitvt.c:655:4: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- misc.o --- | ^ --- splitvt.o --- 655 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ --- misc.o --- misc.c:40:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- splitvt.o --- splitvt.c:662:12: warning: call to undeclared function 'delutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- misc.o --- 40 | int pty_open(argv, childpid, win) | ^ --- splitvt.o --- 662 | (void) delutmp(pw->pw_name, lower_tty); | ^ splitvt.c:665:11: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 665 | (void) close(bottomfd); | ^ splitvt.c:667:4: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:682:7: warning: call to undeclared function 'tty_reset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 682 | if ( tty_reset(0) < 0 ) | ^ splitvt.c:683:10: warning: call to undeclared function 'tty_sane'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 683 | (void) tty_sane(0); | ^ splitvt.c:691:10: warning: call to undeclared function 'delutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 691 | (void) delutmp(pw->pw_name, upper_tty); | ^ splitvt.c:694:9: warning: call to undeclared function 'replace_me'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 694 | (void) replace_me(); | ^ splitvt.c:677:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | static void finish(sig) | ^ splitvt.c:58:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void finish(), move_bar(), winch(); | ^ splitvt.c:721:3: warning: call to undeclared function 'pty_setwin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 721 | pty_setwin(topfd, UPPER); | ^ splitvt.c:705:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | static void move_bar(howfar) | ^ splitvt.c:58:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void finish(), move_bar(), winch(); | ^ splitvt.c:743:3: warning: passing arguments to 'set_win' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | SET_WIN(); | ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' 19 | #define SET_WIN() set_win(CUR_WIN()) | ^ splitvt.c:745:3: warning: call to undeclared function 'pty_setwin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 745 | pty_setwin(topfd, UPPER); | ^ splitvt.c:732:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | static void winch(sig) | ^ splitvt.c:58:35: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void finish(), move_bar(), winch(); | ^ splitvt.c:750:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | static int insert_dash(args) | ^ splitvt.c:61:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | static int insert_dash(); | ^ --- misc.o --- misc.c:339:4: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 339 | alarm(2); /* Set an open timeout */ | ^ misc.c:350:10: warning: call to undeclared function 'access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 350 | if ( access(tty_name, R_OK|W_OK) == 0 ) { | ^ misc.c:355:13: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 355 | (void) close(master_fd); | ^ misc.c:374:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 374 | close(master_fd); | ^ misc.c:389:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | void d_copy(src, dst, len) | ^ misc.c:396:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | void d_zero(dst, len) | ^ misc.c:419:2: warning: call to undeclared function 'setpgrp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 419 | setpgrp(0, 0); | ^ misc.c:429:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 429 | close(fd); | ^ misc.c:578:16: error: variable has incomplete type 'struct sgttyb' 578 | struct sgttyb temp_mode; | ^ misc.c:578:9: note: forward declaration of 'struct sgttyb' 578 | struct sgttyb temp_mode; | ^ misc.c:580:9: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 580 | if ( ! isatty(fd) ) | ^ misc.c:583:16: error: use of undeclared identifier 'TIOCGETP' 583 | if (ioctl(fd, TIOCGETP, (char *) &temp_mode) < 0) | ^ misc.c:588:16: error: use of undeclared identifier 'TIOCSETP' 588 | if (ioctl(fd, TIOCSETP, (char *) &temp_mode) < 0) | ^ misc.c:575:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | int tty_sane(fd) | ^ misc.c:599:22: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct sgttyb' [-Wtentative-definition-incomplete-type] 599 | static struct sgttyb tty_mode; /* save tty mode here */ | ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' 599 | static struct sgttyb tty_mode; /* save tty mode here */ | ^ misc.c:604:9: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 604 | if ( ! isatty(fd) ) | ^ misc.c:607:16: error: use of undeclared identifier 'TIOCGETP' 607 | if (ioctl(fd, TIOCGETP, (char *) &tty_mode) < 0) | ^ misc.c:601:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | int tty_getmode(fd) | ^ misc.c:623:16: error: variable has incomplete type 'struct sgttyb' 623 | struct sgttyb temp_mode; | ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' 599 | static struct sgttyb tty_mode; /* save tty mode here */ | ^ misc.c:625:9: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 625 | if ( ! isatty(fd) ) | ^ misc.c:630:24: error: use of undeclared identifier 'RAW' 630 | temp_mode.sg_flags |= RAW; /* turn RAW mode on */ | ^ misc.c:632:16: error: use of undeclared identifier 'TIOCSETP' 632 | if (ioctl(fd, TIOCSETP, (char *) &temp_mode) < 0) | ^ misc.c:620:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | int tty_raw(fd) | ^ misc.c:646:9: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 646 | if ( ! isatty(fd) ) | ^ misc.c:649:16: error: use of undeclared identifier 'TIOCSETP' 649 | if (ioctl(fd, TIOCSETP, (char *) &tty_mode) < 0) | ^ misc.c:643:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | int tty_reset(fd) | ^ misc.c:668:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 668 | void pty_setwin(fd, win) | ^ misc.c:705:14: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 705 | nwritten = write(fd, ptr, nleft); | ^ misc.c:696:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | int writen(fd, ptr, nbytes) | ^ misc.c:721:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | char *myputenv(string) | ^ misc.c:759:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | static int istoken(c, tokens) | ^ misc.c:772:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 772 | void tokenize(array, size, line, tokens) | ^ misc.c:834:21: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 834 | if ( sb.st_uid == getuid() ) { | ^ misc.c:838:28: warning: call to undeclared function 'getgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 838 | } else if ( sb.st_gid == getgid() ) { | ^ misc.c:799:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | char *pathsearch(command, secure) | ^ misc.c:875:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 875 | if ( pipe(pipe_fds) < 0 ) { | ^ misc.c:879:9: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 879 | switch(fork()) { | ^ misc.c:883:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 883 | close(1); dup(pipe_fds[1]); close(0); | ^ misc.c:883:15: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 883 | close(1); dup(pipe_fds[1]); close(0); | ^ misc.c:885:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 885 | close(0); dup(pipe_fds[0]); close(1); | ^ misc.c:885:15: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 885 | close(0); dup(pipe_fds[0]); close(1); | ^ misc.c:887:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 887 | close(pipe_fds[0]); close(pipe_fds[1]); | ^ misc.c:890:8: warning: call to undeclared function 'setgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 890 | if (setgid(getgid()) != 0) { | ^ misc.c:890:15: warning: call to undeclared function 'getgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 890 | if (setgid(getgid()) != 0) { | ^ misc.c:896:8: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 896 | if (setuid(getuid()) != 0) { | ^ misc.c:896:15: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 896 | if (setuid(getuid()) != 0) { | ^ misc.c:906:4: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 906 | execvp(argv[0], argv); | ^ misc.c:921:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 921 | close(pipe_fds[1]); | ^ misc.c:860:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | FILE *safe_popen(command, type) | ^ misc.c:927:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | int safe_pclose(pipefp) | ^ misc.c:599:22: error: tentative definition has type 'struct sgttyb' that is never completed 599 | static struct sgttyb tty_mode; /* save tty mode here */ | ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' 599 | static struct sgttyb tty_mode; /* save tty mode here */ | ^ 55 warnings and 9 errors generated. *** [misc.o] Error code 1 bmake: stopped making "splitvt" in /var/tmp/work/misc/splitvt/work/splitvt-1.6.6 --- splitvt.o --- 83 warnings generated. bmake: 1 error bmake: stopped making "splitvt" in /var/tmp/work/misc/splitvt/work/splitvt-1.6.6 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/splitvt *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/splitvt