+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socks4-2.2nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/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/pkg/bin/bmake CC="gcc" GETPASS="getpass.o"  OPTIMIZE="-pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2"  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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -c Rconnect.c
Rconnect.c: In function 'SOCKSinit':
Rconnect.c:129:2: 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:41: 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:26: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration]
  211 |   if ((pw = getpwuid(uid=getuid())) == NULL) {
      |                          ^~~~~~
      |                          getpwuid
Rconnect.c:219:25: 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:8: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration]
  289 |    if (dup2(new_sock, sock) < 0) {
      |        ^~~~
Rconnect.c:290:5: 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:11: 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:13: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration]
  359 |  if ((sta = socks_SendDst(s, dst)) < 0) {
      |             ^~~~~~~~~~~~~
Rconnect.c:373:13: 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:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  386 |  exit(SOCKS_FAIL);
      |  ^~~~
Rconnect.c:386:2: warning: incompatible implicit declaration of built-in function 'exit'
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: In function 'do_C_proto':
Rconnect.c:397:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration]
  397 |  alarm(CLIENT_CONN_TIMEOUT);
      |  ^~~~~
Rconnect.c:404:3: warning: incompatible implicit declaration of built-in function 'exit'
  404 |   exit(SOCKS_FAIL);
      |   ^~~~
Rconnect.c:404:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
Rconnect.c:409:3: warning: incompatible implicit declaration of built-in function 'exit'
  409 |   exit(dst.cmd);
      |   ^~~~
Rconnect.c:409:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
Rconnect.c:411:2: warning: incompatible implicit declaration of built-in function 'exit'
  411 |  exit(SOCKS_RESULT);
      |  ^~~~
Rconnect.c:411:2: 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:11: warning: implicit declaration of function 'socks_check_cconf' [-Wimplicit-function-declaration]
  528 |  direct = socks_check_cconf(&me, sin);
      |           ^~~~~~~~~~~~~~~~~
Rconnect.c:600:22: 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:11: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration]
  851 |    return(dup(sock));
      |           ^~~
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -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:662,
                 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:30: note: in expansion of macro 'NULL'
   36 |   if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0)
      |                              ^~~~
In file included from /usr/include/sys/types.h:662,
                 from SendGetDst.c:1:
/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:42: note: in expansion of macro 'NULL'
   36 |   if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0)
      |                                          ^~~~
In file included from /usr/include/sys/types.h:662,
                 from SendGetDst.c:1:
/usr/include/sys/select.h:144:2: note: expected 'fd_set * restrict' but argument is of type 'char *'
  144 |  fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD);
      |  ^
SendGetDst.c:46:11: 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:36: note: in expansion of macro 'NULL'
   75 |   if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0)
      |                                    ^~~~
In file included from /usr/include/sys/types.h:662,
                 from SendGetDst.c:1:
/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:42: note: in expansion of macro 'NULL'
   75 |   if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0)
      |                                          ^~~~
In file included from /usr/include/sys/types.h:662,
                 from SendGetDst.c:1:
/usr/include/sys/select.h:144:2: note: expected 'fd_set * restrict' but argument is of type 'char *'
  144 |  fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD);
      |  ^
SendGetDst.c:85:11: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
   85 |   if((n = read(s, p, i)) > 0) {
      |           ^~~~
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -c saddrtoname.c
saddrtoname.c: In function 'socks_saddrtoname':
saddrtoname.c:14:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
   14 |   strncpy(name, host->h_name, namelen);
      |   ^~~~~~~
saddrtoname.c:14:3: warning: incompatible implicit declaration of built-in function 'strncpy'
saddrtoname.c:5:1: note: include '<string.h>' or provide a declaration of 'strncpy'
    4 | #include <netdb.h>
  +++ |+#include <string.h>
    5 | 
saddrtoname.c:16:3: warning: incompatible implicit declaration of built-in function 'strncpy'
   16 |   strncpy(name, inet_ntoa(*addr), namelen);
      |   ^~~~~~~
saddrtoname.c:16:3: note: include '<string.h>' or provide a declaration of 'strncpy'
saddrtoname.c:16:17: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration]
   16 |   strncpy(name, inet_ntoa(*addr), namelen);
      |                 ^~~~~~~~~
