+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/portmap-4nb3/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/portmap-4nb3/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for portmap-4nb3
--- portmap.o ---
--- pmap_check.o ---
--- from_local.o ---
--- pmap_dump ---
--- portmap.o ---
gcc -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/local/include -I/usr/include -c portmap.c
--- pmap_check.o ---
gcc -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/local/include -I/usr/include -c pmap_check.c
--- from_local.o ---
gcc -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/local/include -I/usr/include -c from_local.c
--- pmap_dump ---
gcc -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -o pmap_dump pmap_dump.c 
--- from_local.o ---
from_local.c:102:1: warning: return type defaults to 'int' [-Wimplicit-int]
  102 | find_local()
      | ^~~~~~~~~~
from_local.c: In function 'find_local':
from_local.c:122:21: error: 'SIOCGIFCONF' undeclared (first use in this function)
  122 |     if (ioctl(sock, SIOCGIFCONF, (char *) &ifc) < 0) {
      |                     ^~~~~~~~~~~
from_local.c:122:21: note: each undeclared identifier is reported only once for each function it appears in
from_local.c:134:29: error: 'SIOCGIFFLAGS' undeclared (first use in this function)
  134 |             if (ioctl(sock, SIOCGIFFLAGS, (char *) &ifreq) < 0) {
      |                             ^~~~~~~~~~~~
--- pmap_dump ---
pmap_dump.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int]
   26 | main(argc, argv)
      | ^~~~
--- from_local.o ---
from_local.c:137:33: error: 'SIOCGIFADDR' undeclared (first use in this function)
  137 |                 if (ioctl(sock, SIOCGIFADDR, (char *) &ifreq) < 0) {
      |                                 ^~~~~~~~~~~
from_local.c: At top level:
from_local.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int]
  160 | from_local(addr)
      | ^~~~~~~~~~
--- pmap_dump ---
pmap_dump.c: In function 'main':
pmap_dump.c:34:5: warning: implicit declaration of function 'get_myaddress' [-Wimplicit-function-declaration]
   34 |     get_myaddress(&addr);
      |     ^~~~~~~~~~~~~
--- portmap.o ---
portmap.c:127:18: error: 'pmaplist' redeclared as different kind of symbol
  127 | struct pmaplist *pmaplist;
      |                  ^~~~~~~~
In file included from portmap.c:84:
/usr/include/rpc/pmap_prot.h:110:25: note: previous declaration of 'pmaplist' with type 'pmaplist'
  110 | typedef struct pmaplist pmaplist;
      |                         ^~~~~~~~
portmap.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int]
  132 | main(argc, argv)
      | ^~~~
--- pmap_dump ---
pmap_dump.c:37:15: warning: implicit declaration of function 'getrpcbynumber'; did you mean 'getprotobynumber'? [-Wimplicit-function-declaration]
   37 |         rpc = getrpcbynumber((int) list->pml_map.pm_prog);
      |               ^~~~~~~~~~~~~~
      |               getprotobynumber
pmap_dump.c:37:13: warning: assignment to 'struct rpcent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   37 |         rpc = getrpcbynumber((int) list->pml_map.pm_prog);
      |             ^
--- portmap.o ---
portmap.c: In function 'main':
--- pmap_dump ---
pmap_dump.c:43:25: error: invalid use of undefined type 'struct rpcent'
   43 |                rpc ? rpc->r_name : "");
      |                         ^~
pmap_dump.c:46:31: warning: implicit declaration of function 'perror'; did you mean 'herror'? [-Wimplicit-function-declaration]
   46 |     return (fclose(stdout) ? (perror(argv[0]), 1) : 0);
      |                               ^~~~~~
      |                               herror
