=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for socks4-2.2nb1 --- LIB --- --- LIBIDENT --- --- LIB --- (cd lib; /usr/pkg/bin/bmake CC="clang" GETPASS="" OPTIMIZE="-O2 -Wno-error=return-type" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS=" " RANLIB="ranlib") --- LIBIDENT --- (cd libident; /usr/pkg/bin/bmake CC="clang" OTHER_CFLAGS="" OPTIMIZE="-O2 -Wno-error=return-type" RANLIB="ranlib") --- LIB --- --- echocwd --- --- Rconnect.o --- --- LIBIDENT --- --- echocwd --- --- LIB --- --- echocwd --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib --- Rconnect.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c Rconnect.c --- LIBIDENT --- --- ident.o --- --- echocwd --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/libident --- ident.o --- clang -O2 -Wno-error=return-type -c ident.c --- LIB --- --- SendGetDst.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c SendGetDst.c --- Rconnect.o --- 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:202:15: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] SocksHost = inet_addr(socks_server); ^ 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:258:33: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] socks_nsin.sin_addr.s_addr = inet_addr(socks_server); ^ 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:293:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(new_sock); ^ Rconnect.c:297:4: 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) { ^ --- SendGetDst.o --- SendGetDst.c:13:9: warning: 'NULL' macro redefined [-Wmacro-redefined] #define NULL ((char *)0) ^ /usr/include/sys/_null.h:32: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:103:25: note: passing argument to parameter here int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); ^ 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:103:45: note: passing argument to parameter here int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); ^ 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:103:35: note: passing argument to parameter here int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); ^ 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:103:45: note: passing argument to parameter here int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); ^ --- LIBIDENT --- 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] --- LIB --- SendGetDst.c:85:11: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^ SendGetDst.c:98:2: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(c+2, &dst->port, sizeof(dst->port)); ^ 9 warnings generated. --- LIBIDENT --- if (getpeername(fd, (struct sockaddr *)&remoteaddr, &len) < 0) ^~~~ /usr/include/sys/socket.h:623: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:624:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ --- LIB --- --- Rconnect.o --- 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))' [-Wimplicit-function-declaration] exit(SOCKS_FAIL); ^ Rconnect.c:386:2: note: 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()) { ^ --- LIBIDENT --- --- id_open.o --- --- LIB --- Rconnect.c:639:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Rbind(sock, sin, size, dsthost) ^ Rconnect.c:683:11: warning: implicit declaration of function 'socks_check_cconf' is invalid in C99 [-Wimplicit-function-declaration] direct = socks_check_cconf(&me, &psin); ^ 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:624:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); --- LIBIDENT --- --- ident.o --- ident.c:76:21: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] ident = (IDENT *) malloc(sizeof(IDENT)); ^ ident.c:76:21: note: 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); ^ ident.c:135:23: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] if (id->identifier) free(id->identifier); ^ 5 warnings generated. --- LIB --- ^ 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:615:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ Rconnect.c:847:4: warning: implicit declaration of function 'socks_GetDst' is invalid in C99 [-Wimplicit-function-declaration] socks_GetDst(sock, &dst); ^ Rconnect.c:851:11: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] return(dup(sock)); ^ 31 warnings generated. --- LIBIDENT --- --- id_close.o --- --- id_open.o --- clang -O2 -Wno-error=return-type -c id_open.c --- LIB --- --- saddrtoname.o --- --- LIBIDENT --- --- id_close.o --- clang -O2 -Wno-error=return-type -c id_close.c --- LIB --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c saddrtoname.c --- LIBIDENT --- --- id_open.o --- 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 long)' 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); ^ id_open.c:173:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free(id); ^ --- id_close.o --- id_close.c:19:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] res = close(id->fd); ^ id_close.c:20:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free(id); ^ 2 warnings generated. --- id_open.o --- 4 warnings generated. --- LIB --- --- porttoserv.o --- --- saddrtoname.o --- saddrtoname.c:14:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(name, host->h_name, namelen); ^ saddrtoname.c:14:3: note: 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. --- LIBIDENT --- --- id_query.o --- --- LIB --- --- check_cconf.o --- --- LIBIDENT --- clang -O2 -Wno-error=return-type -c id_query.c --- LIB --- --- porttoserv.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c porttoserv.c --- check_cconf.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c check_cconf.c --- porttoserv.o --- porttoserv.c:15:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(name, serv->s_name, namelen); ^ porttoserv.c:15:3: note: 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 *, ...)' [-Wimplicit-function-declaration] sprintf(name, "%u", port); ^ porttoserv.c:17:3: note: include the header or explicitly provide a declaration for 'sprintf' 2 warnings generated. --- check_cconf.o --- 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))' [-Wimplicit-function-declaration] exit(1); ^ check_cconf.c:142:4: note: include the header or explicitly provide a declaration for 'exit' --- LIBIDENT --- --- id_parse.o --- --- id_query.o --- id_query.c:63:9: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^ id_query.c:63:28: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^ id_query.c:63:28: note: include the header or explicitly provide a declaration for 'strlen' 2 warnings generated. --- LIB --- check_cconf.c:251:25: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] (struct config **) malloc(CONF_INCR *sizeof(struct config **)); ^ check_cconf.c:251:25: note: 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 long)' [-Wimplicit-function-declaration] realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); ^ check_cconf.c:253:6: note: include the header or explicitly provide a declaration for 'realloc' --- LIBIDENT --- --- id_parse.o --- clang -O2 -Wno-error=return-type -c id_parse.c --- LIB --- --- shell_cmd.o --- --- check_cconf.o --- 7 warnings generated. --- check_user.o --- --- shell_cmd.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c shell_cmd.c --- check_user.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c check_user.c --- LIBIDENT --- id_parse.c:148:10: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] (res = read(id->fd, id->buf + pos, 1)) == 1 && ^ --- LIB --- --- shell_cmd.o --- 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 *)' [-Wimplicit-function-declaration] if (strpbrk(cmd, alpha_num) == NULL) { ^ shell_cmd.c:67:9: note: 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); ^ --- check_user.o --- 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:59:42: warning: result of comparison of constant 18446744073709551615 with expression of type 'in_addr_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] 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 --- shell_cmd.o --- 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 long (const char *)' [-Wimplicit-function-declaration] expansion_len = strlen(expansion); ^ shell_cmd.c:202:22: note: include the header or explicitly provide a declaration for 'strlen' --- check_user.o --- 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); ^ == --- LIBIDENT --- 1 warning generated. --- LIB --- 5 warnings generated. --- shell_cmd.o --- 9 warnings generated. --- LIBIDENT --- --- libident.a --- rm -f libident.a --- LIB --- --- null_syslog.o --- --- Rrcmd.o --- --- null_syslog.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c null_syslog.c --- LIBIDENT --- ar cq libident.a ident.o id_open.o id_close.o id_query.o id_parse.o --- LIB --- --- Rrcmd.o --- clang -I../include -O2 -Wno-error=return-type -DSUPPORT_RCMD -c Rrcmd.c --- LIBIDENT --- ranlib libident.a --- LIB --- --- null_syslog.o --- 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:40:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 6 warnings generated. --- Rrcmd.o --- 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:186:7: warning: implicit declaration of function 'Rbind' is invalid in C99 [-Wimplicit-function-declaration] if (Rbind(s2, (struct sockaddr *)&tsin, sizeof(tsin), ^ 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. --- libsocks.a --- 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 --- server --- --- RFINGER --- --- RTELNET --- --- server --- (cd sockd; /usr/pkg/bin/bmake CC="clang" RESOLV_LIB="" OPTIMIZE="-O2 -Wno-error=return-type" SOCKS_LIB="/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" SUPPORT_RCMD="-DSUPPORT_RCMD" IDENT_LIB="/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/libident/libident.a" OTHER_CFLAGS=" ") --- RFINGER --- (cd rfinger; /usr/pkg/bin/bmake CC="clang" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' OPTIMIZE="-O2 -Wno-error=return-type" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" SOCKS_LIB="/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS=" ") --- RTELNET --- (cd rtelnet; /usr/pkg/bin/bmake CC="clang" OS="FreeBSD" SOCKS_LIB="/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-O2 -Wno-error=return-type" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" OTHER_CFLAGS=" ") --- server --- --- echocwd --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/sockd --- RFINGER --- --- echocwd --- --- RTELNET --- --- echocwd --- --- server --- --- sockd --- --- RFINGER --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rfinger --- RTELNET --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rtelnet --- server --- clang -I../include -I../libident -O2 -Wno-error=return-type -DSUPPORT_RCMD -o sockd sockd.c /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/libident/libident.a --- RFINGER --- --- rwhois --- --- RTELNET --- --- all --- --- RFINGER --- clang -DWHOIS_SERVER'="rs.internic.net"' -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rwhois finger.c /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a --- RTELNET --- cd libtelnet; /usr/pkg/bin/bmake FreeBSD CC="clang" OTHER_CFLAGS="" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-O2 -Wno-error=return-type" --- FreeBSD --- /usr/pkg/bin/bmake -f ../Config.local WHAT= CC=clang OPTIMIZE=-O2 -Wno-error=return-type SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= FreeBSD bmake[3]: bmake[3]: don't know how to make FreeBSD. Stop bmake[3]: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rtelnet/libtelnet *** [FreeBSD] Error code 2 (ignored) cd telnet; /usr/pkg/bin/bmake FreeBSD CC="clang" OTHER_CFLAGS="" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-O2 -Wno-error=return-type" cd: telnet: No such file or directory --- FreeBSD --- /usr/pkg/bin/bmake -f ../Config.local WHAT= CC=clang OPTIMIZE=-O2 -Wno-error=return-type SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= FreeBSD bmake[3]: bmake[3]: don't know how to make FreeBSD. Stop bmake[3]: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rtelnet/libtelnet *** [FreeBSD] Error code 2 (ignored) --- RFINGER --- --- finger.o --- --- rwhois --- finger.c:56:2: warning: implicit declaration of function 'SOCKSinit' is invalid in C99 [-Wimplicit-function-declaration] SOCKSinit(Progname); ^ finger.c:60:14: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] while ((i = getopt(argc,argv,"h:")) != EOF) { ^ finger.c:67:4: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ finger.c:67:4: note: include the header or explicitly provide a declaration for 'exit' finger.c:74:3: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(cp, " "); ^ finger.c:74:3: note: include the header or explicitly provide a declaration for 'strcat' finger.c:76:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^ finger.c:76:10: note: include the header or explicitly provide a declaration for 'strcmp' finger.c:78:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^ finger.c:78:9: note: include the header or explicitly provide a declaration for 'strlen' finger.c:101:12: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^ finger.c:112:12: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] if ((l = inet_addr(host)) == -1) { ^ --- finger.o --- clang -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c finger.c --- rwhois --- finger.c:123:4: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^ finger.c:135:20: warning: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^~~~ /usr/include/sys/socket.h:617:41: note: passing argument to parameter here int connect(int, const struct sockaddr *, socklen_t); ^ finger.c:146:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (*cp = ' ') cp++; ~~~~^~~~~ finger.c:146:10: note: place parentheses around the assignment to silence this warning if (*cp = ' ') cp++; ^ ( ) finger.c:146:10: note: use '==' to turn this assignment into an equality comparison if (*cp = ' ') cp++; ^ == finger.c:149:6: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^ finger.c:154:14: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^ finger.c:158:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(s); ^ --- server --- sockd.c:89:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); --- RFINGER --- 14 warnings generated. --- server --- ^ --- RFTP --- --- RFINGER --- --- finger.o --- finger.c:56:2: warning: implicit declaration of function 'SOCKSinit' is invalid in C99 [-Wimplicit-function-declaration] SOCKSinit(Progname); ^ finger.c:74:3: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(cp, " "); ^ finger.c:74:3: note: include the header or explicitly provide a declaration for 'strcat' finger.c:76:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^ finger.c:76:10: note: include the header or explicitly provide a declaration for 'strcmp' finger.c:78:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^ finger.c:78:9: note: include the header or explicitly provide a declaration for 'strlen' finger.c:91:3: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(cp, argv); ^ finger.c:93:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ finger.c:93:3: note: include the header or explicitly provide a declaration for 'exit' finger.c:101:12: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^ finger.c:112:12: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] if ((l = inet_addr(host)) == -1) { ^ finger.c:123:4: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^ --- RFTP --- (cd rftp; /usr/pkg/bin/bmake CC="clang" SOCKS_LIB="/var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-O2 -Wno-error=return-type" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" OTHER_CFLAGS=" ") --- echocwd --- /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rftp --- cmds.o --- clang -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c cmds.c --- server --- sockd.c:89:2: note: include the header or explicitly provide a declaration for 'exit' --- RFINGER --- finger.c:135:20: warning: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^~~~ --- server --- sockd.c:99:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ --- RFINGER --- /usr/include/sys/socket.h:617:41: note: passing argument to parameter here int connect(int, const struct sockaddr *, socklen_t); ^ --- server --- sockd.c:306:7: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] in = dup(0); ^ --- RFINGER --- finger.c:146:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (*cp = ' ') cp++; ~~~~^~~~~ --- server --- sockd.c:309:48: 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(in, (struct sockaddr *)&from, &fromlen) < 0) { ^~~~~~~~ --- RFINGER --- finger.c:146:10: note: place parentheses around the assignment to silence this warning if (*cp = ' ') cp++; ^ ( ) --- server --- /usr/include/sys/socket.h:623:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ --- RFINGER --- finger.c:146:10: note: use '==' to turn this assignment into an equality comparison if (*cp = ' ') cp++; ^ --- server --- sockd.c:320:6: warning: implicit declaration of function 'socks_GetDst' is invalid in C99 [-Wimplicit-function-declaration] --- RFINGER --- == --- server --- if (socks_GetDst(in, &dst) < 0) { ^ --- RFINGER --- finger.c:149:6: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { --- server --- sockd.c:341:9: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] --- RFINGER --- ^ --- server --- while (read(in, &c, 1) == 1) ^ --- RFINGER --- finger.c:154:14: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { --- server --- sockd.c:355:11: warning: implicit declaration of function 'Validate' is invalid in C99 [-Wimplicit-function-declaration] --- RFINGER --- ^ --- server --- permit = Validate(&from, &dstsin, in); ^ --- RFINGER --- finger.c:158:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(s); --- server --- sockd.c:387:3: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] --- RFINGER --- ^ --- server --- socks_SendDst(in, &dst); ^ --- RFINGER --- 14 warnings generated. --- rfinger --- clang -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rfinger finger.o /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a --- server --- sockd.c:393:3: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- --- cmdtab.o --- clang -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c cmdtab.c --- server --- socks_SendDst(in, &dst); ^ --- RFTP --- --- ftp.o --- --- cmds.o --- cmds.c:101:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] another(pargc, pargv, prompt) ^ cmds.c:106:12: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] int len = strlen(line), ret; ^ cmds.c:106:12: note: include the header or explicitly provide a declaration for 'strlen' cmds.c:120:2: warning: implicit declaration of function 'makeargv' is invalid in C99 [-Wimplicit-function-declaration] makeargv(); ^ cmds.c:154:10: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] port = atoi(argv[2]); ^ cmds.c:178:11: warning: implicit declaration of function 'login' is invalid in C99 [-Wimplicit-function-declaration] (void) login(argv[1]); ^ cmds.c:188:7: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("SYST") == COMPLETE && overbose) { ^ cmds.c:205:8: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { ^ cmds.c:205:8: note: include the header or explicitly provide a declaration for 'strncmp' cmds.c:277:7: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(argv[1], p->t_name) == 0) ^ cmds.c:277:7: note: include the header or explicitly provide a declaration for 'strcmp' cmds.c:285:12: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] --- ftp.o --- clang -I../include -O2 -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c ftp.c --- cmds.o --- comret = command ("TYPE %s %s", p->t_mode, p->t_arg); ^ cmds.c:318:12: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] comret = command("TYPE %s %s", p->t_mode, bytename); ^ cmds.c:419:7: warning: implicit declaration of function 'globulize' is invalid in C99 [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^ cmds.c:470:17: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:479:27: warning: comparison between pointer and integer ('int' and 'void *') while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:515:17: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], argv[i])) { ^ cmds.c:535:5: warning: implicit declaration of function 'blkfree' is invalid in C99 [-Wimplicit-function-declaration] blkfree(gargs); ^ cmds.c:536:5: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)gargs); ^ cmds.c:541:17: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], *cpp)) { ^ cmds.c:557:4: warning: implicit declaration of function 'blkfree' is invalid in C99 [-Wimplicit-function-declaration] blkfree(gargs); ^ cmds.c:558:4: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)gargs); ^ cmds.c:567:9: warning: implicit declaration of function 'getit' is invalid in C99 [-Wimplicit-function-declaration] (void) getit(argc, argv, 1, "r+w"); ^ cmds.c:570:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] get(argc, argv) ^ cmds.c:574:9: warning: implicit declaration of function 'getit' is invalid in C99 [-Wimplicit-function-declaration] (void) getit(argc, argv, 0, restart_point ? "r+w" : "w" ); ^ cmds.c:575:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:580:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getit(argc, argv, restartit, mode) ^ cmds.c:603:7: warning: implicit declaration of function 'globulize' is invalid in C99 [-Wimplicit-function-declaration] if (!globulize(&argv[2])) { ^ cmds.c:616:24: warning: comparison between pointer and integer ('int' and 'void *') while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:649:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("MDTM %s", argv[1]) == COMPLETE) { ^ cmds.c:686:6: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] argv[1] != oldargv1 || argv[2] != oldargv2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:76:75: note: passing argument to parameter 'printnames' here void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); ^ cmds.c:702:7: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (confirm("Continue with", mname)) { ^ cmds.c:730:26: warning: incompatible pointer types passing 'void (int, char **)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-pointer-types] oldintr = signal(SIGINT,mabort); ^~~~~~ /usr/include/sys/signal.h:507:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ cmds.c:737:16: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:746:26: warning: comparison between pointer and integer ('int' and 'void *') while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:763:8: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] tp != cp || !interactive); ^~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:76:75: note: passing argument to parameter 'printnames' here void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); ^ cmds.c:824:10: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] (void) unlink(temp); ^ cmds.c:904:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setbell() ^ cmds.c:910:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:916:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] settrace() ^ cmds.c:922:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:928:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sethash() ^ cmds.c:937:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:943:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setverbose() ^ cmds.c:949:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:955:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setport() ^ cmds.c:961:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:968:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setprompt() ^ cmds.c:974:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:981:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setglob() ^ cmds.c:987:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cmds.c:999:9: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] val = atoi(argv[1]); ^ cmds.c:1028:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("CWD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1053:7: warning: implicit declaration of function 'globulize' is invalid in C99 [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^ cmds.c:1057:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(argv[1]) < 0) { ^ cmds.c:1081:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("DELE %s", argv[1]); ^ cmds.c:1102:27: warning: incompatible pointer types passing 'void (int, char **)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ /usr/include/sys/signal.h:507:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ cmds.c:1109:16: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:1110:11: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("DELE %s", cp); ^ cmds.c:1139:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("RNFR %s", argv[1]) == CONTINUE) ^ cmds.c:1161:31: warning: implicit declaration of function 'globulize' is invalid in C99 [-Wimplicit-function-declaration] if (strcmp(argv[2], "-") && !globulize(&argv[2])) { ^ cmds.c:1166:32: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] if (!globulize(&argv[2]) || !confirm("output to local-file:", argv[2])) { ^ cmds.c:1196:8: warning: implicit declaration of function 'globulize' is invalid in C99 [-Wimplicit-function-declaration] if (!globulize(&dest) || ^ cmds.c:1197:8: warning: implicit declaration of function 'confirm' is invalid in C99 [-Wimplicit-function-declaration] !confirm("output to local-file:", dest)) { ^ cmds.c:1204:27: warning: incompatible pointer types passing 'void (int, char **)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ /usr/include/sys/signal.h:507:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ cmds.c:1234:20: error: variable has incomplete type 'union wait' union wait status; ^ cmds.c:1234:15: note: forward declaration of 'union wait' union wait status; ^ cmds.c:1239:13: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] if ((pid = fork()) == 0) { ^ cmds.c:1241:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(pid); ^ cmds.c:1259:4: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration] execl(shell,shellnam,"-c",altarg,(char *)0); ^ cmds.c:1262:4: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration] execl(shell,shellnam,(char *)0); ^ cmds.c:1266:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ cmds.c:1266:3: note: include the header or explicitly provide a declaration for 'exit' cmds.c:1301:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] n = command("USER %s", argv[1]); ^ cmds.c:1347:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("PWD") == ERROR && code == 500) { ^ cmds.c:1365:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("MKD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1383:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("RMD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1401:2: warning: implicit declaration of function 'quote1' is invalid in C99 [-Wimplicit-function-declaration] quote1("", argc, argv); ^ cmds.c:1417:2: warning: implicit declaration of function 'quote1' is invalid in C99 [-Wimplicit-function-declaration] quote1("SITE ", argc, argv); ^ cmds.c:1424:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] quote1(initial, argc, argv) ^ cmds.c:1441:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command(buf) == PRELIM) { ^ cmds.c:1442:10: warning: implicit declaration of function 'getreply' is invalid in C99 [-Wimplicit-function-declaration] while (getreply(0) == PRELIM); ^ cmds.c:1457:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("SITE CHMOD %s %s", argv[1], argv[2]); ^ cmds.c:1465:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command(argc == 1 ? "SITE UMASK" : "SITE UMASK %s", argv[1]); ^ cmds.c:1469:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] idle(argc, argv) ^ cmds.c:1476:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command(argc == 1 ? "SITE IDLE" : "SITE IDLE %s", argv[1]); ^ cmds.c:1483:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] rmthelp(argc, argv) ^ cmds.c:1490:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command(argc == 1 ? "HELP" : "HELP %s", argv[1]); ^ cmds.c:1498:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] quit() ^ cmds.c:1520:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("QUIT"); ^ cmds.c:1532:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] confirm(cmd, file) ^ cmds.c:1546:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fatal(msg) ^ cmds.c:1560:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] globulize(cpp) ^ cmds.c:1571:4: warning: implicit declaration of function 'blkfree' is invalid in C99 [-Wimplicit-function-declaration] blkfree(globbed); ^ cmds.c:1572:4: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)globbed); ^ cmds.c:1580:4: warning: implicit declaration of function 'blkfree' is invalid in C99 [-Wimplicit-function-declaration] blkfree(globbed); ^ cmds.c:1581:4: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)globbed); ^ cmds.c:1587:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] account(argc,argv) ^ cmds.c:1608:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("ACCT %s", ap); ^ cmds.c:1689:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setcase() ^ cmds.c:1696:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setcr() ^ cmds.c:1950:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setsunique() ^ cmds.c:1957:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setrunique() ^ cmds.c:1965:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] cdup() ^ cmds.c:1967:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("CDUP") == ERROR && code == 500) { ^ cmds.c:1990:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("SYST"); ^ cmds.c:2062:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command("SIZE %s", argv[1]); ^ cmds.c:2080:6: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] if (command("MDTM %s", argv[1]) == COMPLETE) { ^ cmds.c:2097:9: warning: implicit declaration of function 'command' is invalid in C99 [-Wimplicit-function-declaration] (void) command(argc > 1 ? "STAT %s" : "STAT" , argv[1]); ^ cmds.c:2103:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] newer(argc, argv) ^ 104 warnings and 1 error generated. *** [cmds.o] Error code 1 bmake[1]: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rftp --- server --- sockd.c:415:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(60*2); ^ --- RFTP --- --- ftp.o --- ftp.c:175:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero((char *)&hisctladdr, sizeof (hisctladdr)); ^ --- server --- sockd.c:418:3: warning: implicit declaration of function 'DoConnect' is invalid in C99 [-Wimplicit-function-declaration] DoConnect(in, &dst); ^ --- RFTP --- ftp.c:175:2: note: include the header or explicitly provide a declaration for 'bzero' --- server --- sockd.c:421:3: warning: implicit declaration of function 'DoNewBind' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:176:31: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] --- server --- DoNewBind(in, &dst); --- RFTP --- hisctladdr.sin_addr.s_addr = inet_addr(host); --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:425:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- RFTP --- ftp.c:189:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] --- server --- socks_fail(str, in, ndst) --- RFTP --- bcopy(hp->h_addr_list[0], --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:432:2: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:211:4: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] --- server --- socks_SendDst(in, ndst); --- RFTP --- bcopy(hp->h_addr_list[0], --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:440:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- RFTP --- ftp.c:215:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] --- server --- DoConnect(in, dst) --- RFTP --- (void) close(s); --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:460:14: warning: implicit declaration of function 'rresvport' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:230:52: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] --- server --- if ((out = rresvport(&outport)) < 0) --- RFTP --- if (getsockname(s, (struct sockaddr *)&myctladdr, &len) < 0) { --- server --- ^ --- RFTP --- ^~~~ --- server --- sockd.c:466:24: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- /usr/include/sys/socket.h:624:74: note: passing argument to parameter here --- server --- fcntl(out, F_SETOWN, getpid()); --- RFTP --- int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:490:2: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:257:6: warning: implicit declaration of function 'getreply' is invalid in C99 [-Wimplicit-function-declaration] --- server --- socks_SendDst(in, &ndst); --- RFTP --- if (getreply(0) > 2) { /* read startup message from server */ --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:491:2: warning: implicit declaration of function 'Pump' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:278:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] --- server --- Pump(in, out); --- RFTP --- (void) close(s); --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:494:1: warning: control reaches end of non-void function [-Wreturn-type] --- RFTP --- ftp.c:282:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- server --- } --- RFTP --- login(host) --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:502:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- RFTP --- ftp.c:290:6: warning: implicit declaration of function 'ruserpass' is invalid in C99 [-Wimplicit-function-declaration] --- server --- DoNewBind(in, dst) --- RFTP --- if (ruserpass(host, &user, &pass, &acct) < 0) { --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:535:13: warning: implicit declaration of function 'rresvport' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:308:7: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] --- server --- if((out = rresvport(&outport)) < 0) --- RFTP --- tmp[strlen(tmp) - 1] = '\0'; --- server --- ^ --- RFTP --- ^ --- server --- sockd.c:544:24: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] --- RFTP --- ftp.c:308:7: note: include the header or explicitly provide a declaration for 'strlen' --- server --- fcntl(out, F_SETOWN, getpid()); ^ --- RFTP --- ftp.c:317:8: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(user, "anonymous") == 0) { --- server --- sockd.c:559:48: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] --- RFTP --- ^ --- server --- if (getsockname(out, (struct sockaddr *)&sin, &len) < 0) ^~~~ --- RFTP --- ftp.c:317:8: note: include the header or explicitly provide a declaration for 'strcmp' --- server --- /usr/include/sys/socket.h:624:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ --- RFTP --- ftp.c:343:4: warning: implicit declaration of function 'makeargv' is invalid in C99 [-Wimplicit-function-declaration] makeargv(); ^ --- server --- sockd.c:571:2: warning: implicit declaration of function 'socks_SendDst' is invalid in C99 [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^ --- RFTP --- ftp.c:344:4: warning: implicit declaration of function 'domacro' is invalid in C99 [-Wimplicit-function-declaration] domacro(margc, margv); ^ --- server --- sockd.c:574:50: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((new = accept(out, (struct sockaddr *)&sin, &len)) < 0) ^~~~ --- RFTP --- ftp.c:376:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp("PASS ", fmt, 5) == 0) ^ --- server --- /usr/include/sys/socket.h:615:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ --- RFTP --- ftp.c:376:7: note: include the header or explicitly provide a declaration for 'strncmp' --- server --- sockd.c:579:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(out); --- RFTP --- ftp.c:396:6: warning: implicit declaration of function 'getreply' is invalid in C99 [-Wimplicit-function-declaration] --- server --- ^ --- RFTP --- r = getreply(!strcmp(fmt, "QUIT")); ^ --- server --- sockd.c:609:2: warning: implicit declaration of function 'Pump' is invalid in C99 [-Wimplicit-function-declaration] Pump(in, new); --- RFTP --- ftp.c:407:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- server --- ^ --- RFTP --- getreply(expecteof) ^ --- server --- sockd.c:612:1: warning: control may reach end of non-void function [-Wreturn-type] } --- RFTP --- ftp.c:461:30: warning: '&&' within '||' [-Wlogical-op-parentheses] --- server --- ^ --- RFTP --- (dig == 1 || dig == 5 && verbose == 0)) ~~ ~~~~~~~~~^~~~~~~~~~~~~~~ --- server --- sockd.c:617:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Pump(in, out) --- RFTP --- ftp.c:461:30: note: place parentheses around the '&&' expression to silence this warning --- server --- ^ --- RFTP --- (dig == 1 || dig == 5 && verbose == 0)) ^ ( ) --- server --- sockd.c:628:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(0); ^ --- RFTP --- ftp.c:489:35: warning: '&&' within '||' [-Wlogical-op-parentheses] if (verbose > 0 || verbose > -1 && n == '5') { ~~ ~~~~~~~~~~~~~^~~~~~~~~~~ --- server --- sockd.c:655:14: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if ((n = read(in, buf, sizeof buf)) > 0) { ^ --- RFTP --- ftp.c:489:35: note: place parentheses around the '&&' expression to silence this warning if (verbose > 0 || verbose > -1 && n == '5') { ^ ( ) --- server --- sockd.c:657:10: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if (write(out, buf, n) < 0) { ^ --- RFTP --- ftp.c:510:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] empty(mask, sec) ^ --- server --- sockd.c:665:14: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if ((n = read(out, buf, sizeof buf)) > 0) { ^ --- RFTP --- ftp.c:559:3: warning: implicit declaration of function 'changetype' is invalid in C99 [-Wimplicit-function-declaration] changetype(type, 0); ^ --- server --- sockd.c:667:10: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if (write(in, buf, n) < 0) { ^ --- RFTP --- ftp.c:569:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ --- server --- sockd.c:684:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ --- RFTP --- ftp.c:612:6: warning: implicit declaration of function 'initconn' is invalid in C99 [-Wimplicit-function-declaration] if (initconn()) { ^ --- server --- sockd.c:874:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] check_sp_conf(fd, s, src, dst) ^ --- RFTP --- ftp.c:672:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while ((c = read(fileno(fin), buf, sizeof (buf))) > 0) { ^ --- server --- sockd.c:884:4: warning: implicit declaration of function 'socks_shell_cmd' is invalid in C99 [-Wimplicit-function-declaration] socks_shell_cmd(buf+strlen(s), src, dst); ^ --- RFTP --- ftp.c:675:14: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if ((d = write(fileno(dout), bufp, c)) <= 0) ^ --- server --- sockd.c:888:2: warning: non-void function 'check_sp_conf' should return a value [-Wreturn-type] return; ^ --- RFTP --- ftp.c:717:32: warning: '/*' within block comment [-Wcomment] /* (void) putc('\0', dout); /* this violates rfc */ ^ --- server --- sockd.c:891:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Validate(src, dst, in) ^ --- RFTP --- ftp.c:749:3: warning: implicit declaration of function 'ptransfer' is invalid in C99 [-Wimplicit-function-declaration] ptransfer("sent", bytes, &start, &stop); ^ --- server --- sockd.c:1129:4: warning: implicit declaration of function 'socks_shell_cmd' is invalid in C99 [-Wimplicit-function-declaration] socks_shell_cmd(cmdp, src, dst); ^ --- RFTP --- ftp.c:762:10: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ --- server --- sockd.c:1155:3: warning: implicit declaration of function 'socks_shell_cmd' is invalid in C99 [-Wimplicit-function-declaration] socks_shell_cmd(cmdp, src, dst); ^ --- RFTP --- ftp.c:776:3: warning: implicit declaration of function 'ptransfer' is invalid in C99 [-Wimplicit-function-declaration] ptransfer("sent", bytes, &start, &stop); ^ --- server --- 42 warnings generated. A failure has been detected in another branch of the parallel make bmake[1]: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/sockd *** [server] Error code 2 bmake: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2 --- RFTP --- ftp.c:808:8: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc(); ^ ftp.c:808:8: note: 'malloc' is a builtin with type 'void *(unsigned long)' ftp.c:830:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ ftp.c:840:7: warning: implicit declaration of function 'access' is invalid in C99 [-Wimplicit-function-declaration] if (access(local, 2) < 0) { ^ ftp.c:886:4: warning: implicit declaration of function 'changetype' is invalid in C99 [-Wimplicit-function-declaration] changetype(TYPE_A, 0); ^ ftp.c:888:3: warning: implicit declaration of function 'changetype' is invalid in C99 [-Wimplicit-function-declaration] changetype(type, 0); ^ ftp.c:889:6: warning: implicit declaration of function 'initconn' is invalid in C99 [-Wimplicit-function-declaration] if (initconn()) { ^ ftp.c:940:11: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] (void) free(buf); ^ ftp.c:975:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while ((c = read(fileno(din), buf, bufsize)) > 0) { ^ ftp.c:976:13: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if ((d = write(fileno(fout), buf, c)) != c) ^ ftp.c:1096:3: warning: implicit declaration of function 'ptransfer' is invalid in C99 [-Wimplicit-function-declaration] ptransfer("received", bytes, &start, &stop); ^ ftp.c:1113:2: warning: implicit declaration of function 'abort_remote' is invalid in C99 [-Wimplicit-function-declaration] abort_remote(din); ^ ftp.c:1116:10: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ ftp.c:1127:3: warning: implicit declaration of function 'ptransfer' is invalid in C99 [-Wimplicit-function-declaration] ptransfer("received", bytes, &start, &stop); ^ ftp.c:1138:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] initconn() ^ ftp.c:1188:10: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ ftp.c:1209: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 (getsockname(data, (struct sockaddr *)&data_addr, &len) < 0) { ^~~~ /usr/include/sys/socket.h:624:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ftp.c:1258:46: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] s = accept(data, (struct sockaddr *) &from, &fromlen); ^~~~~~~~ /usr/include/sys/socket.h:615:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ftp.c:1261:10: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data), data = -1; ^ ftp.c:1264:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void) close(data); ^ ftp.c:1274:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ptransfer(direction, bytes, t0, t1) ^ ftp.c:1283:3: warning: implicit declaration of function 'tvsub' is invalid in C99 [-Wimplicit-function-declaration] tvsub(&td, t1, t0); ^ ftp.c:1290:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ftp.c:1302:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tvsub(tdiff, t1, t0) ^ ftp.c:1310:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ftp.c:1446:3: warning: implicit declaration of function 'changetype' is invalid in C99 [-Wimplicit-function-declaration] changetype(prox_type, 1); ^ ftp.c:1472:2: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(2); ^ ftp.c:1497:5: warning: implicit declaration of function 'abort_remote' is invalid in C99 [-Wimplicit-function-declaration] abort_remote((FILE *) NULL); ^ ftp.c:1506:3: warning: implicit declaration of function 'abort_remote' is invalid in C99 [-Wimplicit-function-declaration] abort_remote((FILE *) NULL); ^ ftp.c:1545:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] reset() ^ ftp.c:1562:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ftp.c:1575:6: warning: implicit declaration of function 'access' is invalid in C99 [-Wimplicit-function-declaration] d = access(cp ? local : ".", 2); ^ ftp.c:1610:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] abort_remote(din) ^ ftp.c:1640:10: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] while (read(fileno(din), buf, BUFSIZ) > 0) ^ ftp.c:1648:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 63 warnings generated. 1 error bmake[1]: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2/rftp *** [RFTP] Error code 2 bmake: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2 2 errors bmake: stopped in /var/pkgsrc/work/net/socks4/work/socks.cstc.4.2 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/net/socks4 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/socks4