saddrtoname.c:16:17: 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:17: note: expected 'const char *' but argument is of type 'int'
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -c porttoserv.c
porttoserv.c: In function 'socks_porttoserv':
porttoserv.c:15:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
   15 |   strncpy(name, serv->s_name, namelen);
      |   ^~~~~~~
porttoserv.c:15:3: warning: incompatible implicit declaration of built-in function 'strncpy'
porttoserv.c:5:1: note: include '<string.h>' or provide a declaration of 'strncpy'
    4 | #include <netdb.h>
  +++ |+#include <string.h>
    5 | 
porttoserv.c:17:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
   17 |   sprintf(name, "%u", port);
      |   ^~~~~~~
porttoserv.c:17:3: warning: incompatible implicit declaration of built-in function 'sprintf'
porttoserv.c:5:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
    4 | #include <netdb.h>
  +++ |+#include <stdio.h>
    5 | 
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -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:17: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration]
   46 |   self.s_addr = inet_addr("127.0.0.1");
      |                 ^~~~~~~~~
check_cconf.c:83:3: 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:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  142 |    exit(1);
      |    ^~~~
check_cconf.c:142:4: warning: incompatible implicit declaration of built-in function 'exit'
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:169:4: warning: incompatible implicit declaration of built-in function 'exit'
  169 |    exit(1);
      |    ^~~~
check_cconf.c:169:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:179:4: warning: incompatible implicit declaration of built-in function 'exit'
  179 |    exit(1);
      |    ^~~~
check_cconf.c:179:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:183:4: warning: incompatible implicit declaration of built-in function 'exit'
  183 |    exit(1);
      |    ^~~~
check_cconf.c:183:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:187:4: warning: incompatible implicit declaration of built-in function 'exit'
  187 |    exit(1);
      |    ^~~~
check_cconf.c:187:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:204:5: warning: incompatible implicit declaration of built-in function 'exit'
  204 |     exit(1);
      |     ^~~~
check_cconf.c:204:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:210:5: warning: incompatible implicit declaration of built-in function 'exit'
  210 |     exit(1);
      |     ^~~~
check_cconf.c:210:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
check_cconf.c:251:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  251 |      (struct config **) malloc(CONF_INCR *sizeof(struct config **));
      |                         ^~~~~~
check_cconf.c:251:25: warning: incompatible implicit declaration of built-in function 'malloc'
check_cconf.c:251:25: note: include '<stdlib.h>' or provide a declaration of 'malloc'
check_cconf.c:253:6: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
  253 |      realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config));
      |      ^~~~~~~
check_cconf.c:253:6: warning: incompatible implicit declaration of built-in function 'realloc'
check_cconf.c:253:6: note: include '<stdlib.h>' or provide a declaration of 'realloc'
check_cconf.c:255:45: warning: incompatible implicit declaration of built-in function 'malloc'
  255 |   *(confNtries +Ntries) = (struct config *) malloc(sizeof(struct config));
      |                                             ^~~~~~
check_cconf.c:255:45: note: include '<stdlib.h>' or provide a declaration of 'malloc'
check_cconf.c:283:3: warning: incompatible implicit declaration of built-in function 'exit'
  283 |   exit(1);
      |   ^~~~
check_cconf.c:283:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -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:21: 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:9: 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:9: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration]
  115 |  (void) execl("/bin/sh", "sh", "-c", command, (char *) 0);
      |         ^~~~~
shell_cmd.c:115:9: warning: incompatible implicit declaration of built-in function 'execl'
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -c check_user.c
check_user.c: In function 'socks_GetQuad':
check_user.c:59:22: 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:9: warning: implicit declaration of function 'atol' [-Wimplicit-function-declaration]
  101 |  return atol(name);
      |         ^~~~
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -c getpass.c
getpass.c: In function 'getpass':
getpass.c:81:8: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
   81 |  (void)ioctl(fileno(fp), TIOCGETP, &ttyb);
      |        ^~~~~
getpass.c:89:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   89 |   exit(1);
      |   ^~~~
getpass.c:89:3: warning: incompatible implicit declaration of built-in function 'exit'
getpass.c:45:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   44 | #include <stdio.h>
  +++ |+#include <stdlib.h>
   45 | 
