=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/socks4", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] 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") --- echocwd --- --- LIB --- --- echocwd --- --- LIBIDENT --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/libident --- LIB --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/lib --- LIBIDENT --- --- ident.o --- --- LIB --- --- Rconnect.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c Rconnect.c --- LIBIDENT --- clang -pipe -Os -Wno-error=return-type -c ident.c ident.c:41:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 41 | if (getpeername(fd, (struct sockaddr *)&remoteaddr, &len) < 0) | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:712:78: note: passing argument to parameter here 712 | 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] 45 | if (getsockname(fd, (struct sockaddr *)&localaddr, &len) < 0) | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:714:78: note: passing argument to parameter here 714 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ 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] 76 | 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: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | free(ident); | ^ ident.c:98:5: note: include the header or explicitly provide a declaration for 'free' 4 warnings generated. --- LIB --- Rconnect.c:66:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | 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] 129 | 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 C23 [-Wdeprecated-non-prototype] 139 | 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 C23 [-Wdeprecated-non-prototype] 146 | 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] 165 | _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 C23 [-Wdeprecated-non-prototype] 193 | 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 C23 [-Wdeprecated-non-prototype] 196 | 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] 202 | 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] 211 | 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] 219 | if ((pw = getpwuid(uid=geteuid())) == NULL) { | ^ Rconnect.c:252:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 252 | while (socks_server = socks_serverlist) { | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ Rconnect.c:252:22: note: place parentheses around the assignment to silence this warning 252 | while (socks_server = socks_serverlist) { | ^ | ( ) Rconnect.c:252:22: note: use '==' to turn this assignment into an equality comparison 252 | while (socks_server = socks_serverlist) { | ^ | == Rconnect.c:253:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 253 | if (socks_serverlist = index(socks_serverlist, ',')) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rconnect.c:253:24: note: place parentheses around the assignment to silence this warning 253 | if (socks_serverlist = index(socks_serverlist, ',')) | ^ | ( ) Rconnect.c:253:24: note: use '==' to turn this assignment into an equality comparison 253 | 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] 258 | 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] --- LIBIDENT --- --- id_open.o --- --- LIB --- 279 | 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] 289 | 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] 290 | 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] 293 | 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] 297 | 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 C23 [-Wdeprecated-non-prototype] 232 | 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] 343 | 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 C23 [-Wdeprecated-non-prototype] 320 | 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] 359 | 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] 373 | 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 C23 [-Wdeprecated-non-prototype] 353 | 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] 386 | exit(SOCKS_FAIL); | ^ Rconnect.c:386:2: note: include the header 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] 397 | 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 C23 [-Wdeprecated-non-prototype] 389 | 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] 416 | 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 C23 [-Wdeprecated-non-prototype] 443 | 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 C23 [-Wdeprecated-non-prototype] 444 | 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] 448 | } else if (status = socks_conn_code) { | ~~~~~~~^~~~~~~~~~~~~~~~~ Rconnect.c:448:20: note: place parentheses around the assignment to silence this warning 448 | } else if (status = socks_conn_code) { | ^ | ( ) Rconnect.c:448:20: note: use '==' to turn this assignment into an equality comparison 448 | } 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] 528 | 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] 600 | 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 C23 [-Wdeprecated-non-prototype] 416 | 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] 639 | 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 C23 [-Wdeprecated-non-prototype] 672 | socks_saddrtoname(&remhost, socks_dst_name, sizeof(socks_dst_name)); | ^ --- LIBIDENT --- clang -pipe -Os -Wno-error=return-type -c id_open.c --- LIB --- 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 C23 [-Wdeprecated-non-prototype] 674 | 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] 683 | 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 C23 [-Wdeprecated-non-prototype] 639 | 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] 780 | 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 C23 [-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] 797 | 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] 810 | return (getsockname(sock, (struct sockaddr *)sin, size)); | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:714:78: note: passing argument to parameter here 714 | 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 C23 [-Wdeprecated-non-prototype] 797 | 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] 823 | 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] 839 | return(accept(sock, (struct sockaddr *)sin, size)); | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | 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] 847 | 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] 851 | 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 C23 [-Wdeprecated-non-prototype] 823 | 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 C23 [-Wdeprecated-non-prototype] 856 | int Rselect(width, readfds, writefds, exceptfds, timeout) | ^ 50 warnings generated. --- SendGetDst.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c SendGetDst.c --- LIBIDENT --- id_open.c:60:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] 60 | 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: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | free(id); | ^ id_open.c:90:5: note: include the header 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] 172 | close(id->fd); | ^ 3 warnings generated. --- id_close.o --- clang -pipe -Os -Wno-error=return-type -c id_close.c --- LIB --- SendGetDst.c:13:9: warning: 'NULL' macro redefined [-Wmacro-redefined] 13 | #define NULL ((char *)0) | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_null.h:49:9: note: previous definition is here 49 | #define NULL __DARWIN_NULL | ^ SendGetDst.c:28:2: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 28 | bcopy(&dst->port, c+2, sizeof(dst->port)); | ^ SendGetDst.c:28:2: note: include the header or explicitly provide a declaration for 'bcopy' SendGetDst.c:36:30: warning: incompatible pointer types passing 'char *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_select.h:43:41: note: passing argument to parameter here 43 | 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] 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_select.h:44:24: note: passing argument to parameter here 44 | 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] 46 | 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 C23 [-Wdeprecated-non-prototype] 15 | 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] 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_select.h:43:62: note: passing argument to parameter here 43 | 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] 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ SendGetDst.c:13:14: note: expanded from macro 'NULL' 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_select.h:44:24: note: passing argument to parameter here 44 | 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] 85 | if((n = read(s, p, i)) > 0) { | ^ SendGetDst.c:59:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | int socks_GetDst(s, dst) | ^ --- LIBIDENT --- id_close.c:19:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 19 | 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] 20 | free(id); | ^ id_close.c:20:3: note: include the header or explicitly provide a declaration for 'free' 2 warnings generated. --- id_query.o --- --- LIB --- 10 warnings generated. --- LIBIDENT --- clang -pipe -Os -Wno-error=return-type -c id_query.c --- LIB --- --- 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] 14 | 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: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 16 | 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] 16 | 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 C23 [-Wdeprecated-non-prototype] 6 | char *socks_saddrtoname(addr, name, namelen) | ^ --- LIBIDENT --- id_query.c:63:9: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | 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] 63 | res = write(id->fd, buf, strlen(buf)); | ^ id_query.c:63:28: note: include the header or explicitly provide a declaration for 'strlen' --- LIB --- 4 warnings generated. --- porttoserv.o --- --- LIBIDENT --- 2 warnings generated. --- LIB --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c porttoserv.c --- LIBIDENT --- --- id_parse.o --- clang -pipe -Os -Wno-error=return-type -c id_parse.c --- LIB --- 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] 15 | 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: call to undeclared library function 'sprintf' with type 'int (char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | sprintf(name, "%u", port); | ^ porttoserv.c:17:3: note: include the header 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 C23 [-Wdeprecated-non-prototype] 6 | char *socks_porttoserv(sin_port, name, namelen) | ^ 3 warnings generated. --- check_cconf.o --- --- LIBIDENT --- id_parse.c:148:10: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | (res = read(id->fd, id->buf + pos, 1)) == 1 && | ^ --- LIB --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c check_cconf.c --- LIBIDENT --- 1 warning generated. --- libident.a --- rm -f libident.a ar cq libident.a ident.o id_open.o id_close.o id_query.o id_parse.o --- LIB --- check_cconf.c:34:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 34 | 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] 46 | 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 C23 [-Wdeprecated-non-prototype] 61 | socks_check_user(confPtr->userlist, socks_src_user)) { | ^ 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] 83 | 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 C23 [-Wdeprecated-non-prototype] 34 | 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] 88 | 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 C23 [-Wdeprecated-non-prototype] 131 | 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] 142 | exit(1); | ^ check_cconf.c:142:4: note: include the header 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 C23 [-Wdeprecated-non-prototype] 181 | 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 C23 [-Wdeprecated-non-prototype] 185 | 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 C23 [-Wdeprecated-non-prototype] 207 | 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] 251 | (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: 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] 253 | realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); | ^ check_cconf.c:253:6: note: include the header or explicitly provide a declaration for 'realloc' 13 warnings generated. --- shell_cmd.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c shell_cmd.c shell_cmd.c:64:26: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | 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 C23 [-Wdeprecated-non-prototype] 66 | 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] 67 | 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: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | 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 C23 [-Wdeprecated-non-prototype] 82 | 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] 85 | 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 C23 [-Wdeprecated-non-prototype] 55 | 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] 106 | (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] 110 | 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] 112 | } 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] 115 | (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 C23 [-Wdeprecated-non-prototype] 92 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | 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] 202 | expansion_len = strlen(expansion); | ^ shell_cmd.c:202:22: note: include the header 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 C23 [-Wdeprecated-non-prototype] 150 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | static void percent_x(); | ^ 16 warnings generated. --- check_user.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c check_user.c check_user.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | 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] 59 | 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 C23 [-Wdeprecated-non-prototype] 54 | 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] 59 | 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 C23 [-Wdeprecated-non-prototype] 70 | 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] 101 | 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 C23 [-Wdeprecated-non-prototype] 90 | long socks_GetPort(name) | ^ check_user.c:127:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 127 | if (q = index(p, ',')) | ~~^~~~~~~~~~~~~~~ check_user.c:127:9: note: place parentheses around the assignment to silence this warning 127 | if (q = index(p, ',')) | ^ | ( ) check_user.c:127:9: note: use '==' to turn this assignment into an equality comparison 127 | if (q = index(p, ',')) | ^ | == check_user.c:143:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 143 | } while ( p = q); | ~~^~~ check_user.c:143:14: note: place parentheses around the assignment to silence this warning 143 | } while ( p = q); | ^ | ( ) check_user.c:143:14: note: use '==' to turn this assignment into an equality comparison 143 | } 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 C23 [-Wdeprecated-non-prototype] 105 | int socks_check_user(userlist, src_user) | ^ 10 warnings generated. --- null_syslog.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c null_syslog.c null_syslog.c:20:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 20 | 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 C23 [-Wdeprecated-non-prototype] null_syslog.c:26:1: warning: non-void function does not return a value [-Wreturn-type] 26 | } | ^ null_syslog.c:28:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 28 | socks_0closelog() | ^ | int null_syslog.c:31:1: warning: non-void function does not return a value [-Wreturn-type] 31 | } | ^ null_syslog.c:33:9: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 33 | VARARGS(socks_0syslog, int, prio) | ^ | int null_syslog.c:10:32: note: expanded from macro 'VARARGS' 10 | #define VARARGS(func,type,arg) func(type arg, ...) | ^ null_syslog.c:40:1: warning: non-void function does not return a value [-Wreturn-type] 40 | } | ^ 7 warnings generated. --- Rrcmd.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c Rrcmd.c Rrcmd.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 60 | Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) | ^ | int Rrcmd.c:96:7: warning: 'rresvport' is deprecated [-Wdeprecated-declarations] 96 | s = rresvport(&lport); | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:710:1: note: 'rresvport' has been explicitly marked deprecated here 710 | __deprecated int rresvport(int *); | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' 214 | #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] 125 | if (Rconnect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) | ^ Rrcmd.c:167:12: warning: 'rresvport' is deprecated [-Wdeprecated-declarations] 167 | int s2 = rresvport(&lport), s3; | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:710:1: note: 'rresvport' has been explicitly marked deprecated here 710 | __deprecated int rresvport(int *); | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' 214 | #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] 186 | 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] 193 | 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] 198 | 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] 228 | 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 C23 [-Wdeprecated-non-prototype] 60 | 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 --- LIBIDENT --- ranlib libident.a --- LIB --- ranlib libsocks.a --- RFINGER --- --- RFTP --- --- 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="/var/tmp/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS=" ") --- RFTP --- (cd rftp; /opt/pkg/bin/bmake CC="clang" SOCKS_LIB="/var/tmp/work/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=" ") --- RFINGER --- --- echocwd --- --- RFTP --- --- echocwd --- --- RFINGER --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/rfinger --- RFTP --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/rftp --- RFINGER --- --- rwhois --- --- 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 --- 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 /var/tmp/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a finger.c:56:2: warning: call to undeclared function 'SOCKSinit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | 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] 60 | 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] 67 | exit(1); | ^ finger.c:67:4: note: include the header 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] 74 | strcat(cp, " "); | ^ finger.c:74:3: note: include the header 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] 76 | 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: 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] 78 | cp += strlen(argv[i]); | ^ finger.c:78:9: note: include the header 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] 101 | 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] 112 | if ((l = inet_addr(host)) == -1) { | ^ finger.c:123:4: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); | ^ finger.c:123:4: note: include the header or explicitly provide a declaration for 'bcopy' finger.c:135:20: warning: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] 135 | while (connect(s, &sin, sizeof(sin)) < 0) { | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:711:45: note: passing argument to parameter here 711 | 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] 146 | if (*cp = ' ') cp++; | ~~~~^~~~~ finger.c:146:10: note: place parentheses around the assignment to silence this warning 146 | if (*cp = ' ') cp++; | ^ | ( ) finger.c:146:10: note: use '==' to turn this assignment into an equality comparison 146 | 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] 149 | 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] 154 | 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] 158 | 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 C23 [-Wdeprecated-non-prototype] 21 | int main(argc, argv) | ^ --- RFTP --- cmds.c:101:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 101 | 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] 106 | 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: call to undeclared function 'makeargv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | makeargv(); | ^ cmds.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | 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] 154 | 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 C23 [-Wdeprecated-non-prototype] 163 | 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] 178 | (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] 188 | 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] 205 | 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: 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] 277 | 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: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 285 | 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] 318 | 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] 419 | 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 C23 [-Wdeprecated-non-prototype] 432 | 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 C23 [-Wdeprecated-non-prototype] 435 | 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 C23 [-Wdeprecated-non-prototype] 465 | 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] 470 | if (mflag && confirm(argv[0], cp)) { | ^ cmds.c:479:27: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] 479 | 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 C23 [-Wdeprecated-non-prototype] 490 | 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 C23 [-Wdeprecated-non-prototype] 493 | 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] 515 | 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 C23 [-Wdeprecated-non-prototype] 516 | 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 C23 [-Wdeprecated-non-prototype] 517 | 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 C23 [-Wdeprecated-non-prototype] 531 | 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] 535 | 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] 536 | free((char *)gargs); | ^ cmds.c:536:5: note: include the header 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] 541 | 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 C23 [-Wdeprecated-non-prototype] 542 | 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 C23 [-Wdeprecated-non-prototype] 543 | 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] 557 | 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] 567 | (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] 570 | 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] 574 | (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 C23 [-Wdeprecated-non-prototype] 570 | get(argc, argv) | ^ cmds.c:575:1: warning: non-void function does not return a value [-Wreturn-type] 575 | } | ^ cmds.c:580:19: warning: parameter 'restartit' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 580 | getit(argc, argv, restartit, mode) | ^ 581 | int argc; 582 | char *argv[]; 583 | char *mode; 584 | { cmds.c:580:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 580 | 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] 603 | if (!globulize(&argv[2])) { | ^ cmds.c:616:24: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] 616 | 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 C23 [-Wdeprecated-non-prototype] 627 | 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 C23 [-Wdeprecated-non-prototype] 629 | 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] 649 | 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] 686 | argv[1] != oldargv1 || argv[2] != oldargv2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:76:75: note: passing argument to parameter 'printnames' here 76 | 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 C23 [-Wdeprecated-non-prototype] 580 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 451 | void mabort(); | ^ cmds.c:692:1: note: conflicting prototype is here 692 | 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] 702 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 721 | void mabort(); | ^ cmds.c:692:1: note: conflicting prototype is here 692 | 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] 730 | oldintr = signal(SIGINT,mabort); | ^~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/signal.h:390:26: note: passing argument to parameter here 390 | 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 C23 [-Wdeprecated-non-prototype] 732 | 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] 737 | if (mflag && confirm(argv[0], cp)) { | ^ cmds.c:746:26: warning: comparison between pointer and integer ('char' and 'void *') [-Wpointer-integer-compare] 746 | 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 C23 [-Wdeprecated-non-prototype] 757 | 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 C23 [-Wdeprecated-non-prototype] 760 | tp = domap(tp); | ^ cmds.c:763:8: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] 763 | tp != cp || !interactive); | ^~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:76:75: note: passing argument to parameter 'printnames' here 76 | 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 C23 [-Wdeprecated-non-prototype] 811 | (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] 824 | (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 C23 [-Wdeprecated-non-prototype] 779 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | 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 C23 [-Wdeprecated-non-prototype] 840 | onoff(bool) | ^ cmds.c:904:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 904 | setbell() | ^ | int cmds.c:910:1: warning: non-void function does not return a value [-Wreturn-type] 910 | } | ^ cmds.c:916:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 916 | settrace() | ^ | int cmds.c:922:1: warning: non-void function does not return a value [-Wreturn-type] 922 | } | ^ cmds.c:928:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 928 | sethash() | ^ | int cmds.c:937:1: warning: non-void function does not return a value [-Wreturn-type] 937 | } | ^ cmds.c:943:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 943 | setverbose() | ^ | int cmds.c:949:1: warning: non-void function does not return a value [-Wreturn-type] 949 | } | ^ cmds.c:955:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 955 | setport() | ^ | int cmds.c:961:1: warning: non-void function does not return a value [-Wreturn-type] 961 | } | ^ cmds.c:968:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 968 | setprompt() | ^ | int cmds.c:974:1: warning: non-void function does not return a value [-Wreturn-type] 974 | } | ^ cmds.c:981:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 981 | setglob() | ^ | int cmds.c:987:1: warning: non-void function does not return a value [-Wreturn-type] 987 | } | ^ cmds.c:999:9: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 999 | 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] 1028 | 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] 1053 | 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] 1057 | 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 C23 [-Wdeprecated-non-prototype] 1065 | 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] 1081 | (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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1093 | void mabort(); | ^ cmds.c:692:1: note: conflicting prototype is here 692 | 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] 1102 | oldintr = signal(SIGINT, mabort); | ^~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/signal.h:390:26: note: passing argument to parameter here 390 | 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] 1109 | 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] 1110 | (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] 1139 | 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] 1161 | 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] 1166 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1183 | void mabort(); | ^ cmds.c:692:1: note: conflicting prototype is here 692 | 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] 1196 | if (!globulize(&dest) || | ^ --- RFINGER --- 15 warnings generated. --- RFTP --- cmds.c:1197:8: warning: call to undeclared function 'confirm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1197 | !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] 1204 | oldintr = signal(SIGINT, mabort); | ^~~~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/signal.h:390:26: note: passing argument to parameter here 390 | 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] 1239 | 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] 1241 | (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 C23 [-Wdeprecated-non-prototype] 1244 | 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] 1259 | 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] 1262 | 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] 1266 | exit(1); | ^ cmds.c:1266:3: note: include the header 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] 1301 | 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 C23 [-Wdeprecated-non-prototype] 1310 | 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] 1347 | 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] 1365 | 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] 1383 | 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] 1401 | 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] 1417 | 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] 1424 | 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] 1441 | 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] 1442 | 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 C23 [-Wdeprecated-non-prototype] 1424 | quote1(initial, argc, argv) | ^ cmds.c:1444:1: warning: non-void function does not return a value [-Wreturn-type] 1444 | } | ^ cmds.c:1457:9: warning: call to undeclared function 'command'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1457 | (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] 1465 | (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] 1469 | 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] 1476 | (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 C23 [-Wdeprecated-non-prototype] 1469 | idle(argc, argv) | ^ cmds.c:1478:1: warning: non-void function does not return a value [-Wreturn-type] 1478 | } | ^ cmds.c:1483:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1483 | 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] 1490 | (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 C23 [-Wdeprecated-non-prototype] 1483 | rmthelp(argc, argv) | ^ cmds.c:1492:1: warning: non-void function does not return a value [-Wreturn-type] 1492 | } | ^ cmds.c:1498:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1498 | 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] 1520 | (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] 1532 | 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 C23 [-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] 1546 | 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 C23 [-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] 1560 | 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 C23 [-Wdeprecated-non-prototype] 1567 | 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] 1571 | 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] 1580 | 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 C23 [-Wdeprecated-non-prototype] 1560 | globulize(cpp) | ^ cmds.c:1587:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1587 | 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 C23 [-Wdeprecated-non-prototype] 1606 | 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] 1608 | (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 C23 [-Wdeprecated-non-prototype] 1587 | account(argc,argv) | ^ cmds.c:1609:1: warning: non-void function does not return a value [-Wreturn-type] 1609 | } | ^ cmds.c:1645:12: warning: passing arguments to 'getcmd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1645 | 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 C23 [-Wdeprecated-non-prototype] 1678 | (*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] 1689 | setcase() | ^ | int cmds.c:1694:1: warning: non-void function does not return a value [-Wreturn-type] 1694 | } | ^ cmds.c:1696:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1696 | setcr() | ^ | int cmds.c:1701:1: warning: non-void function does not return a value [-Wreturn-type] 1701 | } | ^ cmds.c:1724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1724 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 93 | 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 C23 [-Wdeprecated-non-prototype] 1781 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 93 | 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] 1950 | setsunique() | ^ | int cmds.c:1955:1: warning: non-void function does not return a value [-Wreturn-type] 1955 | } | ^ cmds.c:1957:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1957 | setrunique() | ^ | int cmds.c:1962:1: warning: non-void function does not return a value [-Wreturn-type] 1962 | } | ^ cmds.c:1965:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1965 | 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] 1967 | if (command("CDUP") == ERROR && code == 500) { | ^ cmds.c:1972:1: warning: non-void function does not return a value [-Wreturn-type] 1972 | } | ^ cmds.c:1981:23: warning: passing arguments to 'atol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1981 | 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] 1982 | 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] 1990 | (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] 2062 | (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] 2080 | 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] 2097 | (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] 2103 | 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 C23 [-Wdeprecated-non-prototype] cmds.c:2110:1: warning: non-void function does not return a value [-Wreturn-type] 2110 | } | ^ --- RFINGER --- Undefined symbols for architecture arm64: "___res_9_state", referenced from: _SOCKSinit in libsocks.a[2](Rconnect.o) _SOCKSinit in libsocks.a[2](Rconnect.o) _SOCKSinit in libsocks.a[2](Rconnect.o) "_res_9_init", referenced from: _SOCKSinit in libsocks.a[2](Rconnect.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [rwhois] Error code 1 bmake[1]: stopped making "all" in /var/tmp/work/net/socks4/work/socks.cstc.4.2/rfinger bmake[1]: 1 error bmake[1]: stopped making "all" in /var/tmp/work/net/socks4/work/socks.cstc.4.2/rfinger *** [RFINGER] Error code 2 bmake: stopped making "all" in /var/tmp/work/net/socks4/work/socks.cstc.4.2 --- RFTP --- *** [RFTP] Error code 6 bmake: stopped making "all" in /var/tmp/work/net/socks4/work/socks.cstc.4.2 bmake: 2 errors bmake: stopped making "all" in /var/tmp/work/net/socks4/work/socks.cstc.4.2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/socks4 *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/socks4