=> "/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") --- LIB --- --- echocwd --- --- LIBIDENT --- --- echocwd --- --- LIB --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/lib --- LIBIDENT --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/libident --- LIB --- --- Rconnect.o --- --- LIBIDENT --- --- ident.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 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) | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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. --- id_open.o --- --- 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) { | ^ --- LIBIDENT --- clang -pipe -Os -Wno-error=return-type -c id_open.c --- LIB --- 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] 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)); | ^ 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)); | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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)); | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^ 10 warnings generated. --- saddrtoname.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c saddrtoname.c --- 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 --- clang -pipe -Os -Wno-error=return-type -c id_query.c --- LIB --- 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) | ^ 4 warnings generated. --- porttoserv.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c porttoserv.c --- 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' 2 warnings generated. --- 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 --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c check_cconf.c --- 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 && | ^ 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) | ^ --- LIBIDENT --- ranlib libident.a --- LIB --- 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 --- 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) | ^ --- 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] 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(); | ^ --- check_user.o --- 10 warnings generated. --- shell_cmd.o --- 16 warnings generated. --- null_syslog.o --- --- Rrcmd.o --- --- null_syslog.o --- clang -I../include -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -c null_syslog.c --- 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] 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 --- 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); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/unistd.h:710:1: note: 'rresvport' has been explicitly marked deprecated here 710 | __deprecated int rresvport(int *); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/unistd.h:710:1: note: 'rresvport' has been explicitly marked deprecated here 710 | __deprecated int rresvport(int *); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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 ranlib libsocks.a --- server --- --- RFINGER --- --- server --- (cd sockd; /opt/pkg/bin/bmake CC="clang" RESOLV_LIB="" OPTIMIZE="-pipe -Os -Wno-error=return-type" SOCKS_LIB="/var/tmp/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" SUPPORT_RCMD="-DSUPPORT_RCMD" IDENT_LIB="/var/tmp/work/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="/var/tmp/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS=" ") --- server --- --- echocwd --- --- RFINGER --- --- echocwd --- --- server --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/sockd --- RFINGER --- /var/tmp/work/net/socks4/work/socks.cstc.4.2/rfinger --- server --- --- sockd --- --- RFINGER --- --- rwhois --- --- server --- clang -I../include -I../libident -pipe -Os -Wno-error=return-type -DSUPPORT_RCMD -o sockd sockd.c /var/tmp/work/net/socks4/work/socks.cstc.4.2/lib/libsocks.a /var/tmp/work/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 /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) { | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.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) | ^ 15 warnings generated. --- 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] 89 | exit(1); | ^ sockd.c:89:2: note: include the header 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] 99 | 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] 306 | 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] 309 | if (getpeername(in, (struct sockaddr *)&from, &fromlen) < 0) { | ^~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:712:78: note: passing argument to parameter here 712 | 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 C23 [-Wdeprecated-non-prototype] 318 | 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] 320 | 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] 341 | 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 C23 [-Wdeprecated-non-prototype] 352 | 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 C23 [-Wdeprecated-non-prototype] 353 | 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] 355 | 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] 387 | 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] 393 | 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] 415 | 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] 418 | 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] 421 | 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 C23 [-Wdeprecated-non-prototype] 99 | 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] 425 | 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] 432 | 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 C23 [-Wdeprecated-non-prototype] 425 | 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] 440 | 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] 460 | 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] 466 | 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] 490 | 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] 491 | 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 C23 [-Wdeprecated-non-prototype] 440 | DoConnect(in, dst) | ^ sockd.c:494:1: warning: non-void function does not return a value [-Wreturn-type] 494 | } | ^ sockd.c:502:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 502 | 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] 535 | 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] 544 | 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] 559 | if (getsockname(out, (struct sockaddr *)&sin, &len) < 0) | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:714:78: note: passing argument to parameter here 714 | 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] 571 | 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] 574 | if ((new = accept(out, (struct sockaddr *)&sin, &len)) < 0) | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | 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] 579 | 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 C23 [-Wdeprecated-non-prototype] 584 | 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 C23 [-Wdeprecated-non-prototype] 585 | 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] 609 | 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 C23 [-Wdeprecated-non-prototype] 502 | DoNewBind(in, dst) | ^ sockd.c:612:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 612 | } | ^ sockd.c:617:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 617 | 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] 628 | 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] 655 | 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] 657 | 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] 665 | 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] 667 | 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 C23 [-Wdeprecated-non-prototype] 617 | Pump(in, out) | ^ sockd.c:684:1: warning: non-void function does not return a value [-Wreturn-type] 684 | } | ^ sockd.c:874:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 874 | 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] 884 | socks_shell_cmd(buf+strlen(s), src, dst); | ^ sockd.c:888:2: warning: non-void function 'check_sp_conf' should return a value [-Wreturn-mismatch] 888 | return; | ^ sockd.c:874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | 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] 891 | 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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 896 | IDENT *ident_lookup(), *idp; | ^ ../libident/ident.h:83:15: note: conflicting prototype is here 83 | 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 C23 [-Wdeprecated-non-prototype] 960 | 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 C23 [-Wdeprecated-non-prototype] 1012 | 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 C23 [-Wdeprecated-non-prototype] 1016 | 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 C23 [-Wdeprecated-non-prototype] 1025 | 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 C23 [-Wdeprecated-non-prototype] 1029 | 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 C23 [-Wdeprecated-non-prototype] 1056 | 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 C23 [-Wdeprecated-non-prototype] 1104 | 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] 1129 | 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] 1155 | 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 C23 [-Wdeprecated-non-prototype] 891 | Validate(src, dst, in) | ^ 62 warnings generated. --- 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 --- server --- *** [server] 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