getpass.c:107:8: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  107 |  (void)write(fileno(outfp), "\n", 1);
      |        ^~~~~
      |        fwrite
getpass.c:119:3: warning: incompatible implicit declaration of built-in function 'exit'
  119 |   exit(1);
      |   ^~~~
getpass.c:119:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV    -DSUPPORT_RCMD   -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:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
   84 |  bcopy(hp, &hoste, sizeof(struct hostent));
      |  ^~~~~
Rrcmd.c:84:2: warning: incompatible implicit declaration of built-in function 'bcopy'
Rrcmd.c:90:12: warning: implicit declaration of function 'sigblock' [-Wimplicit-function-declaration]
   90 |  oldmask = sigblock(sigmask(SIGURG));
      |            ^~~~~~~~
Rrcmd.c:90:21: warning: implicit declaration of function 'sigmask' [-Wimplicit-function-declaration]
   90 |  oldmask = sigblock(sigmask(SIGURG));
      |                     ^~~~~~~
Rrcmd.c:105:4: warning: implicit declaration of function 'sigsetmask'; did you mean 'sigstack'? [-Wimplicit-function-declaration]
  105 |    sigsetmask(oldmask);
      |    ^~~~~~~~~~
      |    sigstack
Rrcmd.c:118:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  118 |   bzero((char *)&sin, sizeof sin);
      |   ^~~~~
Rrcmd.c:118:3: warning: incompatible implicit declaration of built-in function 'bzero'
Rrcmd.c:125:7: 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:7: 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:7: 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:3: warning: implicit declaration of function 'Rlisten'; did you mean 'listen'? [-Wimplicit-function-declaration]
  198 |   Rlisten(s2, 1);
      |   ^~~~~~~
      |   listen
Rrcmd.c:228:8: 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/pkg/bin/bmake CC="gcc" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV"  OPTIMIZE="-pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2" RANLIB="/bin/true")
/home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV  -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:76:21: warning: incompatible implicit declaration of built-in function 'malloc'
ident.c:18:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   17 | #include "ident.h"
  +++ |+#include <stdlib.h>
   18 | 
ident.c:98:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   98 |     free(ident);
      |     ^~~~
ident.c:98:5: warning: incompatible implicit declaration of built-in function 'free'
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'
  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'
  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'
  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'
  138 |   free(id);
      |   ^~~~
ident.c:138:3: note: include '<stdlib.h>' or provide a declaration of 'free'
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV  -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: warning: incompatible implicit declaration of built-in function 'free'
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'
  173 |   free(id);
      |   ^~~~
id_open.c:173:3: note: include '<stdlib.h>' or provide a declaration of 'free'
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV  -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:20:3: warning: incompatible implicit declaration of built-in function 'free'
id_close.c:8:1: note: include '<stdlib.h>' or provide a declaration of 'free'
    7 | #include "ident.h"
  +++ |+#include <stdlib.h>
    8 | 
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV  -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:63:28: warning: incompatible implicit declaration of built-in function 'strlen'
id_query.c:22:1: note: include '<string.h>' or provide a declaration of 'strlen'
   21 | #include "ident.h"
  +++ |+#include <string.h>
   22 | 
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD  -DCOMPAT -DTRY_PASV  -c id_parse.c
id_parse.c: In function 'id_parse':
id_parse.c:148:10: 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/pkg/bin/bmake CC="gcc" RESOLV_LIB="-lresolv -lnsl -lsocket"  OPTIMIZE="-pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2"  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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   89 |  exit(1);
      |  ^~~~
sockd.c:89:2: warning: incompatible implicit declaration of built-in function 'exit'
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: 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:3: warning: incompatible implicit declaration of built-in function 'exit'
  192 |   exit(1);
      |   ^~~~
sockd.c:192:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:306:7: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration]
  306 |  in = dup(0);
      |       ^~~
sockd.c:311:3: warning: incompatible implicit declaration of built-in function 'exit'
  311 |   exit(1);
      |   ^~~~
sockd.c:311:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:320:6: 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:3: warning: incompatible implicit declaration of built-in function 'exit'
  322 |   exit(1);
      |   ^~~~
