=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for splitvt-1.6.6 --- splitvt.o --- --- misc.o --- --- utmp.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 --- utmp.o --- clang -O -DSHELL=\"/bin/csh\" -DPTYCHAR=\"pqrstuvw\" -DHEXDIGIT=\"0123456789abcdef\" -c utmp.c utmp.c:23:15: warning: 'utmp' is deprecated [-Wdeprecated-declarations] static struct utmp saved_utmp; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:29:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp ut; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:33:9: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ( ! isatty(0) ) ^ utmp.c:36:14: warning: call to undeclared function 'ttyname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tty=(char *)ttyname(0); ^ utmp.c:36:6: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] tty=(char *)ttyname(0); ^~~~~~~~~~~~~~~~~~ utmp.c:41:9: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) time(&now); ^ utmp.c:42:7: warning: call to undeclared function 'get_utmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ( get_utmp(tty, &ut) == 0 ) { ^ utmp.c:45:3: warning: call to undeclared function 'd_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] d_copy((char *)&ut, (char *)&saved_utmp, sizeof(ut)); ^ utmp.c:57:10: warning: call to undeclared function 'set_utmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return(set_utmp(tty, &ut)); ^ --- 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] if ( ((*childpid)=fork()) < 0 ) ^ misc.c:69:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] dup(slave_fd); dup(slave_fd); dup(slave_fd); ^ 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 C2x [-Wdeprecated-non-prototype] pty_setwin(0, win); ^ --- utmp.o --- utmp.c:67:10: warning: call to undeclared function 'set_utmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return(set_utmp(saved_tty, &saved_utmp)); ^ utmp.c:73:8: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp *save; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:77:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp ut; ^ --- 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 C2x [-Wdeprecated-non-prototype] myputenv(SPLITVT); ^ --- utmp.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here --- misc.o --- misc.c:99:11: warning: passing arguments to 'myputenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] --- utmp.o --- } __deprecated; ^ --- misc.o --- myputenv("TERM=vt100"); /* Put the new TERM in the env. */ ^ --- utmp.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- 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] (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] (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] 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] if (setgid(getgid()) != 0) { ^ --- utmp.o --- utmp.c:94:9: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (read(fd,(char *) &ut, sizeof(ut)) == sizeof(ut)) { ^ --- 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 C2x [-Wdeprecated-non-prototype] void print_usage(argv) ^ --- 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] 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] 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] execvp(((*argv[0] == '-') ? argv[0]+1 : argv[0]), argv); ^ --- utmp.o --- utmp.c:98:5: warning: call to undeclared function 'd_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] d_copy((char *)&ut, save, sizeof(ut)); ^ utmp.c:99:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(fd); ^ utmp.c:104:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(fd); ^ utmp.c:71: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 get_utmp(tty, save) ^ --- 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 C2x [-Wdeprecated-non-prototype] int pty_open(argv, childpid, win) ^ --- utmp.o --- utmp.c:110:8: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp *save; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:114:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp ut; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:131:9: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (read(fd,(char *) &ut, sizeof(ut)) == sizeof(ut)) { ^ utmp.c:134:4: warning: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lseek(fd, -(long)sizeof(struct utmp), 1); ^ utmp.c:134:35: warning: 'utmp' is deprecated [-Wdeprecated-declarations] lseek(fd, -(long)sizeof(struct utmp), 1); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:142:13: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) close(fd); ^ utmp.c:147:7: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (write(fd, (char *)save, sizeof(*save)) != sizeof(*save)) { ^ utmp.c:148:13: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) close(fd); ^ utmp.c:151:10: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return(close(fd)); ^ utmp.c:108: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 set_utmp(tty, save) ^ --- splitvt.o --- splitvt.c:110:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int --- utmp.o --- utmp.c:163:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp ut; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:167:2: warning: call to undeclared function 'd_zero'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] d_zero((char *)&ut, sizeof(ut)); ^ utmp.c:197:9: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) time(&ut.ut_time); ^ utmp.c:204:10: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) chown(tty, uid, sb.st_gid); ^ utmp.c:157: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 addutmp(user, uid, tty) ^ --- splitvt.o --- splitvt.c:160:13: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] tokenize(upper_args, MAX_ARGS+1, ^ --- utmp.o --- utmp.c:218:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp ut; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utmp.c:222:2: warning: call to undeclared function 'd_zero'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] d_zero((char *)&ut, sizeof(ut)); ^ utmp.c:232:10: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) time(&ut.ut_time); ^ utmp.c:241:10: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) chown(tty, 0, sb.st_gid); ^ utmp.c:213: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 delutmp(user, tty) ^ --- splitvt.o --- splitvt.c:211:37: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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] 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] 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] (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] 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] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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] (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] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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] (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] 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 C2x [-Wdeprecated-non-prototype] for ( SET_WIN(); (topok || bottomok); ) ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ --- 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] 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] 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] (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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] close(fd); ^ misc.c:578:16: error: variable has incomplete type 'struct sgttyb' struct sgttyb temp_mode; ^ misc.c:578:9: note: forward declaration of 'struct sgttyb' 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] if ( ! isatty(fd) ) ^ misc.c:583:16: error: use of undeclared identifier 'TIOCGETP' if (ioctl(fd, TIOCGETP, (char *) &temp_mode) < 0) ^ misc.c:588:16: error: use of undeclared identifier 'TIOCSETP' 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 C2x [-Wdeprecated-non-prototype] 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] static struct sgttyb tty_mode; /* save tty mode here */ ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' 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] if ( ! isatty(fd) ) ^ misc.c:607:16: error: use of undeclared identifier 'TIOCGETP' 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 C2x [-Wdeprecated-non-prototype] int tty_getmode(fd) ^ misc.c:623:16: error: variable has incomplete type 'struct sgttyb' struct sgttyb temp_mode; ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' 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] if ( ! isatty(fd) ) ^ misc.c:630:24: error: use of undeclared identifier 'RAW' temp_mode.sg_flags |= RAW; /* turn RAW mode on */ ^ misc.c:632:16: error: use of undeclared identifier 'TIOCSETP' 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 C2x [-Wdeprecated-non-prototype] 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] if ( ! isatty(fd) ) ^ misc.c:649:16: error: use of undeclared identifier 'TIOCSETP' 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] void tokenize(array, size, line, tokens) ^ --- splitvt.o --- splitvt.c:495:2: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void reset_bar(); ^ --- misc.o --- misc.c:834:21: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ( sb.st_uid == getuid() ) { ^ --- splitvt.o --- 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 C2x [-Wdeprecated-non-prototype] vt_showscreen("Splitvt HELP screen:", help); ^ --- misc.o --- misc.c:838:28: warning: call to undeclared function 'getgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] } 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 C2x [-Wdeprecated-non-prototype] 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] 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] switch(fork()) { ^ --- splitvt.o --- splitvt.c:526:3: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] read(ttyfd, &c, 1); ^ --- misc.o --- misc.c:883:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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] 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] 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] 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] 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] 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] 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] if (setuid(getuid()) != 0) { ^ --- splitvt.o --- 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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #define SET_WIN() set_win(CUR_WIN()) --- misc.o --- misc.c:906:4: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- splitvt.o --- ^ --- misc.o --- execvp(argv[0], argv); ^ --- splitvt.o --- 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] move_bar(thisfd == topfd ? param : -param); ^ --- misc.o --- misc.c:921:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] int safe_pclose(pipefp) ^ misc.c:599:22: error: tentative definition has type 'struct sgttyb' that is never completed static struct sgttyb tty_mode; /* save tty mode here */ ^ misc.c:599:15: note: forward declaration of 'struct sgttyb' static struct sgttyb tty_mode; /* save tty mode here */ ^ --- splitvt.o --- 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] case 'c': vt_getsel(CUR_WIN(), selection, BUFSIZ); ^ 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 C2x [-Wdeprecated-non-prototype] vt_setselbuf(selection); ^ splitvt.c:571:7: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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 C2x [-Wdeprecated-non-prototype] case 'x': vt_info("Enter password: "); ^ splitvt.c:581:20: warning: passing arguments to 'finish' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] write(thisfd, &c, 1); ^ splitvt.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void normal_input(); ^ --- misc.o --- 55 warnings and 9 errors generated. --- 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] (void) delutmp(pw->pw_name, upper_tty); ^ splitvt.c:653:11: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) close(topfd); ^ 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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #define SET_WIN() set_win(CUR_WIN()) ^ splitvt.c:662:12: warning: call to undeclared function 'delutmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (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] (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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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] 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] (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] (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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] SET_WIN(); ^ ./splitvt.h:19:26: note: expanded from macro 'SET_WIN' #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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int insert_dash(); ^ --- misc.o --- *** [misc.o] Error code 1 bmake: stopped in /Users/pbulk/build/misc/splitvt/work/splitvt-1.6.6 --- utmp.o --- 37 warnings generated. --- splitvt.o --- 83 warnings generated. 1 error bmake: stopped in /Users/pbulk/build/misc/splitvt/work/splitvt-1.6.6 *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/misc/splitvt *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/misc/splitvt