=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for splitvt-1.6.6 cc -O -DTERMCAP -DHAVE_UTHOST -DHAVE_UNISTD_H -DNEED_COMPAT_H -DNEED_SELECT_H -DHAVE_WAIT4 -DSHELL=\"/bin/sh\" -DPTYCHAR=\"pq\" -DHEXDIGIT=\"0123456789abcdef\" -c splitvt.c splitvt.c:110:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ splitvt.c:172:7: warning: implicit declaration of function 'tokenize' is invalid in C99 [-Wimplicit-function-declaration] tokenize(upper_args, MAX_ARGS+1, ^ splitvt.c:216:3: warning: implicit declaration of function 'd_copy' is invalid in C99 [-Wimplicit-function-declaration] d_copy((char *)pw, (char *)&pwdata, sizeof(pwdata)); ^ splitvt.c:220:7: warning: implicit declaration of function 'tty_getmode' is invalid in C99 [-Wimplicit-function-declaration] if ( tty_getmode(ttyfd) < 0 ) ^ splitvt.c:225:9: warning: implicit declaration of function 'tty_raw' is invalid in C99 [-Wimplicit-function-declaration] (void) tty_raw(0); /* Set the tty raw here to prevent lost input */ ^ splitvt.c:229:8: warning: implicit declaration of function 'tty_reset' is invalid in C99 [-Wimplicit-function-declaration] if ( tty_reset(0) < 0 ) ^ splitvt.c:230:11: warning: implicit declaration of function 'tty_sane' is invalid in C99 [-Wimplicit-function-declaration] (void) tty_sane(0); ^ splitvt.c:282:9: warning: implicit declaration of function 'remove_me' is invalid in C99 [-Wimplicit-function-declaration] (void) remove_me(); ^ splitvt.c:283:14: warning: implicit declaration of function 'pty_open' is invalid in C99 [-Wimplicit-function-declaration] if ( (topfd=pty_open(upper_args, &toppid, UPPER)) < 0 ) ^ splitvt.c:301:10: warning: implicit declaration of function 'addutmp' is invalid in C99 [-Wimplicit-function-declaration] (void) addutmp(pw->pw_name, pw->pw_uid, upper_tty); ^ splitvt.c:440:7: warning: implicit declaration of function 'vt_setsel' is invalid in C99 [-Wimplicit-function-declaration] vt_setsel(selection, BUFSIZ-1, ^ splitvt.c:650:12: warning: implicit declaration of function 'delutmp' is invalid in C99 [-Wimplicit-function-declaration] (void) delutmp(pw->pw_name, upper_tty); ^ splitvt.c:694:9: warning: implicit declaration of function 'replace_me' is invalid in C99 [-Wimplicit-function-declaration] (void) replace_me(); ^ splitvt.c:721:3: warning: implicit declaration of function 'pty_setwin' is invalid in C99 [-Wimplicit-function-declaration] pty_setwin(topfd, UPPER); ^ 14 warnings generated. cc -O -DTERMCAP -DHAVE_UTHOST -DHAVE_UNISTD_H -DNEED_COMPAT_H -DNEED_SELECT_H -DHAVE_WAIT4 -DSHELL=\"/bin/sh\" -DPTYCHAR=\"pq\" -DHEXDIGIT=\"0123456789abcdef\" -c misc.c misc.c:58:20: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] if ( ((*childpid)=fork()) < 0 ) ^ misc.c:69:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(0); close(1); close(2); ^ misc.c:70:3: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] dup(slave_fd); dup(slave_fd); dup(slave_fd); ^ misc.c:107:10: warning: implicit declaration of function 'tty_reset' is invalid in C99 [-Wimplicit-function-declaration] (void) tty_reset(0); ^ misc.c:110:10: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] (void) utime(get_ttyname(), NULL); ^ misc.c:113:7: warning: implicit declaration of function 'setgid' is invalid in C99 [-Wimplicit-function-declaration] if (setgid(getgid()) != 0) { ^ misc.c:113:14: warning: implicit declaration of function 'getgid' is invalid in C99 [-Wimplicit-function-declaration] if (setgid(getgid()) != 0) { ^ misc.c:119:7: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] if (setuid(getuid()) != 0) { ^ misc.c:119:14: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] if (setuid(getuid()) != 0) { ^ misc.c:125:3: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(((*argv[0] == '-') ? argv[0]+1 : argv[0]), argv); ^ misc.c:339:4: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(2); /* Set an open timeout */ ^ misc.c:350:10: warning: implicit declaration of function 'access' is invalid in C99 [-Wimplicit-function-declaration] if ( access(tty_name, R_OK|W_OK) == 0 ) { ^ misc.c:419:2: warning: implicit declaration of function 'setpgrp' is invalid in C99 [-Wimplicit-function-declaration] setpgrp(0, 0); ^ 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: implicit declaration of function 'isatty' is invalid in C99 [-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: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:607:16: error: use of undeclared identifier 'TIOCGETP' if (ioctl(fd, TIOCGETP, (char *) &tty_mode) < 0) ^ 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: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:649:16: error: use of undeclared identifier 'TIOCSETP' if (ioctl(fd, TIOCSETP, (char *) &tty_mode) < 0) ^ misc.c:705:14: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] nwritten = write(fd, ptr, nleft); ^ misc.c:875:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if ( pipe(pipe_fds) < 0 ) { ^ misc.c:936:2: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration] wait(&status); ^ 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 */ ^ 18 warnings and 9 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/misc/splitvt/work/splitvt-1.6.6 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/misc/splitvt *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/misc/splitvt