=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for socks4-2.2nb1 --- LIB --- --- LIBIDENT --- --- LIB --- (cd lib; /opt/pkg/bin/bmake CC="clang" GETPASS="" OPTIMIZE="-pipe -Os -Wno-error=return-type" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS=" " RANLIB="ranlib") --- LIBIDENT --- (cd libident; /opt/pkg/bin/bmake CC="clang" OTHER_CFLAGS="" OPTIMIZE="-pipe -Os -Wno-error=return-type" RANLIB="ranlib") --- LIB --- --- echocwd --- --- LIBIDENT --- --- echocwd --- --- ident.o --- --- LIB --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib --- LIBIDENT --- --- echocwd --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/libident --- ident.o --- clang -pipe -Os -Wno-error=return-type -c ident.c --- LIB --- --- Rconnect.o --- --- LIBIDENT --- --- id_open.o --- --- LIB --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c Rconnect.c --- LIBIDENT --- clang -pipe -Os -Wno-error=return-type -c id_open.c --- ident.o --- 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) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:704:78: 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) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- id_open.o --- id_open.c:60:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] extern void *malloc __P((int size)); ^ --- ident.o --- ident.c:76:21: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ident = (IDENT *) malloc(sizeof(IDENT)); ^ ident.c:76:21: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc' ident.c:98:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(ident); ^ ident.c:98:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'free' --- id_open.o --- id_open.c:60:14: note: 'malloc' is a builtin with type 'void *(unsigned long)' id_open.c:90:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(id); ^ id_open.c:90:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'free' id_open.c:172:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(id->fd); ^ --- LIB --- Rconnect.c:66:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int check_result(code) ^ Rconnect.c:129:2: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gethostname(socks_src_name, sizeof(socks_src_name)); ^ Rconnect.c:139:18: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((ns = getenv("SOCKS_NS")) == NULL) { ^ Rconnect.c:146:18: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((dp = getenv("SOCKS_DNAME")) == NULL) { ^ Rconnect.c:165:41: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] _res.nsaddr_list[0].sin_addr.s_addr = inet_addr(ns); ^ Rconnect.c:193:32: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((socks_def_server = getenv("SOCKS_SERVER")) == NULL) ^ Rconnect.c:196:18: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((cp = getenv("SOCKS_BANNER")) != NULL) { ^ Rconnect.c:202:15: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SocksHost = inet_addr(socks_server); ^ Rconnect.c:211:26: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=getuid())) == NULL) { ^ Rconnect.c:219:25: warning: call to undeclared function 'geteuid'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_nsin.sin_addr.s_addr = inet_addr(socks_server); ^ Rconnect.c:279:16: warning: call to undeclared function 'rresvport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] new_sock = rresvport(lport); ^ Rconnect.c:289:8: warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (dup2(new_sock, sock) < 0) { ^ Rconnect.c:290:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(new_sock); ^ Rconnect.c:293:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(new_sock); ^ Rconnect.c:297:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(new_sock); ^ Rconnect.c:232:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int connect_sockd(sock, lport) ^ Rconnect.c:343:11: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if((n = write(s, p, i)) <= 0) { ^ Rconnect.c:320:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int send_src_user(s, user) ^ Rconnect.c:359:13: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((sta = socks_SendDst(s, dst)) < 0) { ^ Rconnect.c:373:13: warning: call to undeclared function 'socks_GetDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((sta = socks_GetDst(s, dst)) < 0) { ^ Rconnect.c:353:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int socksC_proto(s, dst) ^ Rconnect.c:386:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(SOCKS_FAIL); ^ Rconnect.c:386:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' Rconnect.c:397:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] alarm(CLIENT_CONN_TIMEOUT); ^ Rconnect.c:389:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void do_C_proto(sock, port, addr) ^ Rconnect.c:416:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Rconnect(sock, sin, size) ^ int Rconnect.c:443:20: warning: passing arguments to 'socks_saddrtoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_saddrtoname(&sin->sin_addr, socks_dst_name, sizeof(socks_dst_name)); ^ Rconnect.c:444:19: warning: passing arguments to 'socks_porttoserv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_porttoserv(sin->sin_port, socks_dst_serv, sizeof(socks_dst_serv)); ^ 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: call to undeclared function 'socks_check_cconf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] direct = socks_check_cconf(&me, sin); ^ Rconnect.c:600:22: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^ Rconnect.c:416:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Rconnect(sock, sin, size) ^ Rconnect.c:639:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Rbind(sock, sin, size, dsthost) ^ int Rconnect.c:672:19: warning: passing arguments to 'socks_saddrtoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_saddrtoname(&remhost, socks_dst_name, sizeof(socks_dst_name)); ^ Rconnect.c:674:18: warning: passing arguments to 'socks_porttoserv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_porttoserv(socks_last_conn_port, socks_dst_serv, sizeof(socks_dst_serv)); ^ Rconnect.c:683:11: warning: call to undeclared function 'socks_check_cconf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] direct = socks_check_cconf(&me, &psin); ^ Rconnect.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Rbind(sock, sin, size, dsthost) ^ Rconnect.c:780:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Rlisten(s, n) ^ int Rconnect.c:780:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Rconnect.c:797:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Rgetsockname(sock, sin, size) ^ int 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)); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ Rconnect.c:797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Rgetsockname(sock, sin, size) ^ Rconnect.c:823:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Raccept(sock, sin, size) ^ int 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)); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ Rconnect.c:847:4: warning: call to undeclared function 'socks_GetDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_GetDst(sock, &dst); ^ Rconnect.c:851:11: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return(dup(sock)); ^ Rconnect.c:823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Raccept(sock, sin, size) ^ Rconnect.c:856:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int Rselect(width, readfds, writefds, exceptfds, timeout) ^ --- LIBIDENT --- --- ident.o --- 4 warnings generated. --- id_open.o --- 3 warnings generated. --- id_close.o --- --- id_query.o --- --- id_close.o --- clang -pipe -Os -Wno-error=return-type -c id_close.c --- id_query.o --- clang -pipe -Os -Wno-error=return-type -c id_query.c --- id_close.o --- id_close.c:19:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] res = close(id->fd); ^ id_close.c:20:3: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(id); ^ id_close.c:20:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'free' 2 warnings generated. --- id_parse.o --- clang -pipe -Os -Wno-error=return-type -c id_parse.c --- id_query.o --- id_query.c:63:9: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^ id_query.c:63:28: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^ id_query.c:63:28: note: include the header <string.h> or explicitly provide a declaration for 'strlen' 2 warnings generated. --- id_parse.o --- id_parse.c:148:10: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (res = read(id->fd, id->buf + pos, 1)) == 1 && ^ --- LIB --- 50 warnings generated. --- SendGetDst.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c SendGetDst.c --- saddrtoname.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c saddrtoname.c saddrtoname.c:14:3: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strncpy(name, host->h_name, namelen); ^ saddrtoname.c:14:3: note: include the header <string.h> or explicitly provide a declaration for 'strncpy' saddrtoname.c:16:17: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-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); ^~~~~~~~~~~~~~~~ saddrtoname.c:6:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *socks_saddrtoname(addr, name, namelen) ^ --- SendGetDst.o --- SendGetDst.c:13:9: warning: 'NULL' macro redefined [-Wmacro-redefined] #define NULL ((char *)0) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/_types/_null.h:30:9: note: previous definition is here #define NULL __DARWIN_NULL ^ SendGetDst.c:28:2: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-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) ^~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/_select.h:43:41: 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) ^~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/_select.h:44:24: note: passing argument to parameter here fd_set * __restrict, struct timeval * __restrict) ^ SendGetDst.c:46:11: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if((n = write(s, p, i)) > 0) { ^ SendGetDst.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int socks_SendDst(s, dst) ^ 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) ^~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/_select.h:43:62: 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) ^~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/_select.h:44:24: note: passing argument to parameter here fd_set * __restrict, struct timeval * __restrict) ^ SendGetDst.c:85:11: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^ SendGetDst.c:98:2: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bcopy(c+2, &dst->port, sizeof(dst->port)); ^ SendGetDst.c:59:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int socks_GetDst(s, dst) ^ --- saddrtoname.o --- 4 warnings generated. --- porttoserv.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c porttoserv.c porttoserv.c:15:3: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strncpy(name, serv->s_name, namelen); ^ porttoserv.c:15:3: note: include the header <string.h> or explicitly provide a declaration for 'strncpy' porttoserv.c:17:3: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(name, "%u", port); ^ porttoserv.c:17:3: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf' porttoserv.c:6:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *socks_porttoserv(sin_port, name, namelen) ^ --- LIBIDENT --- 1 warning generated. --- libident.a --- rm -f libident.a --- LIB --- --- SendGetDst.o --- 11 warnings generated. --- check_cconf.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c check_cconf.c --- LIBIDENT --- ar cq libident.a ident.o id_open.o id_close.o id_query.o id_parse.o ranlib libident.a --- LIB --- --- porttoserv.o --- 3 warnings generated. --- shell_cmd.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c shell_cmd.c --- check_cconf.o --- check_cconf.c:34:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] --- check_user.o --- --- check_cconf.o --- socks_check_cconf(src, dst) ^ int check_cconf.c:46:17: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] self.s_addr = inet_addr("127.0.0.1"); ^ check_cconf.c:61:23: warning: passing arguments to 'socks_check_user' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_check_user(confPtr->userlist, socks_src_user)) { ^ --- check_user.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c check_user.c --- check_cconf.o --- check_cconf.c:83:3: warning: call to undeclared function 'socks_shell_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_shell_cmd(confPtr->cmdp, src, dst); ^ check_cconf.c:34:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_check_cconf(src, dst) ^ check_cconf.c:88:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static read_cconf(void) ~~~~~~ ^ int check_cconf.c:131:15: warning: passing arguments to 'socks_mkargs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_mkargs(buf, &argc, argv, 7); ^ check_cconf.c:142:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ check_cconf.c:142:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' check_cconf.c:181:20: warning: passing arguments to 'socks_GetAddr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetAddr(*(argv +next_arg++), &daddr) == -1){ ^ check_cconf.c:185:20: warning: passing arguments to 'socks_GetQuad' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetQuad(*(argv +next_arg++), &dmask) == -1) { ^ check_cconf.c:207:27: warning: passing arguments to 'socks_GetPort' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (((p = socks_GetPort(*(argv +next_arg+1))) < 0) || ^ check_cconf.c:251:25: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (struct config **) malloc(CONF_INCR *sizeof(struct config **)); ^ check_cconf.c:251:25: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc' check_cconf.c:253:6: warning: call to undeclared library function 'realloc' with type 'void *(void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); ^ check_cconf.c:253:6: note: include the header <stdlib.h> or explicitly provide a declaration for 'realloc' --- shell_cmd.o --- shell_cmd.c:64:26: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int daemon_pid = getpid(); ^ shell_cmd.c:66:14: warning: passing arguments to 'percent_x' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] percent_x(cmd, sizeof(cmd), string, src, dst, daemon_pid); ^ shell_cmd.c:67:9: warning: call to undeclared library function 'strpbrk' with type 'char *(const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strpbrk(cmd, alpha_num) == NULL) { ^ shell_cmd.c:67:9: note: include the header <string.h> or explicitly provide a declaration for 'strpbrk' shell_cmd.c:77:25: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^ shell_cmd.c:82:10: warning: passing arguments to 'do_child' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_child(daemon_pid, cmd); ^ shell_cmd.c:85:21: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) ^ shell_cmd.c:55:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void socks_shell_cmd(string, src, dst) ^ shell_cmd.c:106:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) close(tmp_fd); ^ shell_cmd.c:110:9: warning: call to undeclared function 'open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (open("/dev/null", 2) != 0) { ^ shell_cmd.c:112:16: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^ shell_cmd.c:115:9: warning: call to undeclared function 'execl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); ^ shell_cmd.c:92:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void do_child(daemon_pid, command) ^ shell_cmd.c:50:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void do_child(); ^ shell_cmd.c:202:22: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] expansion_len = strlen(expansion); ^ shell_cmd.c:202:22: note: include the header <string.h> or explicitly provide a declaration for 'strlen' shell_cmd.c:150:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void percent_x(result, result_len, str, src, dst, pid) ^ shell_cmd.c:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void percent_x(); ^ --- check_user.o --- check_user.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void socks_mkargs(cp, argc, argv, max) ^ check_user.c:59:22: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((addr->s_addr = inet_addr(dotquad)) != (u_int32) -1) ^ check_user.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int socks_GetQuad(dotquad, addr) ^ 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:70:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int socks_GetAddr(name, addr) ^ check_user.c:101:9: warning: call to undeclared function 'atol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return atol(name); ^ check_user.c:90:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long socks_GetPort(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); ^ == check_user.c:105:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int socks_check_user(userlist, src_user) ^ --- shell_cmd.o --- 16 warnings generated. --- null_syslog.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c null_syslog.c --- check_user.o --- 10 warnings generated. --- Rrcmd.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c Rrcmd.c --- null_syslog.o --- null_syslog.c:20:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] socks_0openlog(ident, log_opt, fac) ^ int null_syslog.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] null_syslog.c:26:1: warning: non-void function does not return a value [-Wreturn-type] } ^ null_syslog.c:28:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] socks_0closelog() ^ int null_syslog.c:31:1: warning: non-void function does not return a value [-Wreturn-type] } ^ null_syslog.c:33:9: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] VARARGS(socks_0syslog, int, prio) ^ int null_syslog.c:10:32: note: expanded from macro 'VARARGS' #define VARARGS(func,type,arg) func(type arg, ...) ^ null_syslog.c:40:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- check_cconf.o --- 13 warnings generated. --- null_syslog.o --- 7 warnings generated. --- Rrcmd.o --- Rrcmd.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) ^ int Rrcmd.c:96:7: warning: 'rresvport' is deprecated [-Wdeprecated-declarations] s = rresvport(&lport); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/unistd.h:708:1: note: 'rresvport' has been explicitly marked deprecated here __deprecated int rresvport(int *); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ Rrcmd.c:125:7: warning: call to undeclared function 'Rconnect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (Rconnect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) ^ Rrcmd.c:167:12: warning: 'rresvport' is deprecated [-Wdeprecated-declarations] int s2 = rresvport(&lport), s3; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/unistd.h:708:1: note: 'rresvport' has been explicitly marked deprecated here __deprecated int rresvport(int *); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ Rrcmd.c:186:7: warning: call to undeclared function 'Rbind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (Rbind(s2, (struct sockaddr *)&tsin, sizeof(tsin), ^ Rrcmd.c:193:7: warning: call to undeclared function 'Rgetsockname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (Rgetsockname(s2, (struct sockaddr *)&tsin, &tlen) < 0) { ^ Rrcmd.c:198:3: warning: call to undeclared function 'Rlisten'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Rlisten(s2, 1); ^ Rrcmd.c:228:8: warning: call to undeclared function 'Raccept'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] s3 = Raccept(s2, (struct sockaddr *)&from, &len); ^ Rrcmd.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) ^ 9 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; /opt/pkg/bin/bmake CC="clang" RESOLV_LIB="" OPTIMIZE="-pipe -Os -Wno-error=return-type" SOCKS_LIB="/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" SUPPORT_RCMD="-DSUPPORT_RCMD" IDENT_LIB="/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/libident/libident.a" OTHER_CFLAGS=" ") --- RFINGER --- (cd rfinger; /opt/pkg/bin/bmake CC="clang" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' OPTIMIZE="-pipe -Os -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="/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS=" ") --- RTELNET --- (cd rtelnet; /opt/pkg/bin/bmake CC="clang" OS="Darwin" SOCKS_LIB="/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-pipe -Os -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 --- --- server --- --- echocwd --- --- RFINGER --- --- echocwd --- --- RTELNET --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rtelnet --- server --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/sockd --- RFINGER --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rfinger --- RTELNET --- --- all --- --- server --- --- sockd --- --- RFINGER --- --- rwhois --- --- RTELNET --- cd libtelnet; /opt/pkg/bin/bmake Darwin CC="clang" OTHER_CFLAGS="" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-pipe -Os -Wno-error=return-type" --- server --- clang -I../include -I../libident -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -o sockd sockd.c /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/libident/libident.a --- RFINGER --- clang -DWHOIS_SERVER'="rs.internic.net"' -I../include -pipe -Os -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rwhois finger.c /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a --- RTELNET --- --- Darwin --- /opt/pkg/bin/bmake -f ../Config.local WHAT= CC=clang OPTIMIZE=-pipe -Os -Wno-error=return-type SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= Darwin bmake[3]: bmake[3]: don't know how to make Darwin. Stop bmake[3]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rtelnet/libtelnet *** [Darwin] Error code 2 (ignored) cd telnet; /opt/pkg/bin/bmake Darwin CC="clang" OTHER_CFLAGS="" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-pipe -Os -Wno-error=return-type" mksh: <stdin>[6]: cd: /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rtelnet/libtelnet/telnet: No such file or directory --- Darwin --- /opt/pkg/bin/bmake -f ../Config.local WHAT= CC=clang OPTIMIZE=-pipe -Os -Wno-error=return-type SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= Darwin bmake[3]: bmake[3]: don't know how to make Darwin. Stop bmake[3]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rtelnet/libtelnet *** [Darwin] Error code 2 (ignored) --- RFTP --- (cd rftp; /opt/pkg/bin/bmake CC="clang" SOCKS_LIB="/Users/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-pipe -Os -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 --- /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rftp --- cmds.o --- clang -I../include -pipe -Os -Wno-error=return-type -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c cmds.c --- RFINGER --- finger.c:56:2: warning: call to undeclared function 'SOCKSinit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SOCKSinit(Progname); ^ finger.c:60:14: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((i = getopt(argc,argv,"h:")) != EOF) { ^ finger.c:67:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ finger.c:67:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' finger.c:74:3: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] strcat(cp, " "); ^ finger.c:74:3: note: include the header <string.h> or explicitly provide a declaration for 'strcat' finger.c:76:10: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^ finger.c:76:10: note: include the header <string.h> or explicitly provide a declaration for 'strcmp' finger.c:78:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^ finger.c:78:9: note: include the header <string.h> or explicitly provide a declaration for 'strlen' finger.c:101:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^ finger.c:112:12: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((l = inet_addr(host)) == -1) { ^ finger.c:123:4: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-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) { ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:703:45: note: passing argument to parameter here int connect(int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS_C(connect); ^ 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: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^ finger.c:154:14: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^ finger.c:158:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(s); ^ finger.c:21:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ --- server --- sockd.c:89:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ sockd.c:89:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' sockd.c:99:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int sockd.c:306:7: warning: call to undeclared function 'dup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] in = dup(0); ^ 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) { ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:704:78: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ sockd.c:318:19: warning: passing arguments to 'socks_saddrtoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_saddrtoname(&from.sin_addr, socks_src_name, sizeof(socks_src_name)); ^ sockd.c:320:6: warning: call to undeclared function 'socks_GetDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (socks_GetDst(in, &dst) < 0) { ^ sockd.c:341:9: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (read(in, &c, 1) == 1) ^ sockd.c:352:20: warning: passing arguments to 'socks_saddrtoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_saddrtoname(&dstsin.sin_addr, socks_dst_name, sizeof(socks_dst_name)); ^ sockd.c:353:18: warning: passing arguments to 'socks_porttoserv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_porttoserv(dstsin.sin_port, socks_dst_serv, sizeof(socks_dst_serv)); ^ sockd.c:355:11: warning: call to undeclared function 'Validate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] permit = Validate(&from, &dstsin, in); ^ sockd.c:387:3: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_SendDst(in, &dst); ^ sockd.c:393:3: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_SendDst(in, &dst); ^ sockd.c:415:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] alarm(60*2); ^ sockd.c:418:3: warning: call to undeclared function 'DoConnect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DoConnect(in, &dst); ^ sockd.c:421:3: warning: call to undeclared function 'DoNewBind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DoNewBind(in, &dst); ^ sockd.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ sockd.c:425:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] socks_fail(str, in, ndst) ^ int sockd.c:432:2: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_SendDst(in, ndst); ^ sockd.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_fail(str, in, ndst) ^ sockd.c:440:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DoConnect(in, dst) ^ int sockd.c:460:14: warning: call to undeclared function 'rresvport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((out = rresvport(&outport)) < 0) ^ sockd.c:466:24: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fcntl(out, F_SETOWN, getpid()); ^ sockd.c:490:2: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^ sockd.c:491:2: warning: call to undeclared function 'Pump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Pump(in, out); ^ sockd.c:440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoConnect(in, dst) ^ sockd.c:494:1: warning: non-void function does not return a value [-Wreturn-type] } ^ sockd.c:502:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DoNewBind(in, dst) ^ int sockd.c:535:13: warning: call to undeclared function 'rresvport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if((out = rresvport(&outport)) < 0) ^ sockd.c:544:24: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fcntl(out, F_SETOWN, getpid()); ^ 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] if (getsockname(out, (struct sockaddr *)&sin, &len) < 0) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ sockd.c:571:2: warning: call to undeclared function 'socks_SendDst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_SendDst(in, &ndst); ^ 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) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ sockd.c:579:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(out); ^ sockd.c:584:20: warning: passing arguments to 'socks_saddrtoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_saddrtoname(&sin.sin_addr, socks_dst_name, sizeof(socks_dst_name)); ^ sockd.c:585:18: warning: passing arguments to 'socks_porttoserv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_porttoserv(sin.sin_port, socks_dst_serv, sizeof(socks_dst_serv)); ^ sockd.c:609:2: warning: call to undeclared function 'Pump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Pump(in, new); ^ sockd.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoNewBind(in, dst) ^ sockd.c:612:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ sockd.c:617:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Pump(in, out) ^ int sockd.c:628:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] alarm(0); ^ sockd.c:655:14: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((n = read(in, buf, sizeof buf)) > 0) { ^ sockd.c:657:10: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (write(out, buf, n) < 0) { ^ sockd.c:665:14: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((n = read(out, buf, sizeof buf)) > 0) { ^ sockd.c:667:10: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (write(in, buf, n) < 0) { ^ sockd.c:617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pump(in, out) ^ sockd.c:684:1: warning: non-void function does not return a value [-Wreturn-type] } ^ sockd.c:874:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] check_sp_conf(fd, s, src, dst) ^ int sockd.c:884:4: warning: call to undeclared function 'socks_shell_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_shell_cmd(buf+strlen(s), src, dst); ^ sockd.c:888:2: warning: non-void function 'check_sp_conf' should return a value [-Wreturn-type] return; ^ sockd.c:874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_sp_conf(fd, s, src, dst) ^ sockd.c:891:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Validate(src, dst, in) ^ int sockd.c:896:11: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] IDENT *ident_lookup(), *idp; ^ ../libident/ident.h:83:15: note: conflicting prototype is here extern IDENT *ident_lookup __P((int fd, int timeout)); ^ sockd.c:960:15: warning: passing arguments to 'socks_mkargs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_mkargs(buf, &argc, argv, 8); ^ sockd.c:1012:20: warning: passing arguments to 'socks_GetAddr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetAddr(argv[next_arg++], &saddr) == -1) { ^ sockd.c:1016:20: warning: passing arguments to 'socks_GetQuad' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetQuad(argv[next_arg++], &smask) == -1) { ^ sockd.c:1025:21: warning: passing arguments to 'socks_GetAddr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetAddr(argv[next_arg++], &daddr) == -1) { ^ sockd.c:1029:21: warning: passing arguments to 'socks_GetQuad' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (socks_GetQuad(argv[next_arg++], &dmask) == -1) { ^ sockd.c:1056:27: warning: passing arguments to 'socks_GetPort' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (((p = socks_GetPort(argv[next_arg+1])) < 0) || ^ sockd.c:1104:23: warning: passing arguments to 'socks_check_user' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] socks_check_user(userlist, socks_src_user)) { ^ sockd.c:1129:4: warning: call to undeclared function 'socks_shell_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_shell_cmd(cmdp, src, dst); ^ sockd.c:1155:3: warning: call to undeclared function 'socks_shell_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] socks_shell_cmd(cmdp, src, dst); ^ sockd.c:891:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Validate(src, dst, in) ^ --- RFTP --- cmds.c:101:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] another(pargc, pargv, prompt) ^ int cmds.c:106:12: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int len = strlen(line), ret; ^ cmds.c:106:12: note: include the header <string.h> or explicitly provide a declaration for 'strlen' cmds.c:120:2: warning: call to undeclared function 'makeargv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] makeargv(); ^ cmds.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] another(pargc, pargv, prompt) ^ cmds.c:154:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] port = atoi(argv[2]); ^ cmds.c:163:15: warning: passing arguments to 'hookup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host = hookup(argv[1], port); ^ cmds.c:178:11: warning: call to undeclared function 'login'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) login(argv[1]); ^ cmds.c:188:7: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("SYST") == COMPLETE && overbose) { ^ cmds.c:205:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { ^ cmds.c:205:8: note: include the header <string.h> or explicitly provide a declaration for 'strncmp' cmds.c:277:7: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strcmp(argv[1], p->t_name) == 0) ^ cmds.c:277:7: note: include the header <string.h> or explicitly provide a declaration for 'strcmp' cmds.c:285:12: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] comret = command ("TYPE %s %s", p->t_mode, p->t_arg); ^ cmds.c:318:12: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] comret = command("TYPE %s %s", p->t_mode, bytename); ^ cmds.c:419:7: warning: call to undeclared function 'globulize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^ cmds.c:432:20: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] argv[2] = dotrans(argv[2]); ^ cmds.c:435:18: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] argv[2] = domap(argv[2]); ^ cmds.c:465:23: warning: passing arguments to 'remglob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while ((cp = remglob(argv,0)) != NULL) { ^ cmds.c:470:17: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:479:27: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:490:18: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = dotrans(tp); ^ cmds.c:493:16: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = domap(tp); ^ cmds.c:515:17: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], argv[i])) { ^ cmds.c:516:28: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = (ntflag) ? dotrans(argv[i]) : argv[i]; ^ cmds.c:517:27: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = (mapflag) ? domap(tp) : tp; ^ cmds.c:531:18: warning: passing arguments to 'ftpglob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gargs = ftpglob(argv[i]); ^ cmds.c:535:5: warning: call to undeclared function 'blkfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] blkfree(gargs); ^ cmds.c:536:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free((char *)gargs); ^ cmds.c:536:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'free' cmds.c:541:17: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], *cpp)) { ^ cmds.c:542:28: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = (ntflag) ? dotrans(*cpp) : *cpp; ^ cmds.c:543:27: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = (mapflag) ? domap(tp) : tp; ^ cmds.c:557:4: warning: call to undeclared function 'blkfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] blkfree(gargs); ^ cmds.c:567:9: warning: call to undeclared function 'getit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) getit(argc, argv, 1, "r+w"); ^ cmds.c:570:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get(argc, argv) ^ int cmds.c:574:9: warning: call to undeclared function 'getit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) getit(argc, argv, 0, restart_point ? "r+w" : "w" ); ^ cmds.c:570:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get(argc, argv) ^ cmds.c:575:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:580:19: warning: parameter 'restartit' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] getit(argc, argv, restartit, mode) ^ cmds.c:580:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] getit(argc, argv, restartit, mode) ^ int cmds.c:603:7: warning: call to undeclared function 'globulize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!globulize(&argv[2])) { ^ cmds.c:616:24: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:627:20: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] argv[2] = dotrans(argv[2]); ^ cmds.c:629:18: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] argv[2] = domap(argv[2]); ^ cmds.c:649:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-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:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getit(argc, argv, restartit, mode) ^ cmds.c:451:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void mabort(); ^ cmds.c:692:1: note: conflicting prototype is here mabort(int argc, char *argv[]) ^ cmds.c:702:7: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (confirm("Continue with", mname)) { ^ cmds.c:721:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void mabort(); ^ cmds.c:692:1: note: conflicting prototype is here mabort(int argc, char *argv[]) ^ cmds.c:730:26: warning: incompatible function pointer types passing 'void (int, char **)' to parameter of type 'void (*)(int)' [-Wincompatible-function-pointer-types] oldintr = signal(SIGINT,mabort); ^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/signal.h:390:30: note: passing argument to parameter here void(*signal(int, void (*)(int)))(int); ^ cmds.c:732:22: warning: passing arguments to 'remglob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while ((cp = remglob(argv,proxy)) != NULL) { ^ cmds.c:737:16: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:746:26: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] while ((*tp2 = *tp) != NULL) { ~~~~~~~~~~~~ ^ ~~~~ cmds.c:757:17: warning: passing arguments to 'dotrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = dotrans(tp); ^ cmds.c:760:15: warning: passing arguments to 'domap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tp = domap(tp); ^ 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:811:16: warning: passing arguments to 'mktemp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void) mktemp(temp); ^ cmds.c:824:10: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) unlink(temp); ^ cmds.c:779:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remglob(argv,doswitch) ^ cmds.c:83:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern char *remglob(); ^ cmds.c:840:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] onoff(bool) ^ cmds.c:904:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setbell() ^ int cmds.c:910:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:916:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] settrace() ^ int cmds.c:922:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:928:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] sethash() ^ int cmds.c:937:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:943:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setverbose() ^ int cmds.c:949:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:955:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setport() ^ int cmds.c:961:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:968:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setprompt() ^ int cmds.c:974:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:981:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setglob() ^ int cmds.c:987:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:999:9: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] val = atoi(argv[1]); ^ cmds.c:1028:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("CWD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1053:7: warning: call to undeclared function 'globulize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^ cmds.c:1057:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (chdir(argv[1]) < 0) { ^ cmds.c:1065:42: warning: passing arguments to 'getwd' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printf("Local directory now %s\n", getwd(buf)); ^ cmds.c:1081:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("DELE %s", argv[1]); ^ cmds.c:1093:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void mabort(); ^ cmds.c:692:1: note: conflicting prototype is here mabort(int argc, char *argv[]) ^ cmds.c:1102:27: warning: incompatible function pointer types passing 'void (int, char **)' to parameter of type 'void (*)(int)' [-Wincompatible-function-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/signal.h:390:30: note: passing argument to parameter here void(*signal(int, void (*)(int)))(int); ^ cmds.c:1109:16: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^ cmds.c:1110:11: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("DELE %s", cp); ^ cmds.c:1139:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("RNFR %s", argv[1]) == CONTINUE) ^ cmds.c:1161:31: warning: call to undeclared function 'globulize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strcmp(argv[2], "-") && !globulize(&argv[2])) { ^ cmds.c:1166:32: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!globulize(&argv[2]) || !confirm("output to local-file:", argv[2])) { ^ cmds.c:1183:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void mabort(); ^ cmds.c:692:1: note: conflicting prototype is here mabort(int argc, char *argv[]) ^ cmds.c:1196:8: warning: call to undeclared function 'globulize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!globulize(&dest) || ^ cmds.c:1197:8: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] !confirm("output to local-file:", dest)) { ^ cmds.c:1204:27: warning: incompatible function pointer types passing 'void (int, char **)' to parameter of type 'void (*)(int)' [-Wincompatible-function-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/signal.h:390:30: note: passing argument to parameter here void(*signal(int, void (*)(int)))(int); ^ cmds.c:1239:13: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((pid = fork()) == 0) { ^ cmds.c:1241:11: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) close(pid); ^ cmds.c:1244:17: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shell = getenv("SHELL"); ^ cmds.c:1259:4: warning: call to undeclared function 'execl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] execl(shell,shellnam,"-c",altarg,(char *)0); ^ cmds.c:1262:4: warning: call to undeclared function 'execl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] execl(shell,shellnam,(char *)0); ^ cmds.c:1266:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ cmds.c:1266:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' cmds.c:1301:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] n = command("USER %s", argv[1]); ^ cmds.c:1310:22: warning: passing arguments to 'getpass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] argv[2] = getpass("Password: "); ^ cmds.c:1347:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("PWD") == ERROR && code == 500) { ^ cmds.c:1365:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("MKD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1383:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("RMD %s", argv[1]) == ERROR && code == 500) { ^ cmds.c:1401:2: warning: call to undeclared function 'quote1'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] quote1("", argc, argv); ^ cmds.c:1417:2: warning: call to undeclared function 'quote1'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] quote1("SITE ", argc, argv); ^ cmds.c:1424:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] quote1(initial, argc, argv) ^ int cmds.c:1441:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command(buf) == PRELIM) { ^ cmds.c:1442:10: warning: call to undeclared function 'getreply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (getreply(0) == PRELIM); ^ cmds.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] quote1(initial, argc, argv) ^ cmds.c:1444:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1457:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("SITE CHMOD %s %s", argv[1], argv[2]); ^ cmds.c:1465:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-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'; ISO C99 and later do not support implicit int [-Wimplicit-int] idle(argc, argv) ^ int cmds.c:1476:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command(argc == 1 ? "SITE IDLE" : "SITE IDLE %s", argv[1]); ^ cmds.c:1469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] idle(argc, argv) ^ cmds.c:1478:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1483:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] rmthelp(argc, argv) ^ int cmds.c:1490:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command(argc == 1 ? "HELP" : "HELP %s", argv[1]); ^ cmds.c:1483:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rmthelp(argc, argv) ^ cmds.c:1492:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1498:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] quit() ^ int cmds.c:1520:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("QUIT"); ^ cmds.c:1532:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] confirm(cmd, file) ^ int cmds.c:1532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmds.c:1546:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] fatal(msg) ^ int cmds.c:1546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmds.c:1560:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] globulize(cpp) ^ int cmds.c:1567:19: warning: passing arguments to 'ftpglob' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] globbed = ftpglob(*cpp); ^ cmds.c:1571:4: warning: call to undeclared function 'blkfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] blkfree(globbed); ^ cmds.c:1580:4: warning: call to undeclared function 'blkfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] blkfree(globbed); ^ cmds.c:1560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] globulize(cpp) ^ cmds.c:1587:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] account(argc,argv) ^ int cmds.c:1606:15: warning: passing arguments to 'getpass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ap = getpass("Account:"); ^ cmds.c:1608:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("ACCT %s", ap); ^ cmds.c:1587:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] account(argc,argv) ^ cmds.c:1609:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1645:12: warning: passing arguments to 'getcmd' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getcmd(argv[1]); ^ cmds.c:1678:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*c->c_handler)(argc-1, argv+1); ^ cmds.c:1689:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setcase() ^ int cmds.c:1694:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1696:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setcr() ^ int cmds.c:1701:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dotrans(name) ^ cmds.c:93:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *dotrans(), *domap(); ^ cmds.c:1781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domap(name) ^ cmds.c:93:19: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *dotrans(), *domap(); ^ cmds.c:1950:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setsunique() ^ int cmds.c:1955:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1957:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setrunique() ^ int cmds.c:1962:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1965:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] cdup() ^ int cmds.c:1967:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("CDUP") == ERROR && code == 500) { ^ cmds.c:1972:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cmds.c:1981:23: warning: passing arguments to 'atol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] restart_point = atol(argv[1]); ^ cmds.c:1982:37: warning: format specifies type 'long' but the argument has type 'off_t' (aka 'long long') [-Wformat] printf("restarting at %ld. %s\n", restart_point, ~~~ ^~~~~~~~~~~~~ %lld cmds.c:1990:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("SYST"); ^ cmds.c:2062:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command("SIZE %s", argv[1]); ^ cmds.c:2080:6: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (command("MDTM %s", argv[1]) == COMPLETE) { ^ cmds.c:2097:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) command(argc > 1 ? "STAT %s" : "STAT" , argv[1]); ^ cmds.c:2103:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] newer(argc, argv) ^ int cmds.c:2103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmds.c:2110:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- RFINGER --- 15 warnings generated. ld: Undefined symbols: _res_9_init, referenced from: _SOCKSinit in libsocks.a[2](Rconnect.o) clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [rwhois] Error code 1 bmake[1]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rfinger 1 error bmake[1]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rfinger *** [RFINGER] Error code 2 bmake: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2 --- server --- 62 warnings generated. A failure has been detected in another branch of the parallel make bmake[1]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/sockd *** [server] Error code 2 bmake: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2 --- RFTP --- 160 warnings generated. A failure has been detected in another branch of the parallel make bmake[1]: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2/rftp *** [RFTP] Error code 2 bmake: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2 3 errors bmake: stopped in /Users/pbulk/build/net/socks4/work/socks.cstc.4.2 *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/net/socks4 *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/net/socks4