--- portmap.o ---
portmap.c:186:21: warning: implicit declaration of function 'svcudp_create'; did you mean 'svc_dg_create'? [-Wimplicit-function-declaration]
  186 |         if ((xprt = svcudp_create(sock)) == (SVCXPRT *)NULL) {
      |                     ^~~~~~~~~~~~~
      |                     svc_dg_create
portmap.c:186:19: warning: assignment to 'SVCXPRT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  186 |         if ((xprt = svcudp_create(sock)) == (SVCXPRT *)NULL) {
      |                   ^
portmap.c:207:21: warning: implicit declaration of function 'svctcp_create'; did you mean 'svc_tp_create'? [-Wimplicit-function-declaration]
  207 |         if ((xprt = svctcp_create(sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE))
      |                     ^~~~~~~~~~~~~
      |                     svc_tp_create
portmap.c:207:19: warning: assignment to 'SVCXPRT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  207 |         if ((xprt = svctcp_create(sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE))
      |                   ^
portmap.c:221:15: warning: implicit declaration of function 'svc_register'; did you mean 'xprt_register'? [-Wimplicit-function-declaration]
  221 |         (void)svc_register(xprt, PMAPPROG, PMAPVERS, reg_service, FALSE);
      |               ^~~~~~~~~~~~
      |               xprt_register
--- pmap_check.o ---
pmap_check.c: In function 'check_startup':
pmap_check.c:102:12: warning: implicit declaration of function 'signal' [-Wimplicit-function-declaration]
  102 |     (void) signal(SIGINT, toggle_verboselog);
      |            ^~~~~~
pmap_check.c: At top level:
pmap_check.c:107:1: warning: return type defaults to 'int' [-Wimplicit-int]
  107 | check_default(addr, proc, prog)
      | ^~~~~~~~~~~~~
pmap_check.c: In function 'check_default':
pmap_check.c:69:24: warning: implicit declaration of function 'hosts_ctl' [-Wimplicit-function-declaration]
   69 | #define good_client(a) hosts_ctl("portmap", "", inet_ntoa(a->sin_addr), "")
      |                        ^~~~~~~~~
pmap_check.c:113:31: note: in expansion of macro 'good_client'
  113 |     if (!(from_local(addr) || good_client(addr))) {
      |                               ^~~~~~~~~~~
--- portmap.o ---
portmap.c:226:15: warning: implicit declaration of function 'signal' [-Wimplicit-function-declaration]
  226 |         (void)signal(SIGCHLD, SIG_IGN);
      |               ^~~~~~
portmap.c: In function 'xperror':
portmap.c:239:23: error: argument 'what' doesn't match prototype
  239 |         __const char *what;
      |                       ^~~~
<command-line>: error: prototype declaration
In file included from /usr/include/rpc/rpc.h:68,
                 from portmap.c:83:
portmap.c: In function 'reg_service':
portmap.c:303:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  303 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:303:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
--- pmap_check.o ---
pmap_check.c: At top level:
pmap_check.c:125:1: warning: return type defaults to 'int' [-Wimplicit-int]
  125 | check_privileged_port(addr, proc, prog, port)
      | ^~~~~~~~~~~~~~~~~~~~~
pmap_check.c:142:1: warning: return type defaults to 'int' [-Wimplicit-int]
  142 | check_setunset(addr, proc, prog, port)
      | ^~~~~~~~~~~~~~
pmap_check.c:164:1: warning: return type defaults to 'int' [-Wimplicit-int]
  164 | check_callit(addr, proc, prog, aproc)
      | ^~~~~~~~~~~~
--- portmap.o ---
portmap.c:357:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  357 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:357:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
portmap.c:403:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  403 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:403:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
portmap.c: In function 'xdr_encap_parms':
portmap.c:485:47: warning: passing argument 3 of 'xdr_bytes' from incompatible pointer type [-Wincompatible-pointer-types]
  485 |         return (xdr_bytes(xdrs, &(epp->args), &(epp->arglen), ARGSIZE));
      |                                               ^~~~~~~~~~~~~~
      |                                               |
      |                                               u_long * {aka long unsigned int *}
In file included from /usr/include/rpc/rpc.h:58:
/usr/include/rpc/xdr.h:423:43: note: expected 'uint_t *' {aka 'unsigned int *'} but argument is of type 'u_long *' {aka 'long unsigned int *'}
  423 | extern bool_t   xdr_bytes(XDR *, char **, uint_t *, const uint_t);
      |                                           ^~~~~~~~
portmap.c: At top level:
portmap.c:488:8: error: redefinition of 'struct rmtcallargs'
  488 | struct rmtcallargs {
      |        ^~~~~~~~~~~
/usr/include/rpc/pmap_prot.h:130:8: note: originally defined here
  130 | struct rmtcallargs {
      |        ^~~~~~~~~~~
portmap.c: In function 'callit':
portmap.c:589:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  589 |         if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
      |                                                  ^
      |                                                  |
      |                                                  struct rmtcallargs *
portmap.c:589:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
--- from_local.o ---
*** [from_local.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/portmap/work/portmap_4
--- pmap_dump ---
*** [pmap_dump] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/portmap/work/portmap_4
--- portmap.o ---
portmap.c:609:9: warning: implicit declaration of function 'get_myaddress' [-Wimplicit-function-declaration]
  609 |         get_myaddress(&me);
      |         ^~~~~~~~~~~~~
portmap.c:611:18: warning: implicit declaration of function 'clntudp_create'; did you mean 'clnt_dg_create'? [-Wimplicit-function-declaration]
  611 |         client = clntudp_create(&me, a.rmt_prog, a.rmt_vers, timeout, &so);
      |                  ^~~~~~~~~~~~~~
      |                  clnt_dg_create
portmap.c:611:16: warning: assignment to 'CLIENT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  611 |         client = clntudp_create(&me, a.rmt_prog, a.rmt_vers, timeout, &so);
      |                ^
In file included from /usr/include/rpc/rpc.h:60:
portmap.c:618:69: warning: passing argument 4 of 'client->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  618 |                 if (clnt_call(client, a.rmt_proc, xdr_opaque_parms, &a,
      |                                                                     ^~
      |                                                                     |
      |                                                                     struct rmtcallargs *
portmap.c:618:69: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
portmap.c:619:43: warning: passing argument 6 of 'client->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  619 |                     xdr_len_opaque_parms, &a, timeout) == RPC_SUCCESS) {
      |                                           ^~
      |                                           |
      |                                           struct rmtcallargs *
portmap.c:619:43: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
portmap.c: In function 'reap':
portmap.c:632:22: warning: passing argument 1 of 'wait3' from incompatible pointer type [-Wincompatible-pointer-types]
  632 |         while (wait3((union wait *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
      |                      ^
      |                      |
      |                      union wait *
In file included from portmap.c:92:
/usr/include/sys/wait.h:105:20: note: expected 'int *' but argument is of type 'union wait *'
  105 | extern pid_t wait3(int *, int, struct rusage *);
      |                    ^~~~~
*** [portmap.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/net/portmap/work/portmap_4
bmake: 3 errors

bmake: stopped making "all" in /home/pbulk/build/net/portmap/work/portmap_4
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/net/portmap
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/net/portmap