sockd.c:322:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:328:3: warning: incompatible implicit declaration of built-in function 'exit'
  328 |   exit(1);
      |   ^~~~
sockd.c:328:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:334:3: warning: incompatible implicit declaration of built-in function 'exit'
  334 |   exit(1);
      |   ^~~~
sockd.c:334:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:341:9: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration]
  341 |  while (read(in, &c, 1) == 1)
      |         ^~~~
      |         readv
sockd.c:355:11: warning: implicit declaration of function 'Validate' [-Wimplicit-function-declaration]
  355 |  permit = Validate(&from, &dstsin, in);
      |           ^~~~~~~~
sockd.c:380:3: warning: incompatible implicit declaration of built-in function 'exit'
  380 |   exit(1);
      |   ^~~~
sockd.c:380:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:387:3: warning: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration]
  387 |   socks_SendDst(in, &dst);
      |   ^~~~~~~~~~~~~
sockd.c:388:3: warning: incompatible implicit declaration of built-in function 'exit'
  388 |   exit(1);
      |   ^~~~
sockd.c:388:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:394:3: warning: incompatible implicit declaration of built-in function 'exit'
  394 |   exit(1);
      |   ^~~~
sockd.c:394:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:398:3: warning: incompatible implicit declaration of built-in function 'exit'
  398 |   exit(1);
      |   ^~~~
sockd.c:398:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:413:2: warning: implicit declaration of function 'signal'; did you mean 'strsignal'? [-Wimplicit-function-declaration]
  413 |  signal(SIGALRM, die);
      |  ^~~~~~
      |  strsignal
sockd.c:415:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration]
  415 |  alarm(60*2);
      |  ^~~~~
sockd.c:418:3: warning: implicit declaration of function 'DoConnect'; did you mean 'connect'? [-Wimplicit-function-declaration]
  418 |   DoConnect(in, &dst);
      |   ^~~~~~~~~
      |   connect
sockd.c:421:3: 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:2: warning: incompatible implicit declaration of built-in function 'exit'
  433 |  exit(1);
      |  ^~~~
sockd.c:433:2: 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:24: warning: implicit declaration of function 'getpid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration]
  466 |   fcntl(out, F_SETOWN, getpid());
      |                        ^~~~~~
      |                        getpwuid
sockd.c:491:2: 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:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  579 |  close(out);
      |  ^~~~~
      |  pclose
sockd.c:602:3: warning: incompatible implicit declaration of built-in function 'exit'
  602 |   exit(1);
      |   ^~~~
sockd.c:602:3: 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:10: 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:4: warning: implicit declaration of function 'socks_shell_cmd' [-Wimplicit-function-declaration]
  884 |    socks_shell_cmd(buf+strlen(s), src, dst);
      |    ^~~~~~~~~~~~~~~
sockd.c:888:2: 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:3: warning: incompatible implicit declaration of built-in function 'exit'
  924 |   exit(1);
      |   ^~~~
sockd.c:924:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:965:4: warning: incompatible implicit declaration of built-in function 'exit'
  965 |    exit(1);
      |    ^~~~
sockd.c:965:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:975:4: warning: incompatible implicit declaration of built-in function 'exit'
  975 |    exit(1);
      |    ^~~~
sockd.c:975:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:995:6: warning: incompatible implicit declaration of built-in function 'exit'
  995 |      exit(1);
      |      ^~~~
sockd.c:995:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1009:4: warning: incompatible implicit declaration of built-in function 'exit'
 1009 |    exit(1);
      |    ^~~~
sockd.c:1009:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1014:4: warning: incompatible implicit declaration of built-in function 'exit'
 1014 |    exit(1);
      |    ^~~~
sockd.c:1014:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1018:4: warning: incompatible implicit declaration of built-in function 'exit'
 1018 |    exit(1);
      |    ^~~~
sockd.c:1018:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1027:5: warning: incompatible implicit declaration of built-in function 'exit'
 1027 |     exit(1);
      |     ^~~~
sockd.c:1027:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1031:5: warning: incompatible implicit declaration of built-in function 'exit'
 1031 |     exit(1);
      |     ^~~~
