+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socks4-2.2nb1/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socks4-2.2nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for socks4-2.2nb1 (cd lib; /opt/local/bin/bmake CC="gcc" GETPASS="getpass.o" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV " RANLIB="/bin/true") /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c Rconnect.c Rconnect.c: In function 'SOCKSinit': Rconnect.c:129:9: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] 129 | gethostname(socks_src_name, sizeof(socks_src_name)); | ^~~~~~~~~~~ | gethostbyname Rconnect.c:165:55: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 165 | _res.nsaddr_list[0].sin_addr.s_addr = inet_addr(ns); | ^~~~~~~~~ Rconnect.c:211:40: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] 211 | if ((pw = getpwuid(uid=getuid())) == NULL) { | ^~~~~~ | getpwuid Rconnect.c:219:32: warning: implicit declaration of function 'geteuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] 219 | if ((pw = getpwuid(uid=geteuid())) == NULL) { | ^~~~~~~ | getpwuid Rconnect.c: In function 'connect_sockd': Rconnect.c:289:29: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] 289 | if (dup2(new_sock, sock) < 0) { | ^~~~ Rconnect.c:290:33: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 290 | close(new_sock); | ^~~~~ | pclose Rconnect.c: In function 'send_src_user': Rconnect.c:343:25: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 343 | if((n = write(s, p, i)) <= 0) { | ^~~~~ | fwrite Rconnect.c: In function 'socksC_proto': Rconnect.c:359:20: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] 359 | if ((sta = socks_SendDst(s, dst)) < 0) { | ^~~~~~~~~~~~~ Rconnect.c:373:20: warning: implicit declaration of function 'socks_GetDst' [-Wimplicit-function-declaration] 373 | if ((sta = socks_GetDst(s, dst)) < 0) { | ^~~~~~~~~~~~ Rconnect.c: In function 'quit_C_proto': Rconnect.c:386:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 386 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:33:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 32 | #include <sys/wait.h> +++ |+#include <stdlib.h> 33 | Rconnect.c:386:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 386 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:386:9: note: include '<stdlib.h>' or provide a declaration of 'exit' Rconnect.c: In function 'do_C_proto': Rconnect.c:397:9: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 397 | alarm(CLIENT_CONN_TIMEOUT); | ^~~~~ Rconnect.c:404:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 404 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:404:17: note: include '<stdlib.h>' or provide a declaration of 'exit' Rconnect.c:409:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 409 | exit(dst.cmd); | ^~~~ Rconnect.c:409:17: note: include '<stdlib.h>' or provide a declaration of 'exit' Rconnect.c:411:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 411 | exit(SOCKS_RESULT); | ^~~~ Rconnect.c:411:9: note: include '<stdlib.h>' or provide a declaration of 'exit' Rconnect.c: At top level: Rconnect.c:416:1: warning: return type defaults to 'int' [-Wimplicit-int] 416 | Rconnect(sock, sin, size) | ^~~~~~~~ Rconnect.c: In function 'Rconnect': Rconnect.c:528:18: warning: implicit declaration of function 'socks_check_cconf' [-Wimplicit-function-declaration] 528 | direct = socks_check_cconf(&me, sin); | ^~~~~~~~~~~~~~~~~ Rconnect.c:600:29: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 600 | switch (child_pid = fork()) { | ^~~~ Rconnect.c: At top level: Rconnect.c:628:1: warning: return type defaults to 'int' [-Wimplicit-int] 628 | Rbind(sock, sin, size) | ^~~~~ Rconnect.c:780:1: warning: return type defaults to 'int' [-Wimplicit-int] 780 | Rlisten(s, n) | ^~~~~~~ Rconnect.c:797:1: warning: return type defaults to 'int' [-Wimplicit-int] 797 | Rgetsockname(sock, sin, size) | ^~~~~~~~~~~~ Rconnect.c:823:1: warning: return type defaults to 'int' [-Wimplicit-int] 823 | Raccept(sock, sin, size) | ^~~~~~~ Rconnect.c: In function 'Raccept': Rconnect.c:851:32: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] 851 | return(dup(sock)); | ^~~ gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c SendGetDst.c SendGetDst.c:13: warning: "NULL" redefined 13 | #define NULL ((char *)0) | In file included from /usr/include/iso/time_iso.h:49, from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:640, from SendGetDst.c:1: /usr/include/sys/null.h:28: note: this is the location of the previous definition 28 | #define NULL ((void *)0) | SendGetDst.c: In function 'socks_SendDst': SendGetDst.c:13:14: warning: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:36:44: note: in expansion of macro 'NULL' 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:143:24: note: expected 'fd_set * restrict' but argument is of type 'char *' 143 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ SendGetDst.c:13:14: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:36:56: note: in expansion of macro 'NULL' 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:144:9: note: expected 'fd_set * restrict' but argument is of type 'char *' 144 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ SendGetDst.c:46:25: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] 46 | if((n = write(s, p, i)) > 0) { | ^~~~~ SendGetDst.c: In function 'socks_GetDst': SendGetDst.c:13:14: warning: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:75:50: note: in expansion of macro 'NULL' 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:143:48: note: expected 'fd_set * restrict' but argument is of type 'char *' 143 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ SendGetDst.c:13:14: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:75:56: note: in expansion of macro 'NULL' 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:144:9: note: expected 'fd_set * restrict' but argument is of type 'char *' 144 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ SendGetDst.c:85:25: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] 85 | if((n = read(s, p, i)) > 0) { | ^~~~ gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c saddrtoname.c saddrtoname.c: In function 'socks_saddrtoname': saddrtoname.c:14:17: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 14 | strncpy(name, host->h_name, namelen); | ^~~~~~~ saddrtoname.c:5:1: note: include '<string.h>' or provide a declaration of 'strncpy' 4 | #include <netdb.h> +++ |+#include <string.h> 5 | saddrtoname.c:14:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 14 | strncpy(name, host->h_name, namelen); | ^~~~~~~ saddrtoname.c:14:17: note: include '<string.h>' or provide a declaration of 'strncpy' saddrtoname.c:16:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 16 | strncpy(name, inet_ntoa(*addr), namelen); | ^~~~~~~ saddrtoname.c:16:17: note: include '<string.h>' or provide a declaration of 'strncpy' saddrtoname.c:16:31: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] 16 | strncpy(name, inet_ntoa(*addr), namelen); | ^~~~~~~~~ saddrtoname.c:16:31: warning: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion] 16 | strncpy(name, inet_ntoa(*addr), namelen); | ^~~~~~~~~~~~~~~~ | | | int saddrtoname.c:16:31: note: expected 'const char *' but argument is of type 'int' gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c porttoserv.c porttoserv.c: In function 'socks_porttoserv': porttoserv.c:15:17: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 15 | strncpy(name, serv->s_name, namelen); | ^~~~~~~ porttoserv.c:5:1: note: include '<string.h>' or provide a declaration of 'strncpy' 4 | #include <netdb.h> +++ |+#include <string.h> 5 | porttoserv.c:15:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 15 | strncpy(name, serv->s_name, namelen); | ^~~~~~~ porttoserv.c:15:17: note: include '<string.h>' or provide a declaration of 'strncpy' porttoserv.c:17:17: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] 17 | sprintf(name, "%u", port); | ^~~~~~~ porttoserv.c:5:1: note: include '<stdio.h>' or provide a declaration of 'sprintf' 4 | #include <netdb.h> +++ |+#include <stdio.h> 5 | porttoserv.c:17:17: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch] 17 | sprintf(name, "%u", port); | ^~~~~~~ porttoserv.c:17:17: note: include '<stdio.h>' or provide a declaration of 'sprintf' gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c check_cconf.c check_cconf.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] 34 | socks_check_cconf(src, dst) | ^~~~~~~~~~~~~~~~~ check_cconf.c: In function 'socks_check_cconf': check_cconf.c:46:23: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 46 | self.s_addr = inet_addr("127.0.0.1"); | ^~~~~~~~~ check_cconf.c:83:17: warning: implicit declaration of function 'socks_shell_cmd' [-Wimplicit-function-declaration] 83 | socks_shell_cmd(confPtr->cmdp, src, dst); | ^~~~~~~~~~~~~~~ check_cconf.c: At top level: check_cconf.c:88:8: warning: return type defaults to 'int' [-Wimplicit-int] 88 | static read_cconf(void) | ^~~~~~~~~~ check_cconf.c: In function 'read_cconf': check_cconf.c:142:25: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 142 | exit(1); | ^~~~ check_cconf.c:13:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 12 | #include "socks.h" +++ |+#include <stdlib.h> 13 | check_cconf.c:142:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 142 | exit(1); | ^~~~ check_cconf.c:142:25: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:169:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 169 | exit(1); | ^~~~ check_cconf.c:169:25: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:179:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 179 | exit(1); | ^~~~ check_cconf.c:179:25: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:183:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 183 | exit(1); | ^~~~ check_cconf.c:183:25: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:187:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 187 | exit(1); | ^~~~ check_cconf.c:187:25: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:204:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 204 | exit(1); | ^~~~ check_cconf.c:204:33: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:210:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 210 | exit(1); | ^~~~ check_cconf.c:210:33: note: include '<stdlib.h>' or provide a declaration of 'exit' check_cconf.c:251:46: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 251 | (struct config **) malloc(CONF_INCR *sizeof(struct config **)); | ^~~~~~ check_cconf.c:251:46: note: include '<stdlib.h>' or provide a declaration of 'malloc' check_cconf.c:251:46: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] check_cconf.c:251:46: note: include '<stdlib.h>' or provide a declaration of 'malloc' check_cconf.c:253:27: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 253 | realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); | ^~~~~~~ check_cconf.c:253:27: note: include '<stdlib.h>' or provide a declaration of 'realloc' check_cconf.c:253:27: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] check_cconf.c:253:27: note: include '<stdlib.h>' or provide a declaration of 'realloc' check_cconf.c:255:59: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 255 | *(confNtries +Ntries) = (struct config *) malloc(sizeof(struct config)); | ^~~~~~ check_cconf.c:255:59: note: include '<stdlib.h>' or provide a declaration of 'malloc' check_cconf.c:283:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 283 | exit(1); | ^~~~ check_cconf.c:283:17: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c shell_cmd.c shell_cmd.c: In function 'socks_shell_cmd': shell_cmd.c:64:26: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 64 | int daemon_pid = getpid(); | ^~~~~~ shell_cmd.c:77:25: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 77 | switch (child_pid = fork()) { | ^~~~ shell_cmd.c:85:28: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 85 | while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) | ^~~~ shell_cmd.c: In function 'do_child': shell_cmd.c:106:16: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 106 | (void) close(tmp_fd); | ^~~~~ | pclose shell_cmd.c:110:9: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 110 | if (open("/dev/null", 2) != 0) { | ^~~~ | popen shell_cmd.c:112:16: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] 112 | } else if (dup(0) != 1 || dup(0) != 2) { | ^~~ shell_cmd.c:115:16: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] 115 | (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); | ^~~~~ shell_cmd.c:115:16: warning: incompatible implicit declaration of built-in function 'execl' [-Wbuiltin-declaration-mismatch] gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c check_user.c check_user.c: In function 'socks_GetQuad': check_user.c:59:29: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 59 | if ((addr->s_addr = inet_addr(dotquad)) != (u_int32) -1) | ^~~~~~~~~ check_user.c: In function 'socks_GetPort': check_user.c:101:16: warning: implicit declaration of function 'atol' [-Wimplicit-function-declaration] 101 | return atol(name); | ^~~~ gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c null_syslog.c null_syslog.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] 20 | socks_0openlog(ident, log_opt, fac) | ^~~~~~~~~~~~~~ null_syslog.c:28:1: warning: return type defaults to 'int' [-Wimplicit-int] 28 | socks_0closelog() | ^~~~~~~~~~~~~~~ null_syslog.c:33:9: warning: return type defaults to 'int' [-Wimplicit-int] 33 | VARARGS(socks_0syslog, int, prio) | ^~~~~~~~~~~~~ null_syslog.c:10:32: note: in definition of macro 'VARARGS' 10 | #define VARARGS(func,type,arg) func(type arg, ...) | ^~~~ gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c getpass.c getpass.c: In function 'getpass': getpass.c:81:15: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 81 | (void)ioctl(fileno(fp), TIOCGETP, &ttyb); | ^~~~~ getpass.c:89:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 89 | exit(1); | ^~~~ getpass.c:45:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 44 | #include <stdio.h> +++ |+#include <stdlib.h> 45 | getpass.c:89:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 89 | exit(1); | ^~~~ getpass.c:89:17: note: include '<stdlib.h>' or provide a declaration of 'exit' getpass.c:107:15: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 107 | (void)write(fileno(outfp), "\n", 1); | ^~~~~ | fwrite getpass.c:119:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 119 | exit(1); | ^~~~ getpass.c:119:17: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -I/opt/local/include -I/usr/include -c Rrcmd.c Rrcmd.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] 60 | Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) | ^~~~~ Rrcmd.c: In function 'Rrcmd': Rrcmd.c:84:9: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 84 | bcopy(hp, &hoste, sizeof(struct hostent)); | ^~~~~ Rrcmd.c:84:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] Rrcmd.c:90:19: warning: implicit declaration of function 'sigblock' [-Wimplicit-function-declaration] 90 | oldmask = sigblock(sigmask(SIGURG)); | ^~~~~~~~ Rrcmd.c:90:28: warning: implicit declaration of function 'sigmask' [-Wimplicit-function-declaration] 90 | oldmask = sigblock(sigmask(SIGURG)); | ^~~~~~~ Rrcmd.c:105:25: warning: implicit declaration of function 'sigsetmask'; did you mean 'sigstack'? [-Wimplicit-function-declaration] 105 | sigsetmask(oldmask); | ^~~~~~~~~~ | sigstack Rrcmd.c:118:17: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 118 | bzero((char *)&sin, sizeof sin); | ^~~~~ Rrcmd.c:118:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] Rrcmd.c:125:21: warning: implicit declaration of function 'Rconnect'; did you mean 'connect'? [-Wimplicit-function-declaration] 125 | if (Rconnect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) | ^~~~~~~~ | connect Rrcmd.c:184:21: warning: implicit declaration of function 'Rbind'; did you mean 'bind'? [-Wimplicit-function-declaration] 184 | if (Rbind(s2, (struct sockaddr *)&tsin, sizeof(tsin)) < 0) { | ^~~~~ | bind Rrcmd.c:193:21: warning: implicit declaration of function 'Rgetsockname'; did you mean 'getsockname'? [-Wimplicit-function-declaration] 193 | if (Rgetsockname(s2, (struct sockaddr *)&tsin, &tlen) < 0) { | ^~~~~~~~~~~~ | getsockname Rrcmd.c:198:17: warning: implicit declaration of function 'Rlisten'; did you mean 'listen'? [-Wimplicit-function-declaration] 198 | Rlisten(s2, 1); | ^~~~~~~ | listen Rrcmd.c:228:22: warning: implicit declaration of function 'Raccept'; did you mean 'accept'? [-Wimplicit-function-declaration] 228 | s3 = Raccept(s2, (struct sockaddr *)&from, &len); | ^~~~~~~ | accept 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 getpass.o Rrcmd.o /bin/true libsocks.a (cd libident; /opt/local/bin/bmake CC="gcc" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include" RANLIB="/bin/true") /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -I/opt/local/include -I/usr/include -c ident.c ident.c: In function 'ident_lookup': ident.c:76:21: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 76 | ident = (IDENT *) malloc(sizeof(IDENT)); | ^~~~~~ ident.c:18:1: note: include '<stdlib.h>' or provide a declaration of 'malloc' 17 | #include "ident.h" +++ |+#include <stdlib.h> 18 | ident.c:76:21: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 76 | ident = (IDENT *) malloc(sizeof(IDENT)); | ^~~~~~ ident.c:76:21: note: include '<stdlib.h>' or provide a declaration of 'malloc' ident.c:98:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 98 | free(ident); | ^~~~ ident.c:98:5: note: include '<stdlib.h>' or provide a declaration of 'free' ident.c:98:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] ident.c:98:5: note: include '<stdlib.h>' or provide a declaration of 'free' ident.c: In function 'ident_free': ident.c:135:23: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 135 | if (id->identifier) free(id->identifier); | ^~~~ ident.c:135:23: note: include '<stdlib.h>' or provide a declaration of 'free' ident.c:136:18: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 136 | if (id->opsys) free(id->opsys); | ^~~~ ident.c:136:18: note: include '<stdlib.h>' or provide a declaration of 'free' ident.c:137:20: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 137 | if (id->charset) free(id->charset); | ^~~~ ident.c:137:20: note: include '<stdlib.h>' or provide a declaration of 'free' ident.c:138:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 138 | free(id); | ^~~~ ident.c:138:3: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -I/opt/local/include -I/usr/include -c id_open.c id_open.c:60:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 60 | extern void *malloc __P((int size)); | ^~~~~~ id_open.c:59:1: note: 'malloc' is declared in header '<stdlib.h>' 58 | #include "ident.h" +++ |+#include <stdlib.h> 59 | id_open.c: In function 'id_open': id_open.c:90:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 90 | free(id); | ^~~~ id_open.c:90:5: note: include '<stdlib.h>' or provide a declaration of 'free' id_open.c:90:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] id_open.c:90:5: note: include '<stdlib.h>' or provide a declaration of 'free' id_open.c:172:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 172 | close(id->fd); | ^~~~~ | pclose id_open.c:173:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 173 | free(id); | ^~~~ id_open.c:173:3: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -I/opt/local/include -I/usr/include -c id_close.c id_close.c: In function 'id_close': id_close.c:19:9: warning: implicit declaration of function 'close'; did you mean 'id_close'? [-Wimplicit-function-declaration] 19 | res = close(id->fd); | ^~~~~ | id_close id_close.c:20:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 20 | free(id); | ^~~~ id_close.c:8:1: note: include '<stdlib.h>' or provide a declaration of 'free' 7 | #include "ident.h" +++ |+#include <stdlib.h> 8 | id_close.c:20:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 20 | free(id); | ^~~~ id_close.c:20:3: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -I/opt/local/include -I/usr/include -c id_query.c id_query.c: In function 'id_query': id_query.c:63:9: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 63 | res = write(id->fd, buf, strlen(buf)); | ^~~~~ | fwrite id_query.c:63:28: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 63 | res = write(id->fd, buf, strlen(buf)); | ^~~~~~ id_query.c:22:1: note: include '<string.h>' or provide a declaration of 'strlen' 21 | #include "ident.h" +++ |+#include <string.h> 22 | id_query.c:63:28: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 63 | res = write(id->fd, buf, strlen(buf)); | ^~~~~~ id_query.c:63:28: note: include '<string.h>' or provide a declaration of 'strlen' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -I/opt/local/include -I/usr/include -c id_parse.c id_parse.c: In function 'id_parse': id_parse.c:148:17: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 148 | (res = read(id->fd, id->buf + pos, 1)) == 1 && | ^~~~ | fread rm -f libident.a ar cq libident.a ident.o id_open.o id_close.o id_query.o id_parse.o /bin/true libident.a (cd sockd; /opt/local/bin/bmake CC="gcc" RESOLV_LIB="-lresolv -lnsl -lsocket" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include" SOCKS_LIB="/home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" SUPPORT_RCMD="-DSUPPORT_RCMD" IDENT_LIB="/home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident/libident.a" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV ") /home/pbulk/build/net/socks4/work/socks.cstc.4.2/sockd gcc -I../include -I../libident -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -o sockd sockd.c /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident/libident.a -lresolv -lnsl -lsocket sockd.c: In function 'die': sockd.c:89:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 89 | exit(1); | ^~~~ sockd.c:30:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 29 | #include "ident.h" +++ |+#include <stdlib.h> 30 | #define IDENTD_TIMEOUT 15 /* 15 seconds */ sockd.c:89:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 89 | exit(1); | ^~~~ sockd.c:89:9: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:99:1: warning: return type defaults to 'int' [-Wimplicit-int] 99 | main(argc, argv) | ^~~~ sockd.c: In function 'main': sockd.c:192:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 192 | exit(1); | ^~~~ sockd.c:192:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:306:14: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] 306 | in = dup(0); | ^~~ sockd.c:311:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 311 | exit(1); | ^~~~ sockd.c:311:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:320:13: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socks_GetPort'? [-Wimplicit-function-declaration] 320 | if (socks_GetDst(in, &dst) < 0) { | ^~~~~~~~~~~~ | socks_GetPort sockd.c:322:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 322 | exit(1); | ^~~~ sockd.c:322:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:328:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 328 | exit(1); | ^~~~ sockd.c:328:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:334:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 334 | exit(1); | ^~~~ sockd.c:334:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:341:16: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration] 341 | while (read(in, &c, 1) == 1) | ^~~~ | readv sockd.c:355:18: warning: implicit declaration of function 'Validate' [-Wimplicit-function-declaration] 355 | permit = Validate(&from, &dstsin, in); | ^~~~~~~~ sockd.c:380:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 380 | exit(1); | ^~~~ sockd.c:380:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:387:17: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] 387 | socks_SendDst(in, &dst); | ^~~~~~~~~~~~~ sockd.c:388:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 388 | exit(1); | ^~~~ sockd.c:388:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:394:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 394 | exit(1); | ^~~~ sockd.c:394:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:398:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 398 | exit(1); | ^~~~ sockd.c:398:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:413:9: warning: implicit declaration of function 'signal'; did you mean 'strsignal'? [-Wimplicit-function-declaration] 413 | signal(SIGALRM, die); | ^~~~~~ | strsignal sockd.c:415:9: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 415 | alarm(60*2); | ^~~~~ sockd.c:418:17: warning: implicit declaration of function 'DoConnect'; did you mean 'connect'? [-Wimplicit-function-declaration] 418 | DoConnect(in, &dst); | ^~~~~~~~~ | connect sockd.c:421:17: warning: implicit declaration of function 'DoNewBind' [-Wimplicit-function-declaration] 421 | DoNewBind(in, &dst); | ^~~~~~~~~ sockd.c: At top level: sockd.c:425:1: warning: return type defaults to 'int' [-Wimplicit-int] 425 | socks_fail(str, in, ndst) | ^~~~~~~~~~ sockd.c: In function 'socks_fail': sockd.c:433:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 433 | exit(1); | ^~~~ sockd.c:433:9: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:440:1: warning: return type defaults to 'int' [-Wimplicit-int] 440 | DoConnect(in, dst) | ^~~~~~~~~ sockd.c: In function 'DoConnect': sockd.c:466:38: warning: implicit declaration of function 'getpid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] 466 | fcntl(out, F_SETOWN, getpid()); | ^~~~~~ | getpwuid sockd.c:491:9: warning: implicit declaration of function 'Pump' [-Wimplicit-function-declaration] 491 | Pump(in, out); | ^~~~ sockd.c: At top level: sockd.c:502:1: warning: return type defaults to 'int' [-Wimplicit-int] 502 | DoNewBind(in, dst) | ^~~~~~~~~ sockd.c: In function 'DoNewBind': sockd.c:579:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 579 | close(out); | ^~~~~ | pclose sockd.c:602:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 602 | exit(1); | ^~~~ sockd.c:602:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:617:1: warning: return type defaults to 'int' [-Wimplicit-int] 617 | Pump(in, out) | ^~~~ sockd.c: In function 'Pump': sockd.c:657:45: warning: implicit declaration of function 'write'; did you mean 'writev'? [-Wimplicit-function-declaration] 657 | if (write(out, buf, n) < 0) { | ^~~~~ | writev sockd.c: At top level: sockd.c:874:1: warning: return type defaults to 'int' [-Wimplicit-int] 874 | check_sp_conf(fd, s, src, dst) | ^~~~~~~~~~~~~ sockd.c: In function 'check_sp_conf': sockd.c:884:25: warning: implicit declaration of function 'socks_shell_cmd' [-Wimplicit-function-declaration] 884 | socks_shell_cmd(buf+strlen(s), src, dst); | ^~~~~~~~~~~~~~~ sockd.c:888:9: warning: 'return' with no value, in function returning non-void 888 | return; | ^~~~~~ sockd.c:874:1: note: declared here 874 | check_sp_conf(fd, s, src, dst) | ^~~~~~~~~~~~~ sockd.c: At top level: sockd.c:891:1: warning: return type defaults to 'int' [-Wimplicit-int] 891 | Validate(src, dst, in) | ^~~~~~~~ sockd.c: In function 'Validate': sockd.c:924:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 924 | exit(1); | ^~~~ sockd.c:924:17: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:965:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 965 | exit(1); | ^~~~ sockd.c:965:25: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:975:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 975 | exit(1); | ^~~~ sockd.c:975:25: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:995:41: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 995 | exit(1); | ^~~~ sockd.c:995:41: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1009:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1009 | exit(1); | ^~~~ sockd.c:1009:25: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1014:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1014 | exit(1); | ^~~~ sockd.c:1014:25: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1018:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1018 | exit(1); | ^~~~ sockd.c:1018:25: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1027:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1027 | exit(1); | ^~~~ sockd.c:1027:33: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1031:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1031 | exit(1); | ^~~~ sockd.c:1031:33: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1053:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1053 | exit(1); | ^~~~ sockd.c:1053:33: note: include '<stdlib.h>' or provide a declaration of 'exit' sockd.c:1059:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1059 | exit(1); | ^~~~ sockd.c:1059:33: note: include '<stdlib.h>' or provide a declaration of 'exit' (cd rfinger; /opt/local/bin/bmake CC="gcc" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="-lresolv -lnsl -lsocket" SOCKS_LIB="/home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV ") /home/pbulk/build/net/socks4/work/socks.cstc.4.2/rfinger gcc -DWHOIS_SERVER'="rs.internic.net"' -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rwhois finger.c /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a -lresolv -lnsl -lsocket finger.c: In function 'main': finger.c:56:9: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] 56 | SOCKSinit(Progname); | ^~~~~~~~~ finger.c:67:25: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 67 | exit(1); | ^~~~ finger.c:16:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 15 | #include "socks.h" +++ |+#include <stdlib.h> 16 | finger.c:67:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 67 | exit(1); | ^~~~ finger.c:67:25: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:101:26: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 101 | if ((v = atoi(service)) == 0) { | ^~~~ finger.c:104:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 104 | exit(1); | ^~~~ finger.c:104:25: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:112:26: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 112 | if ((l = inet_addr(host)) == -1) { | ^~~~~~~~~ finger.c:115:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 115 | exit(1); | ^~~~ finger.c:115:25: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:132:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 132 | exit(1); | ^~~~ finger.c:132:17: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:135:27: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] 135 | while (connect(s, &sin, sizeof(sin)) < 0) { | ^~~~ | | | struct sockaddr_in * In file included from finger.c:6: /usr/include/sys/socket.h:550:25: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' 550 | extern int connect(int, const struct sockaddr *, socklen_t); | ^~~~~~~~~~~~~~~~~~~~~~~ finger.c:142:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 142 | exit(1); | ^~~~ finger.c:142:17: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:149:13: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 149 | if (write(s,cp,strlen(cp)) < 0) { | ^~~~~ | fwrite finger.c:154:21: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 154 | while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { | ^~~~ | fread finger.c:158:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 158 | close(s); | ^~~~~ | pclose gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I/opt/local/include -I/usr/include -c finger.c finger.c: In function 'main': finger.c:56:9: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] 56 | SOCKSinit(Progname); | ^~~~~~~~~ finger.c:91:17: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] 91 | execvp(cp, argv); | ^~~~~~ finger.c:93:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 93 | exit(1); | ^~~~ finger.c:16:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 15 | #include "socks.h" +++ |+#include <stdlib.h> 16 | finger.c:93:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 93 | exit(1); | ^~~~ finger.c:93:17: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:101:26: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 101 | if ((v = atoi(service)) == 0) { | ^~~~ finger.c:104:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 104 | exit(1); | ^~~~ finger.c:104:25: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:112:26: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 112 | if ((l = inet_addr(host)) == -1) { | ^~~~~~~~~ finger.c:115:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 115 | exit(1); | ^~~~ finger.c:115:25: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:132:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 132 | exit(1); | ^~~~ finger.c:132:17: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:135:27: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] 135 | while (connect(s, &sin, sizeof(sin)) < 0) { | ^~~~ | | | struct sockaddr_in * In file included from finger.c:6: /usr/include/sys/socket.h:550:25: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' 550 | extern int connect(int, const struct sockaddr *, socklen_t); | ^~~~~~~~~~~~~~~~~~~~~~~ finger.c:142:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 142 | exit(1); | ^~~~ finger.c:142:17: note: include '<stdlib.h>' or provide a declaration of 'exit' finger.c:149:13: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 149 | if (write(s,cp,strlen(cp)) < 0) { | ^~~~~ | fwrite finger.c:154:21: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 154 | while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { | ^~~~ | fread finger.c:158:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 158 | close(s); | ^~~~~ | pclose gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rfinger finger.o /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a -lresolv -lnsl -lsocket (cd rftp; /opt/local/bin/bmake CC="gcc" SOCKS_LIB="/home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="-lresolv -lnsl -lsocket" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV ") /home/pbulk/build/net/socks4/work/socks.cstc.4.2/rftp gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I/opt/local/include -I/usr/include -c cmds.c cmds.c:58: warning: "GETCWD" redefined 58 | # define GETCWD | <command-line>: note: this is the location of the previous definition In file included from cmds.c:72: ftp_var.h: In function 'strerror': ftp_var.h:148:14: warning: type of 'errnum' defaults to 'int' [-Wimplicit-int] 148 | static char *strerror(errnum) { | ^~~~~~~~ cmds.c: At top level: cmds.c:101:1: warning: return type defaults to 'int' [-Wimplicit-int] 101 | another(pargc, pargv, prompt) | ^~~~~~~ cmds.c: In function 'another': cmds.c:120:9: warning: implicit declaration of function 'makeargv' [-Wimplicit-function-declaration] 120 | makeargv(); | ^~~~~~~~ cmds.c: In function 'setpeer': cmds.c:154:24: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 154 | port = atoi(argv[2]); | ^~~~ cmds.c:178:32: warning: implicit declaration of function 'login' [-Wimplicit-function-declaration] 178 | (void) login(argv[1]); | ^~~~~ cmds.c:188:21: warning: implicit declaration of function 'command' [-Wimplicit-function-declaration] 188 | if (command("SYST") == COMPLETE && overbose) { | ^~~~~~~ cmds.c:205:22: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 205 | if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { | ^~~~~~~ cmds.c:74:1: note: include '<string.h>' or provide a declaration of 'strncmp' 73 | #include "pathnames.h" +++ |+#include <string.h> 74 | cmds.c:205:65: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 205 | if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { | ^~ <built-in>: note: built-in 'strncmp' declared here cmds.c:227:66: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 227 | !strncmp(reply_string, "215 TOPS20", 10)) | ^~ <built-in>: note: built-in 'strncmp' declared here cmds.c: In function 'settype': cmds.c:277:21: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 277 | if (strcmp(argv[1], p->t_name) == 0) | ^~~~~~ cmds.c:277:21: note: include '<string.h>' or provide a declaration of 'strcmp' cmds.c: In function 'put': cmds.c:419:14: warning: implicit declaration of function 'globulize' [-Wimplicit-function-declaration] 419 | if (!globulize(&argv[1])) { | ^~~~~~~~~ cmds.c: In function 'mput': cmds.c:470:38: warning: implicit declaration of function 'confirm' [-Wimplicit-function-declaration] 470 | if (mflag && confirm(argv[0], cp)) { | ^~~~~~~ cmds.c:479:69: warning: comparison between pointer and integer 479 | while ((*tp2 = *tp) != NULL) { | ^~ cmds.c:535:33: warning: implicit declaration of function 'blkfree' [-Wimplicit-function-declaration] 535 | blkfree(gargs); | ^~~~~~~ cmds.c:536:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 536 | free((char *)gargs); | ^~~~ cmds.c:74:1: note: include '<stdlib.h>' or provide a declaration of 'free' 73 | #include "pathnames.h" +++ |+#include <stdlib.h> 74 | cmds.c:536:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 536 | free((char *)gargs); | ^~~~ cmds.c:536:33: note: include '<stdlib.h>' or provide a declaration of 'free' cmds.c:558:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 558 | free((char *)gargs); | ^~~~ cmds.c:558:25: note: include '<stdlib.h>' or provide a declaration of 'free' cmds.c: In function 'reget': cmds.c:567:16: warning: implicit declaration of function 'getit' [-Wimplicit-function-declaration] 567 | (void) getit(argc, argv, 1, "r+w"); | ^~~~~ cmds.c: At top level: cmds.c:570:1: warning: return type defaults to 'int' [-Wimplicit-int] 570 | get(argc, argv) | ^~~ cmds.c:580:1: warning: return type defaults to 'int' [-Wimplicit-int] 580 | getit(argc, argv, restartit, mode) | ^~~~~ cmds.c: In function 'getit': cmds.c:580:1: warning: type of 'restartit' defaults to 'int' [-Wimplicit-int] cmds.c:616:45: warning: comparison between pointer and integer 616 | while ((*tp2 = *tp) != NULL) { | ^~ cmds.c:686:33: warning: passing argument 5 of 'recvrequest' makes pointer from integer without a cast [-Wint-conversion] 686 | argv[1] != oldargv1 || argv[2] != oldargv2); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ | | | int cmds.c:76:75: note: expected 'char *' but argument is of type 'int' 76 | void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); | ~~~~~~^~~~~~~~~~ cmds.c: In function 'mget': cmds.c:730:33: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 730 | oldintr = signal(SIGINT,mabort); | ^~~~~~ | | | void (*)(int, char **) In file included from /usr/include/signal.h:42, from cmds.c:64: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ cmds.c:746:61: warning: comparison between pointer and integer 746 | while ((*tp2 = *tp) != NULL) { | ^~ cmds.c:763:38: warning: passing argument 5 of 'recvrequest' makes pointer from integer without a cast [-Wint-conversion] 763 | tp != cp || !interactive); | ~~~~~~~~~^~~~~~~~~~~~~~~ | | | int cmds.c:76:75: note: expected 'char *' but argument is of type 'int' 76 | void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); | ~~~~~~^~~~~~~~~~ cmds.c: At top level: cmds.c:904:1: warning: return type defaults to 'int' [-Wimplicit-int] 904 | setbell() | ^~~~~~~ cmds.c:916:1: warning: return type defaults to 'int' [-Wimplicit-int] 916 | settrace() | ^~~~~~~~ cmds.c:928:1: warning: return type defaults to 'int' [-Wimplicit-int] 928 | sethash() | ^~~~~~~ cmds.c:943:1: warning: return type defaults to 'int' [-Wimplicit-int] 943 | setverbose() | ^~~~~~~~~~ cmds.c:955:1: warning: return type defaults to 'int' [-Wimplicit-int] 955 | setport() | ^~~~~~~ cmds.c:968:1: warning: return type defaults to 'int' [-Wimplicit-int] 968 | setprompt() | ^~~~~~~~~ cmds.c:981:1: warning: return type defaults to 'int' [-Wimplicit-int] 981 | setglob() | ^~~~~~~ cmds.c: In function 'mdelete': cmds.c:1102:34: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1102 | oldintr = signal(SIGINT, mabort); | ^~~~~~ | | | void (*)(int, char **) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ cmds.c: In function 'mls': cmds.c:1204:34: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1204 | oldintr = signal(SIGINT, mabort); | ^~~~~~ | | | void (*)(int, char **) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ cmds.c: In function 'shell': cmds.c:1266:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 1266 | exit(1); | ^~~~ cmds.c:1266:17: note: include '<stdlib.h>' or provide a declaration of 'exit' cmds.c:1266:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] cmds.c:1266:17: note: include '<stdlib.h>' or provide a declaration of 'exit' cmds.c: In function 'quote': cmds.c:1401:9: warning: implicit declaration of function 'quote1'; did you mean 'quote'? [-Wimplicit-function-declaration] 1401 | quote1("", argc, argv); | ^~~~~~ | quote cmds.c: At top level: cmds.c:1424:1: warning: return type defaults to 'int' [-Wimplicit-int] 1424 | quote1(initial, argc, argv) | ^~~~~~ cmds.c: In function 'quote1': cmds.c:1442:24: warning: implicit declaration of function 'getreply' [-Wimplicit-function-declaration] 1442 | while (getreply(0) == PRELIM); | ^~~~~~~~ cmds.c: At top level: cmds.c:1469:1: warning: return type defaults to 'int' [-Wimplicit-int] 1469 | idle(argc, argv) | ^~~~ cmds.c:1483:1: warning: return type defaults to 'int' [-Wimplicit-int] 1483 | rmthelp(argc, argv) | ^~~~~~~ cmds.c:1498:1: warning: return type defaults to 'int' [-Wimplicit-int] 1498 | quit() | ^~~~ cmds.c: In function 'quit': cmds.c:1507:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1507 | exit(0); | ^~~~ cmds.c:1507:9: note: include '<stdlib.h>' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1532:1: warning: return type defaults to 'int' [-Wimplicit-int] 1532 | confirm(cmd, file) | ^~~~~~~ cmds.c:1546:1: warning: return type defaults to 'int' [-Wimplicit-int] 1546 | fatal(msg) | ^~~~~ cmds.c: In function 'fatal': cmds.c:1551:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1551 | exit(1); | ^~~~ cmds.c:1551:9: note: include '<stdlib.h>' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1560:1: warning: return type defaults to 'int' [-Wimplicit-int] 1560 | globulize(cpp) | ^~~~~~~~~ cmds.c: In function 'globulize': cmds.c:1572:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1572 | free((char *)globbed); | ^~~~ cmds.c:1572:25: note: include '<stdlib.h>' or provide a declaration of 'free' cmds.c:1581:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1581 | free((char *)globbed); | ^~~~ cmds.c:1581:25: note: include '<stdlib.h>' or provide a declaration of 'free' cmds.c: At top level: cmds.c:1587:1: warning: return type defaults to 'int' [-Wimplicit-int] 1587 | account(argc,argv) | ^~~~~~~ cmds.c: In function 'account': cmds.c:1596:43: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1596 | (void) strncpy(acct,*argv,49); | ^~ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c: At top level: cmds.c:1689:1: warning: return type defaults to 'int' [-Wimplicit-int] 1689 | setcase() | ^~~~~~~ cmds.c:1696:1: warning: return type defaults to 'int' [-Wimplicit-int] 1696 | setcr() | ^~~~~ cmds.c: In function 'setntrans': cmds.c:1713:39: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1713 | (void) strncpy(ntin, argv[1], 16); | ^~ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c:1719:40: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1719 | (void) strncpy(ntout, argv[2], 16); | ^~ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c: In function 'setnmap': cmds.c:1775:39: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1775 | (void) strncpy(mapin, altarg, MAXPATHLEN - 1); | ^~~~~~~~~~ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c:1777:36: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1777 | (void) strncpy(mapout, cp, MAXPATHLEN - 1); | ^~~~~~~~~~ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c: At top level: cmds.c:1950:1: warning: return type defaults to 'int' [-Wimplicit-int] 1950 | setsunique() | ^~~~~~~~~~ cmds.c:1957:1: warning: return type defaults to 'int' [-Wimplicit-int] 1957 | setrunique() | ^~~~~~~~~~ cmds.c:1965:1: warning: return type defaults to 'int' [-Wimplicit-int] 1965 | cdup() | ^~~~ cmds.c: In function 'macdef': cmds.c:2011:58: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 2011 | (void) strncpy(macros[macnum].mac_name, argv[1], 8); | ^ ftp_var.h:140:15: note: built-in 'strncpy' declared here 140 | extern char *strncpy(); | ^~~~~~~ cmds.c: At top level: cmds.c:2103:1: warning: return type defaults to 'int' [-Wimplicit-int] 2103 | newer(argc, argv) | ^~~~~ cmds.c: In function 'globulize': cmds.c:1581:25: warning: 'free' called on pointer 'globbed' with nonzero offset 8 [-Wfree-nonheap-object] 1581 | free((char *)globbed); | ^~~~~~~~~~~~~~~~~~~~~ cmds.c:1567:19: note: returned from 'ftpglob' 1567 | globbed = ftpglob(*cpp); | ^~~~~~~~~~~~~ gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I/opt/local/include -I/usr/include -c cmdtab.c In file included from cmdtab.c:38: ftp_var.h: In function 'strerror': ftp_var.h:148:14: warning: type of 'errnum' defaults to 'int' [-Wimplicit-int] 148 | static char *strerror(errnum) { | ^~~~~~~~ ftp_var.h:153:37: error: 'errno' undeclared (first use in this function) 153 | sys_errlist[errno] : "UNDEFINED"); | ^~~~~ ftp_var.h:100:1: note: 'errno' is defined in header '<errno.h>'; did you forget to '#include <errno.h>'? 99 | #include <setjmp.h> +++ |+#include <errno.h> 100 | jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ ftp_var.h:153:37: note: each undeclared identifier is reported only once for each function it appears in 153 | sys_errlist[errno] : "UNDEFINED"); | ^~~~~ *** [cmdtab.o] Error code 1 bmake[1]: stopped in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/rftp 1 error bmake[1]: stopped in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/rftp *** [RFTP] Error code 2 bmake: stopped in /home/pbulk/build/net/socks4/work/socks.cstc.4.2 1 error bmake: stopped in /home/pbulk/build/net/socks4/work/socks.cstc.4.2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/net/socks4 *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/net/socks4