=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for portmap-4nb3
--- portmap.o ---
--- pmap_check.o ---
--- from_local.o ---
--- portmap.o ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/pkg/include -c portmap.c
--- from_local.o ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/pkg/include -c from_local.c
--- pmap_check.o ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/pkg/include -c pmap_check.c
pmap_check.c:98:9: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (setuid(1) == -1) {
        ^
pmap_check.c:100:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        exit(1);
        ^
pmap_check.c:100:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
--- from_local.o ---
from_local.c:81:36: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    new_addrs = (struct in_addr *) malloc(sizeof(*addrs) * new_num);
                                   ^
from_local.c:81:36: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
from_local.c:87:6: warning: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            memcpy((char *) new_addrs, (char *) addrs,
            ^
from_local.c:87:6: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
from_local.c:89:6: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            free((char *) addrs);
            ^
from_local.c:89:6: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
from_local.c:99:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
--- portmap.o ---
portmap.c:131:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main(argc, argv)
^
int
--- from_local.o ---
find_local()
^
int
--- pmap_check.o ---
pmap_check.c:107:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
check_default(addr, proc, prog)
^
int
--- portmap.o ---
portmap.c:141:14: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        while ((c = getopt(argc, argv, "dv")) != EOF) {
                    ^
--- pmap_check.o ---
pmap_check.c:113:21: warning: passing arguments to 'from_local' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    if (!(from_local(addr) || good_client(addr))) {
                    ^
pmap_check.c:113:31: warning: call to undeclared function 'hosts_ctl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (!(from_local(addr) || good_client(addr))) {
                              ^
pmap_check.c:69:24: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                       ^
pmap_check.c:113:31: warning: passing arguments to 'inet_ntoa' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pmap_check.c:69:58: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                                                         ^
--- from_local.o ---
from_local.c:121:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        (void) close(sock);
               ^
--- pmap_check.o ---
pmap_check.c:114:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_bad_host(addr, proc, prog);
        ^
pmap_check.c:78:8: note: expanded from macro 'log_bad_host'
  logit(deny_severity, addr, proc, prog, ": request from unauthorized host")
       ^
pmap_check.c:119:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_client(addr, proc, prog);
        ^
pmap_check.c:87:8: note: expanded from macro 'log_client'
  logit(allow_severity, addr, proc, prog, "")
       ^
pmap_check.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
check_default(addr, proc, prog)
^
In file included from pmap_check.c:50:
./pmap_check.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
extern int check_default();
           ^
--- from_local.o ---
from_local.c:151:12: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    (void) close(sock);
           ^
--- portmap.o ---
portmap.c:160:20: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
        if (!debugging && daemon(0, 0)) {
                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdlib.h:292:6: note: 'daemon' has been explicitly marked deprecated here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
         ^
portmap.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main(argc, argv)
^
--- pmap_check.o ---
pmap_check.c:125:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
check_privileged_port(addr, proc, prog, port)
^
int
pmap_check.c:133:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_bad_port(addr, proc, prog);
        ^
pmap_check.c:75:8: note: expanded from macro 'log_bad_port'
  logit(deny_severity, addr, proc, prog, ": request from unprivileged port")
       ^
pmap_check.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
check_privileged_port(addr, proc, prog, port)
^
In file included from pmap_check.c:50:
./pmap_check.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
extern int check_privileged_port();
           ^
pmap_check.c:142:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
check_setunset(addr, proc, prog, port)
^
int
pmap_check.c:148:20: warning: passing arguments to 'from_local' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    if (!from_local(addr)) {
                   ^
pmap_check.c:150:9: warning: call to undeclared function 'hosts_ctl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        (void) good_client(addr);               /* because of side effects */
               ^
pmap_check.c:69:24: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                       ^
pmap_check.c:150:9: warning: passing arguments to 'inet_ntoa' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pmap_check.c:69:58: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                                                         ^
pmap_check.c:152:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_bad_owner(addr, proc, prog);
        ^
pmap_check.c:81:8: note: expanded from macro 'log_bad_owner'
  logit(deny_severity, addr, proc, prog, ": request from non-local host")
       ^
pmap_check.c:158:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_client(addr, proc, prog);
        ^
pmap_check.c:87:8: note: expanded from macro 'log_client'
  logit(allow_severity, addr, proc, prog, "")
       ^
pmap_check.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
check_setunset(addr, proc, prog, port)
^
In file included from pmap_check.c:50:
./pmap_check.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
extern int check_setunset();
           ^
pmap_check.c:164:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
check_callit(addr, proc, prog, aproc)
^
int
pmap_check.c:171:21: warning: passing arguments to 'from_local' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    if (!(from_local(addr) || good_client(addr))) {
                    ^
pmap_check.c:171:31: warning: call to undeclared function 'hosts_ctl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (!(from_local(addr) || good_client(addr))) {
                              ^
pmap_check.c:69:24: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                       ^
pmap_check.c:171:31: warning: passing arguments to 'inet_ntoa' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pmap_check.c:69:58: note: expanded from macro 'good_client'
#define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
                                                         ^
pmap_check.c:172:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_bad_host(addr, proc, prog);
        ^
pmap_check.c:78:8: note: expanded from macro 'log_bad_host'
  logit(deny_severity, addr, proc, prog, ": request from unauthorized host")
       ^
pmap_check.c:179:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_no_forward(addr, proc, prog);
        ^
pmap_check.c:84:8: note: expanded from macro 'log_no_forward'
  logit(deny_severity, addr, proc, prog, ": request not forwarded")
       ^
pmap_check.c:183:2: warning: passing arguments to 'logit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        log_client(addr, proc, prog);
        ^
pmap_check.c:87:8: note: expanded from macro 'log_client'
  logit(allow_severity, addr, proc, prog, "")
       ^
pmap_check.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
check_callit(addr, proc, prog, aproc)
^
In file included from pmap_check.c:50:
./pmap_check.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
extern int check_callit();
           ^
pmap_check.c:189:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void toggle_verboselog(sig)
            ^
pmap_check.c:62:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static void toggle_verboselog();
            ^
--- from_local.o ---
from_local.c:157:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
from_local(addr)
^
int
from_local.c:166:6: warning: call to undeclared library function 'memcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        if (memcmp((char *) &(addr->sin_addr), (char *) &(addrs[i]),
            ^
from_local.c:166:6: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
from_local.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
from_local(addr)
^
--- pmap_check.o ---
pmap_check.c:230:9: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (fork() == 0) {
        ^
pmap_check.c:236:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        } else if (rpc = getrpcbynumber((int) prognum)) {
                   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pmap_check.c:236:17: note: place parentheses around the assignment to silence this warning
        } else if (rpc = getrpcbynumber((int) prognum)) {
                       ^
                   (                                  )
pmap_check.c:236:17: note: use '==' to turn this assignment into an equality comparison
        } else if (rpc = getrpcbynumber((int) prognum)) {
                       ^
                       ==
pmap_check.c:239:6: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            sprintf(progname = progbuf, "%lu", prognum);
            ^
pmap_check.c:239:6: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf'
--- portmap.o ---
portmap.c:237:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
perror(what)
^
<command line>:2:16: note: expanded from macro 'perror'
#define perror xperror
               ^
--- pmap_check.o ---
pmap_check.c:252:18: warning: passing arguments to 'inet_ntoa' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
               inet_ntoa(addr->sin_addr), procname, progname, text);
                        ^
pmap_check.c:198:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void logit(severity, addr, procnum, prognum, text)
            ^
pmap_check.c:61:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static void logit();
            ^
--- portmap.o ---
portmap.c:246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
find_service(prog, vers, prot)
^
portmap.c:292:16: warning: passing arguments to 'check_default' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                check_default(svc_getcaller(xprt), rqstp->rq_proc, (u_long) 0);
                             ^
portmap.c:293:28: warning: incompatible function pointer types passing 'int (void)' to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
                if (!svc_sendreply(xprt, xdr_void, (caddr_t)0) && debugging) {
                                         ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:272:54: note: passing argument to parameter here
extern bool_t   svc_sendreply   __P((SVCXPRT *, xdrproc_t, char *));
                                                         ^
portmap.c:302:8: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (!svc_getargs(xprt, xdr_pmap, &reg))
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:152:31: note: expanded from macro 'svc_getargs'
        (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
                                     ^
portmap.c:306:23: warning: passing arguments to 'check_setunset' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                        if (!check_setunset(svc_getcaller(xprt), 
                                           ^
portmap.c:344:30: warning: incompatible function pointer types passing 'int (XDR *, int *)' (aka 'int (struct __rpc_xdr *, int *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
                        if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
                                                  ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:272:54: note: passing argument to parameter here
extern bool_t   svc_sendreply   __P((SVCXPRT *, xdrproc_t, char *));
                                                         ^
portmap.c:356:8: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (!svc_getargs(xprt, xdr_pmap, &reg))
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:152:31: note: expanded from macro 'svc_getargs'
        (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
                                     ^
portmap.c:361:23: warning: passing arguments to 'check_setunset' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                        if (!check_setunset(svc_getcaller(xprt), 
                                           ^
portmap.c:374:31: warning: passing arguments to 'check_privileged_port' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                                if (!check_privileged_port(svc_getcaller(xprt), 
                                                          ^
portmap.c:390:30: warning: incompatible function pointer types passing 'int (XDR *, int *)' (aka 'int (struct __rpc_xdr *, int *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
                        if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
                                                  ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:272:54: note: passing argument to parameter here
extern bool_t   svc_sendreply   __P((SVCXPRT *, xdrproc_t, char *));
                                                         ^
portmap.c:402:8: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (!svc_getargs(xprt, xdr_pmap, &reg))
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:152:31: note: expanded from macro 'svc_getargs'
        (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
                                     ^
portmap.c:406:22: warning: passing arguments to 'check_default' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                        if (!check_default(svc_getcaller(xprt), 
                                          ^
portmap.c:417:30: warning: incompatible function pointer types passing 'int (XDR *, int *)' (aka 'int (struct __rpc_xdr *, int *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
                        if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&port)) &&
                                                  ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:272:54: note: passing argument to parameter here
extern bool_t   svc_sendreply   __P((SVCXPRT *, xdrproc_t, char *));
                                                         ^
portmap.c:429:8: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (!svc_getargs(xprt, xdr_void, NULL))
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:152:31: note: expanded from macro 'svc_getargs'
        (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
                                     ^
portmap.c:434:22: warning: passing arguments to 'check_default' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                        if (!check_default(svc_getcaller(xprt), 
                                          ^
portmap.c:440:30: warning: incompatible function pointer types passing 'int (XDR *, struct pmaplist **)' (aka 'int (struct __rpc_xdr *, struct pmaplist **)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
                        if ((!svc_sendreply(xprt, xdr_pmaplist,
                                                  ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:272:54: note: passing argument to parameter here
extern bool_t   svc_sendreply   __P((SVCXPRT *, xdrproc_t, char *));
                                                         ^
portmap.c:456:9: warning: passing arguments to 'callit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                callit(rqstp, xprt);
                      ^
portmap.c:461:16: warning: passing arguments to 'check_default' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                check_default(svc_getcaller(xprt), rqstp->rq_proc, (u_long) 0);
                             ^
portmap.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
reg_service(rqstp, xprt)
^
portmap.c:123:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
void reg_service();
     ^
portmap.c:484:40: warning: incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
        return (xdr_bytes(xdrs, &(epp->args), &(epp->arglen), ARGSIZE));
                                              ^~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/xdr.h:390:55: note: passing argument to parameter here
extern bool_t   xdr_bytes(XDR *, char **, unsigned int *, unsigned int);
                                                        ^
portmap.c:479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
xdr_encap_parms(xdrs, epp)
^
portmap.c:502:23: warning: incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
        if (xdr_u_long(xdrs, &(cap->rmt_prog)) &&
                             ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/xdr.h:374:47: note: passing argument to parameter here
extern bool_t   xdr_u_long(XDR *, unsigned int *);
                                                ^
portmap.c:503:23: warning: incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
            xdr_u_long(xdrs, &(cap->rmt_vers)) &&
                             ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/xdr.h:374:47: note: passing argument to parameter here
extern bool_t   xdr_u_long(XDR *, unsigned int *);
                                                ^
portmap.c:504:23: warning: incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
            xdr_u_long(xdrs, &(cap->rmt_proc))) {
                             ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/xdr.h:374:47: note: passing argument to parameter here
extern bool_t   xdr_u_long(XDR *, unsigned int *);
                                                ^
portmap.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
xdr_rmtcall_args(xdrs, cap)
^
portmap.c:515:23: warning: incompatible pointer types passing 'u_long *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
        if (xdr_u_long(xdrs, &(cap->rmt_port)))
                             ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/xdr.h:374:47: note: passing argument to parameter here
extern bool_t   xdr_u_long(XDR *, unsigned int *);
                                                ^
portmap.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
xdr_rmtcall_result(xdrs, cap)
^
portmap.c:525:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
xdr_opaque_parms(xdrs, cap)
^
portmap.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
xdr_len_opaque_parms(xdrs, cap)
^
portmap.c:588:7: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/svc.h:152:31: note: expanded from macro 'svc_getargs'
        (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
                                     ^
portmap.c:591:19: warning: passing arguments to 'check_callit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        if (!check_callit(svc_getcaller(xprt), 
                         ^
portmap.c:601:13: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        if ((pid = fork()) != 0) {
                   ^
portmap.c:608:2: warning: call to undeclared function 'get_myaddress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        get_myaddress(&me);
        ^
portmap.c:621:3: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                AUTH_DESTROY(client->cl_auth);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/rpc/auth.h:181:35: note: expanded from macro 'AUTH_DESTROY'
                ((*((auth)->ah_ops->ah_destroy))(auth))
                                                ^
portmap.c:624:8: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        (void)close(so);
              ^
portmap.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
callit(rqstp, xprt)
^
portmap.c:125:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static void callit();
            ^
portmap.c:631:15: warning: incompatible pointer types passing 'union wait *' to parameter of type 'int *' [-Wincompatible-pointer-types]
        while (wait3((union wait *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
                     ^~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/wait.h:254:20: note: passing argument to parameter here
pid_t   wait3(int *, int, struct rusage *);
                   ^
--- pmap_check.o ---
39 warnings generated.
--- daemon.o ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/pkg/include -c daemon.c
--- from_local.o ---
9 warnings generated.
--- pmap_dump ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -o pmap_dump pmap_dump.c 
--- daemon.o ---
daemon.c:48:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
daemon(nochdir, noclose)
^
int
daemon.c:53:14: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        if ((cpid = fork()) == -1)
                    ^
daemon.c:56:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                exit(0);
                ^
daemon.c:56:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
daemon.c:57:9: warning: call to undeclared function 'setsid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        (void) setsid();
               ^
daemon.c:59:10: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                (void) chdir("/");
                       ^
daemon.c:64:11: warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        (void) dup2(devnull, STDIN_FILENO);
                               ^
daemon.c:68:12: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                (void) close(devnull);
                                       ^
daemon.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
daemon(nochdir, noclose)
^
8 warnings generated.
--- pmap_set ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -o pmap_set pmap_set.c 
--- pmap_dump ---
pmap_dump.c:26:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main(argc, argv)
^
int
pmap_dump.c:34:5: warning: call to undeclared function 'get_myaddress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    get_myaddress(&addr);
    ^
pmap_dump.c:41:18: warning: passing arguments to 'protoname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
               protoname(list->pml_map.pm_prot),
                        ^
pmap_dump.c:39:9: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
               list->pml_map.pm_prog,
               ^~~~~~~~~~~~~~~~~~~~~
pmap_dump.c:40:9: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
               list->pml_map.pm_vers,
               ^~~~~~~~~~~~~~~~~~~~~
pmap_dump.c:42:9: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
               list->pml_map.pm_port,
               ^~~~~~~~~~~~~~~~~~~~~
pmap_dump.c:46:31: warning: call to undeclared function 'perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return (fclose(stdout) ? (perror(argv[0]), 1) : 0);
                              ^
pmap_dump.c:26:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main(argc, argv)
^
pmap_dump.c:49:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static char *protoname(proto)
             ^
pmap_dump.c:24:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static char *protoname();
             ^
--- portmap.o ---
44 warnings generated.
--- portmap ---
clang -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -o portmap portmap.o pmap_check.o from_local.o daemon.o /opt/pkg/lib/libwrap.a 
--- pmap_set ---
pmap_set.c:20:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main(argc, argv)
^
int
pmap_set.c:31:5: warning: call to undeclared function 'get_myaddress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    get_myaddress(&addr);
    ^
pmap_set.c:34:6: warning: call to undeclared function 'parse_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        if (parse_line(buf, &prog, &vers, &prot, &port) == 0) {
            ^
pmap_set.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main(argc, argv)
^
pmap_set.c:46:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
parse_line(buf, prog, vers, prot, port)
^
int
pmap_set.c:58:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (strcmp(proto_name, "tcp") == 0) {
        ^
pmap_set.c:58:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
pmap_set.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
parse_line(buf, prog, vers, prot, port)
^
--- pmap_dump ---
10 warnings generated.
--- portmap ---
ld: Undefined symbols:
  _get_myaddress, referenced from:
      _reg_service in portmap.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [portmap] Error code 1

bmake: stopped in /Users/pbulk/build/net/portmap/work/portmap_4
--- pmap_dump ---
ld: Undefined symbols:
  _get_myaddress, referenced from:
      _main in pmap_dump-ffe491.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [pmap_dump] Error code 1

bmake: stopped in /Users/pbulk/build/net/portmap/work/portmap_4
--- pmap_set ---
7 warnings generated.
ld: Undefined symbols:
  _get_myaddress, referenced from:
      _main in pmap_set-59395f.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [pmap_set] Error code 1

bmake: stopped in /Users/pbulk/build/net/portmap/work/portmap_4
3 errors

bmake: stopped in /Users/pbulk/build/net/portmap/work/portmap_4
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/net/portmap
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/net/portmap