sockd.c:1031:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1053:5: warning: incompatible implicit declaration of built-in function 'exit'
 1053 |     exit(1);
      |     ^~~~
sockd.c:1053:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
sockd.c:1059:5: warning: incompatible implicit declaration of built-in function 'exit'
 1059 |     exit(1);
      |     ^~~~
sockd.c:1059:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
(cd rfinger; /opt/pkg/bin/bmake CC="gcc" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\'  OPTIMIZE="-pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2" 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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration]
   56 |  SOCKSinit(Progname);
      |  ^~~~~~~~~
finger.c:67:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   67 |    exit(1);
      |    ^~~~
finger.c:67:4: warning: incompatible implicit declaration of built-in function 'exit'
finger.c:16:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   15 | #include "socks.h"
  +++ |+#include <stdlib.h>
   16 | 
finger.c:101:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  101 |   if ((v = atoi(service)) == 0) {
      |            ^~~~
finger.c:104:4: warning: incompatible implicit declaration of built-in function 'exit'
  104 |    exit(1);
      |    ^~~~
finger.c:104:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:112:12: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration]
  112 |   if ((l = inet_addr(host)) == -1) {
      |            ^~~~~~~~~
finger.c:115:4: warning: incompatible implicit declaration of built-in function 'exit'
  115 |    exit(1);
      |    ^~~~
finger.c:115:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:132:3: warning: incompatible implicit declaration of built-in function 'exit'
  132 |   exit(1);
      |   ^~~~
finger.c:132:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:135:20: 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:3: warning: incompatible implicit declaration of built-in function 'exit'
  142 |   exit(1);
      |   ^~~~
finger.c:142:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:149:6: 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:14: 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:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  158 |  close(s);
      |  ^~~~~
      |  pclose
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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  -c finger.c
finger.c: In function 'main':
finger.c:56:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration]
   56 |  SOCKSinit(Progname);
      |  ^~~~~~~~~
finger.c:91:3: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
   91 |   execvp(cp, argv);
      |   ^~~~~~
finger.c:93:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   93 |   exit(1);
      |   ^~~~
finger.c:93:3: warning: incompatible implicit declaration of built-in function 'exit'
finger.c:16:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   15 | #include "socks.h"
  +++ |+#include <stdlib.h>
   16 | 
finger.c:101:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  101 |   if ((v = atoi(service)) == 0) {
      |            ^~~~
finger.c:104:4: warning: incompatible implicit declaration of built-in function 'exit'
  104 |    exit(1);
      |    ^~~~
finger.c:104:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:112:12: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration]
  112 |   if ((l = inet_addr(host)) == -1) {
      |            ^~~~~~~~~
finger.c:115:4: warning: incompatible implicit declaration of built-in function 'exit'
  115 |    exit(1);
      |    ^~~~
finger.c:115:4: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:132:3: warning: incompatible implicit declaration of built-in function 'exit'
  132 |   exit(1);
      |   ^~~~
finger.c:132:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:135:20: 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:3: warning: incompatible implicit declaration of built-in function 'exit'
  142 |   exit(1);
      |   ^~~~
finger.c:142:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
finger.c:149:6: 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:14: 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:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  158 |  close(s);
      |  ^~~~~
      |  pclose
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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/pkg/bin/bmake CC="gcc" SOCKS_LIB="/home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib/libsocks.a"  OPTIMIZE="-pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2" 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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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  -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:2: warning: implicit declaration of function 'makeargv' [-Wimplicit-function-declaration]
  120 |  makeargv();
      |  ^~~~~~~~
cmds.c: In function 'setpeer':
cmds.c:154:10: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  154 |   port = atoi(argv[2]);
      |          ^~~~
cmds.c:178:11: warning: implicit declaration of function 'login' [-Wimplicit-function-declaration]
  178 |    (void) login(argv[1]);
      |           ^~~~~
cmds.c:188:7: warning: implicit declaration of function 'command' [-Wimplicit-function-declaration]
  188 |   if (command("SYST") == COMPLETE && overbose) {
      |       ^~~~~~~
cmds.c:205:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  205 |   if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) {
      |        ^~~~~~~
cmds.c:205:51: 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:45: 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:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  277 |   if (strcmp(argv[1], p->t_name) == 0)
      |       ^~~~~~
cmds.c: In function 'put':
cmds.c:419:7: warning: implicit declaration of function 'globulize' [-Wimplicit-function-declaration]
  419 |  if (!globulize(&argv[1])) {
      |       ^~~~~~~~~
cmds.c: In function 'mput':
cmds.c:470:17: warning: implicit declaration of function 'confirm' [-Wimplicit-function-declaration]
  470 |    if (mflag && confirm(argv[0], cp)) {
      |                 ^~~~~~~
cmds.c:479:27: warning: comparison between pointer and integer
  479 |       while ((*tp2 = *tp) != NULL) {
      |                           ^~
cmds.c:535:5: warning: implicit declaration of function 'blkfree' [-Wimplicit-function-declaration]
  535 |     blkfree(gargs);
      |     ^~~~~~~
cmds.c:536:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  536 |     free((char *)gargs);
      |     ^~~~
cmds.c:536:5: warning: incompatible implicit declaration of built-in function 'free'
cmds.c:74:1: note: include '<stdlib.h>' or provide a declaration of 'free'
   73 | #include "pathnames.h"
  +++ |+#include <stdlib.h>
   74 | 
cmds.c:558:4: warning: incompatible implicit declaration of built-in function 'free'
  558 |    free((char *)gargs);
      |    ^~~~
cmds.c:558:4: note: include '<stdlib.h>' or provide a declaration of 'free'
cmds.c: In function 'reget':
cmds.c:567:9: 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:24: warning: comparison between pointer and integer
  616 |    while ((*tp2 = *tp) != NULL) {
      |                        ^~
cmds.c:686:26: 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:26: 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:26: warning: comparison between pointer and integer
  746 |      while ((*tp2 = *tp) != NULL) {
      |                          ^~
cmds.c:763:17: 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:27: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
 1102 |  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: In function 'mls':
cmds.c:1204:27: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
 1204 |  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: In function 'shell':
cmds.c:1266:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
 1266 |   exit(1);
      |   ^~~~
cmds.c:1266:3: warning: incompatible implicit declaration of built-in function 'exit'
cmds.c:1266:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
cmds.c: In function 'quote':
cmds.c:1401:2: 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:10: 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:2: warning: incompatible implicit declaration of built-in function 'exit'
 1507 |  exit(0);
      |  ^~~~
cmds.c:1507:2: 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:2: warning: incompatible implicit declaration of built-in function 'exit'
 1551 |  exit(1);
      |  ^~~~
cmds.c:1551:2: 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:4: warning: incompatible implicit declaration of built-in function 'free'
 1572 |    free((char *)globbed);
      |    ^~~~
cmds.c:1572:4: note: include '<stdlib.h>' or provide a declaration of 'free'
cmds.c:1581:4: warning: incompatible implicit declaration of built-in function 'free'
 1581 |    free((char *)globbed);
      |    ^~~~
cmds.c:1581:4: 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:29: 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);
      |                             ^~
In file included from cmds.c:72:
ftp_var.h:140:14: 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:32: 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);
      |                                ^~
In file included from cmds.c:72:
ftp_var.h:140:14: note: built-in 'strncpy' declared here
  140 | extern char *strncpy();
      |              ^~~~~~~
cmds.c:1719:33: 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);
      |                                 ^~
In file included from cmds.c:72:
ftp_var.h:140:14: note: built-in 'strncpy' declared here
  140 | extern char *strncpy();
      |              ^~~~~~~
cmds.c: In function 'setnmap':
cmds.c:1775:32: 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);
      |                                ^~~~~~~~~~
In file included from cmds.c:72:
ftp_var.h:140:14: note: built-in 'strncpy' declared here
  140 | extern char *strncpy();
      |              ^~~~~~~
cmds.c:1777:29: 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);
      |                             ^~~~~~~~~~
In file included from cmds.c:72:
ftp_var.h:140:14: 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:51: 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);
      |                                                   ^
In file included from cmds.c:72:
ftp_var.h:140:14: 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)
      | ^~~~~
gcc -I../include -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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  -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:16: 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:16: 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-upstream-trunk/net/socks4
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/socks4