=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for socks4-2.2nb1 (cd lib; /usr/pkg/bin/bmake CC="cc" GETPASS="" OPTIMIZE="-O2 -march=i586 -Wno-error=return-type" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 " RANLIB="ranlib") /usr/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c Rconnect.c Rconnect.c:129:2: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration] gethostname(socks_src_name, sizeof(socks_src_name)); ^ Rconnect.c:165:41: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] _res.nsaddr_list[0].sin_addr.s_addr = inet_addr(ns); ^ Rconnect.c:211:26: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=getuid())) == NULL) { ^ Rconnect.c:219:25: warning: implicit declaration of function 'geteuid' is invalid in C99 [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=geteuid())) == NULL) { ^ Rconnect.c:252:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (socks_server = socks_serverlist) { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ Rconnect.c:252:22: note: place parentheses around the assignment to silence this warning while (socks_server = socks_serverlist) { ^ ( ) Rconnect.c:252:22: note: use '==' to turn this assignment into an equality comparison while (socks_server = socks_serverlist) { ^ == Rconnect.c:253:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (socks_serverlist = index(socks_serverlist, ',')) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rconnect.c:253:24: note: place parentheses around the assignment to silence this warning if (socks_serverlist = index(socks_serverlist, ',')) ^ ( ) Rconnect.c:253:24: note: use '==' to turn this assignment into an equality comparison if (socks_serverlist = index(socks_serverlist, ',')) ^ == Rconnect.c:279:16: warning: implicit declaration of function 'rresvport' is invalid in C99 [-Wimplicit-function-declaration] new_sock = rresvport(lport); ^ Rconnect.c:289:8: warning: implicit declaration of function 'dup2' is invalid in C99 [-Wimplicit-function-declaration] if (dup2(new_sock, sock) < 0) { ^ Rconnect.c:290:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(new_sock); ^ Rconnect.c:343:11: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if((n = write(s, p, i)) <= 0) { ^ Rconnect.c:359:13: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] if ((sta = socks_SendDst(s, dst)) < 0) { ^ Rconnect.c:373:13: warning: implicit declaration of function 'socks_GetDst' is invalid in C99 [-Wimplicit-function-declaration] if ((sta = socks_GetDst(s, dst)) < 0) { ^ Rconnect.c:386:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(SOCKS_FAIL); ^ Rconnect.c:386:2: note: please include the header or explicitly provide a declaration for 'exit' Rconnect.c:397:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(CLIENT_CONN_TIMEOUT); ^ Rconnect.c:416:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rconnect(sock, sin, size) ^~~~~~~~ Rconnect.c:448:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } else if (status = socks_conn_code) { ~~~~~~~^~~~~~~~~~~~~~~~~ Rconnect.c:448:20: note: place parentheses around the assignment to silence this warning } else if (status = socks_conn_code) { ^ ( ) Rconnect.c:448:20: note: use '==' to turn this assignment into an equality comparison } else if (status = socks_conn_code) { ^ == Rconnect.c:528:11: warning: implicit declaration of function 'socks_check_cconf' is invalid in C99 [-Wimplicit-function-declaration] direct = socks_check_cconf(&me, sin); ^ Rconnect.c:600:22: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^ Rconnect.c:628:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rbind(sock, sin, size) ^~~~~ Rconnect.c:780:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rlisten(s, n) ^~~~~~~ Rconnect.c:797:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rgetsockname(sock, sin, size) ^~~~~~~~~~~~ Rconnect.c:810:53: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] return (getsockname(sock, (struct sockaddr *)sin, size)); ^~~~ /usr/include/sys/socket.h:625:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ Rconnect.c:823:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Raccept(sock, sin, size) ^~~~~~~ Rconnect.c:839:47: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] return(accept(sock, (struct sockaddr *)sin, size)); ^~~~ /usr/include/sys/socket.h:621:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ Rconnect.c:851:11: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] return(dup(sock)); ^ 25 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c SendGetDst.c SendGetDst.c:13:9: warning: 'NULL' macro redefined #define NULL ((char *)0) ^ /usr/include/sys/null.h:13:9: note: previous definition is here #define NULL ((void *)0) ^ SendGetDst.c:28:2: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(&dst->port, c+2, sizeof(dst->port)); ^ SendGetDst.c:36:30: warning: incompatible pointer types passing 'char *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' #define NULL ((char *)0) ^~~~~~~~~~~ /usr/include/sys/select.h:72:36: note: passing argument to parameter here int select(int, fd_set * __restrict, fd_set * __restrict, ^ SendGetDst.c:36:42: warning: incompatible pointer types passing 'char *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' #define NULL ((char *)0) ^~~~~~~~~~~ /usr/include/sys/select.h:73:24: note: passing argument to parameter here fd_set * __restrict, struct timeval * __restrict) __RENAME(__select50); ^ SendGetDst.c:46:11: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if((n = write(s, p, i)) > 0) { ^ SendGetDst.c:75:36: warning: incompatible pointer types passing 'char *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' #define NULL ((char *)0) ^~~~~~~~~~~ /usr/include/sys/select.h:72:57: note: passing argument to parameter here int select(int, fd_set * __restrict, fd_set * __restrict, ^ SendGetDst.c:75:42: warning: incompatible pointer types passing 'char *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' #define NULL ((char *)0) ^~~~~~~~~~~ /usr/include/sys/select.h:73:24: note: passing argument to parameter here fd_set * __restrict, struct timeval * __restrict) __RENAME(__select50); ^ SendGetDst.c:85:11: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^ 8 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c saddrtoname.c saddrtoname.c:14:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned int)' strncpy(name, host->h_name, namelen); ^ saddrtoname.c:14:3: note: please include the header or explicitly provide a declaration for 'strncpy' saddrtoname.c:16:17: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] strncpy(name, inet_ntoa(*addr), namelen); ^ saddrtoname.c:16:17: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] strncpy(name, inet_ntoa(*addr), namelen); ^~~~~~~~~~~~~~~~ 3 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c porttoserv.c porttoserv.c:15:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned int)' strncpy(name, serv->s_name, namelen); ^ porttoserv.c:15:3: note: please include the header or explicitly provide a declaration for 'strncpy' porttoserv.c:17:3: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' sprintf(name, "%u", port); ^ porttoserv.c:17:3: note: please include the header or explicitly provide a declaration for 'sprintf' 2 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c check_cconf.c check_cconf.c:34:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] socks_check_cconf(src, dst) ^~~~~~~~~~~~~~~~~ check_cconf.c:46:17: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] self.s_addr = inet_addr("127.0.0.1"); ^ check_cconf.c:83:3: warning: implicit declaration of function 'socks_shell_cmd' is invalid in C99 [-Wimplicit-function-declaration] socks_shell_cmd(confPtr->cmdp, src, dst); ^ check_cconf.c:88:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static read_cconf(void) ~~~~~~ ^ check_cconf.c:142:4: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ check_cconf.c:142:4: note: please include the header or explicitly provide a declaration for 'exit' check_cconf.c:251:25: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' (struct config **) malloc(CONF_INCR *sizeof(struct config **)); ^ check_cconf.c:251:25: note: please include the header or explicitly provide a declaration for 'malloc' check_cconf.c:253:6: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned int)' realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); ^ check_cconf.c:253:6: note: please include the header or explicitly provide a declaration for 'realloc' 7 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c shell_cmd.c shell_cmd.c:64:26: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] int daemon_pid = getpid(); ^ shell_cmd.c:67:9: warning: implicitly declaring library function 'strpbrk' with type 'char *(const char *, const char *)' if (strpbrk(cmd, alpha_num) == NULL) { ^ shell_cmd.c:67:9: note: please include the header or explicitly provide a declaration for 'strpbrk' shell_cmd.c:77:25: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^ shell_cmd.c:85:21: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration] while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) ^ shell_cmd.c:106:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(tmp_fd); ^ shell_cmd.c:110:9: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if (open("/dev/null", 2) != 0) { ^ shell_cmd.c:112:16: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^ shell_cmd.c:115:9: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration] (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); ^ shell_cmd.c:202:22: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' expansion_len = strlen(expansion); ^ shell_cmd.c:202:22: note: please include the header or explicitly provide a declaration for 'strlen' 9 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c check_user.c check_user.c:59:22: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] if ((addr->s_addr = inet_addr(dotquad)) != (u_int32) -1) ^ check_user.c:101:9: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration] return atol(name); ^ check_user.c:127:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (q = index(p, ',')) ~~^~~~~~~~~~~~~~~ check_user.c:127:9: note: place parentheses around the assignment to silence this warning if (q = index(p, ',')) ^ ( ) check_user.c:127:9: note: use '==' to turn this assignment into an equality comparison if (q = index(p, ',')) ^ == check_user.c:143:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while ( p = q); ~~^~~ check_user.c:143:14: note: place parentheses around the assignment to silence this warning } while ( p = q); ^ ( ) check_user.c:143:14: note: use '==' to turn this assignment into an equality comparison } while ( p = q); ^ == 4 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c null_syslog.c null_syslog.c:20:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] socks_0openlog(ident, log_opt, fac) ^~~~~~~~~~~~~~ null_syslog.c:26:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ null_syslog.c:28:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] socks_0closelog() ^~~~~~~~~~~~~~~ null_syslog.c:31:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ null_syslog.c:33:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] VARARGS(socks_0syslog, int, prio) ^~~~~~~~~~~~~ null_syslog.c:10:32: note: expanded from macro 'VARARGS' #define VARARGS(func,type,arg) func(type arg, ...) ^ null_syslog.c:40:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 6 warnings generated. cc -I../include -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c Rrcmd.c Rrcmd.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) ^~~~~ Rrcmd.c:125:7: warning: implicit declaration of function 'Rconnect' is invalid in C99 [-Wimplicit-function-declaration] if (Rconnect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) ^ Rrcmd.c:184:7: warning: implicit declaration of function 'Rbind' is invalid in C99 [-Wimplicit-function-declaration] if (Rbind(s2, (struct sockaddr *)&tsin, sizeof(tsin)) < 0) { ^ Rrcmd.c:193:7: warning: implicit declaration of function 'Rgetsockname' is invalid in C99 [-Wimplicit-function-declaration] if (Rgetsockname(s2, (struct sockaddr *)&tsin, &tlen) < 0) { ^ Rrcmd.c:198:3: warning: implicit declaration of function 'Rlisten' is invalid in C99 [-Wimplicit-function-declaration] Rlisten(s2, 1); ^ Rrcmd.c:228:8: warning: implicit declaration of function 'Raccept' is invalid in C99 [-Wimplicit-function-declaration] s3 = Raccept(s2, (struct sockaddr *)&from, &len); ^ 6 warnings generated. rm -f libsocks.a ar rc libsocks.a Rconnect.o SendGetDst.o saddrtoname.o porttoserv.o check_cconf.o shell_cmd.o check_user.o null_syslog.o Rrcmd.o ranlib libsocks.a (cd libident; /usr/pkg/bin/bmake CC="cc" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1" OPTIMIZE="-O2 -march=i586 -Wno-error=return-type" RANLIB="ranlib") /usr/pkgsrc/work/net/socks4/work/socks.cstc.4.2/libident cc -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c ident.c ident.c:41:55: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *)&remoteaddr, &len) < 0) ^~~~ /usr/include/sys/socket.h:624:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ident.c:45:54: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *)&localaddr, &len) < 0) ^~~~ /usr/include/sys/socket.h:625:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ident.c:76:21: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' ident = (IDENT *) malloc(sizeof(IDENT)); ^ ident.c:76:21: note: please include the header or explicitly provide a declaration for 'malloc' ident.c:98:5: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free(ident); ^ 4 warnings generated. cc -O2 -march=i586 -Wno-error=return-type -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c id_open.c id_open.c:60:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] extern void *malloc __P((int size)); ^ id_open.c:60:14: note: 'malloc' is a builtin with type 'void *(unsigned int)' id_open.c:63:10: error: conflicting types for 'id_open' ident_t *id_open ^ ./ident.h:63:18: note: previous declaration is here extern ident_t * id_open __P((__STRUCT_IN_ADDR_P laddr, ^ id_open.c:90:5: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free(id); ^ id_open.c:172:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(id->fd); ^ 3 warnings and 1 error generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/socks4/work/socks.cstc.4.2/libident *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/socks4/work/socks.cstc.4.2 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/socks4 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/socks4