+ 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
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for portmap-4nb3
gcc -Dconst= -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT   -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD  -O   -I/opt/local/include -I/usr/include -c portmap.c
portmap.c:126:18: error: 'pmaplist' redeclared as different kind of symbol
  126 | 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:131:1: warning: return type defaults to 'int' [-Wimplicit-int]
  131 | main(argc, argv)
      | ^~~~
portmap.c: In function 'main':
portmap.c:185:21: warning: implicit declaration of function 'svcudp_create'; did you mean 'svc_dg_create'? [-Wimplicit-function-declaration]
  185 |         if ((xprt = svcudp_create(sock)) == (SVCXPRT *)NULL) {
      |                     ^~~~~~~~~~~~~
      |                     svc_dg_create
portmap.c:185:19: warning: assignment to 'SVCXPRT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  185 |         if ((xprt = svcudp_create(sock)) == (SVCXPRT *)NULL) {
      |                   ^
portmap.c:206:21: warning: implicit declaration of function 'svctcp_create'; did you mean 'svc_tp_create'? [-Wimplicit-function-declaration]
  206 |         if ((xprt = svctcp_create(sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE))
      |                     ^~~~~~~~~~~~~
      |                     svc_tp_create
portmap.c:206:19: warning: assignment to 'SVCXPRT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  206 |         if ((xprt = svctcp_create(sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE))
      |                   ^
portmap.c:220:15: warning: implicit declaration of function 'svc_register'; did you mean 'xprt_register'? [-Wimplicit-function-declaration]
  220 |         (void)svc_register(xprt, PMAPPROG, PMAPVERS, reg_service, FALSE);
      |               ^~~~~~~~~~~~
      |               xprt_register
portmap.c:225:15: warning: implicit declaration of function 'signal' [-Wimplicit-function-declaration]
  225 |         (void)signal(SIGCHLD, SIG_IGN);
      |               ^~~~~~
portmap.c: In function 'xperror':
portmap.c:238:23: error: argument 'what' doesn't match prototype
  238 |         __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:302:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  302 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:302:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
portmap.c:356:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  356 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:356:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
portmap.c:402:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  402 |                 if (!svc_getargs(xprt, xdr_pmap, &reg))
      |                                                  ^
      |                                                  |
      |                                                  struct pmap *
portmap.c:402:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct pmap *'
portmap.c: In function 'xdr_encap_parms':
portmap.c:484:47: warning: passing argument 3 of 'xdr_bytes' from incompatible pointer type [-Wincompatible-pointer-types]
  484 |         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:487:8: error: redefinition of 'struct rmtcallargs'
  487 | struct rmtcallargs {
      |        ^~~~~~~~~~~
/usr/include/rpc/pmap_prot.h:130:8: note: originally defined here
  130 | struct rmtcallargs {
      |        ^~~~~~~~~~~
portmap.c: In function 'callit':
portmap.c:588:50: warning: passing argument 3 of 'xprt->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types]
  588 |         if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
      |                                                  ^
      |                                                  |
      |                                                  struct rmtcallargs *
portmap.c:588:50: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
portmap.c:601:20: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
  601 |         if ((pid = fork()) != 0) {
      |                    ^~~~
portmap.c:608:9: warning: implicit declaration of function 'get_myaddress' [-Wimplicit-function-declaration]
  608 |         get_myaddress(&me);
      |         ^~~~~~~~~~~~~
portmap.c:610:18: warning: implicit declaration of function 'clntudp_create'; did you mean 'clnt_dg_create'? [-Wimplicit-function-declaration]
  610 |         client = clntudp_create(&me, a.rmt_prog, a.rmt_vers, timeout, &so);
      |                  ^~~~~~~~~~~~~~
      |                  clnt_dg_create
portmap.c:610:16: warning: assignment to 'CLIENT *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  610 |         client = clntudp_create(&me, a.rmt_prog, a.rmt_vers, timeout, &so);
      |                ^
In file included from /usr/include/rpc/rpc.h:60:
portmap.c:617:69: warning: passing argument 4 of 'client->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  617 |                 if (clnt_call(client, a.rmt_proc, xdr_opaque_parms, &a,
      |                                                                     ^~
      |                                                                     |
      |                                                                     struct rmtcallargs *
portmap.c:617:69: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
portmap.c:618:43: warning: passing argument 6 of 'client->cl_ops->cl_call' from incompatible pointer type [-Wincompatible-pointer-types]
  618 |                     xdr_len_opaque_parms, &a, timeout) == RPC_SUCCESS) {
      |                                           ^~
      |                                           |
      |                                           struct rmtcallargs *
portmap.c:618:43: note: expected 'caddr_t' {aka 'char *'} but argument is of type 'struct rmtcallargs *'
portmap.c:624:15: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  624 |         (void)close(so);
      |               ^~~~~
      |               pclose
portmap.c: In function 'reap':
portmap.c:631:22: warning: passing argument 1 of 'wait3' from incompatible pointer type [-Wincompatible-pointer-types]
  631 |         while (wait3((union wait *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
      |                      ^
      |                      |
      |                      union wait *
In file included from portmap.c:91:
/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 in /home/pbulk/build/net/portmap/work/portmap_4
1 error

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

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/net/portmap