+ 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/sj3-client-2.0.1.23p1nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/sj3-client-2.0.1.23p1nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for sj3-client-2.0.1.23p1nb1
/opt/pkg/bin/bmake  all-recursive
Making all in include
Making all in sj3common
Making all in sj3compat
Making all in sj3core
Making all in sj3lua
Making all in sj3lib
Making all in doc
Making all in man
Making all in doc
Making all in lib
Making all in sj3compat
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-asprintf.lo -MD -MP -MF ".deps/bsd-asprintf.Tpo" -c -o bsd-asprintf.lo bsd-asprintf.c;  then mv -f ".deps/bsd-asprintf.Tpo" ".deps/bsd-asprintf.Plo"; else rm -f ".deps/bsd-asprintf.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-asprintf.lo -MD -MP -MF .deps/bsd-asprintf.Tpo -c bsd-asprintf.c  -fPIC -DPIC -o .libs/bsd-asprintf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-asprintf.lo -MD -MP -MF .deps/bsd-asprintf.Tpo -c bsd-asprintf.c -o bsd-asprintf.o >/dev/null 2>&1
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-getpeereid.lo -MD -MP -MF ".deps/bsd-getpeereid.Tpo" -c -o bsd-getpeereid.lo bsd-getpeereid.c;  then mv -f ".deps/bsd-getpeereid.Tpo" ".deps/bsd-getpeereid.Plo"; else rm -f ".deps/bsd-getpeereid.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-getpeereid.lo -MD -MP -MF .deps/bsd-getpeereid.Tpo -c bsd-getpeereid.c  -fPIC -DPIC -o .libs/bsd-getpeereid.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-getpeereid.lo -MD -MP -MF .deps/bsd-getpeereid.Tpo -c bsd-getpeereid.c -o bsd-getpeereid.o >/dev/null 2>&1
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-misc.lo -MD -MP -MF ".deps/bsd-misc.Tpo" -c -o bsd-misc.lo bsd-misc.c;  then mv -f ".deps/bsd-misc.Tpo" ".deps/bsd-misc.Plo"; else rm -f ".deps/bsd-misc.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-misc.lo -MD -MP -MF .deps/bsd-misc.Tpo -c bsd-misc.c  -fPIC -DPIC -o .libs/bsd-misc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-misc.lo -MD -MP -MF .deps/bsd-misc.Tpo -c bsd-misc.c -o bsd-misc.o >/dev/null 2>&1
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-snprintf.lo -MD -MP -MF ".deps/bsd-snprintf.Tpo" -c -o bsd-snprintf.lo bsd-snprintf.c;  then mv -f ".deps/bsd-snprintf.Tpo" ".deps/bsd-snprintf.Plo"; else rm -f ".deps/bsd-snprintf.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-snprintf.lo -MD -MP -MF .deps/bsd-snprintf.Tpo -c bsd-snprintf.c  -fPIC -DPIC -o .libs/bsd-snprintf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bsd-snprintf.lo -MD -MP -MF .deps/bsd-snprintf.Tpo -c bsd-snprintf.c -o bsd-snprintf.o >/dev/null 2>&1
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT daemon.lo -MD -MP -MF ".deps/daemon.Tpo" -c -o daemon.lo daemon.c;  then mv -f ".deps/daemon.Tpo" ".deps/daemon.Plo"; else rm -f ".deps/daemon.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT daemon.lo -MD -MP -MF .deps/daemon.Tpo -c daemon.c  -fPIC -DPIC -o .libs/daemon.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT daemon.lo -MD -MP -MF .deps/daemon.Tpo -c daemon.c -o daemon.o >/dev/null 2>&1
if /usr/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../../include/sj3compat     -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT fake-rfc2553.lo -MD -MP -MF ".deps/fake-rfc2553.Tpo" -c -o fake-rfc2553.lo fake-rfc2553.c;  then mv -f ".deps/fake-rfc2553.Tpo" ".deps/fake-rfc2553.Plo"; else rm -f ".deps/fake-rfc2553.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/sj3compat -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT fake-rfc2553.lo -MD -MP -MF .deps/fake-rfc2553.Tpo -c fake-rfc2553.c  -fPIC -DPIC -o .libs/fake-rfc2553.o
fake-rfc2553.c: In function 'getnameinfo':
fake-rfc2553.c:57:33: error: 'EAI_MEMORY' undeclared (first use in this function); did you mean 'HAVE_MEMORY_H'?
   57 |                         return (EAI_MEMORY);
      |                                 ^~~~~~~~~~
      |                                 HAVE_MEMORY_H
fake-rfc2553.c:57:33: note: each undeclared identifier is reported only once for each function it appears in
fake-rfc2553.c:61:29: error: 'NI_NUMERICHOST' undeclared (first use in this function)
   61 |                 if (flags & NI_NUMERICHOST) {
      |                             ^~~~~~~~~~~~~~
fake-rfc2553.c:68:30: warning: implicit declaration of function 'gethostbyaddr' [-Wimplicit-function-declaration]
   68 |                         hp = gethostbyaddr((char *)&sin->sin_addr,
      |                              ^~~~~~~~~~~~~
fake-rfc2553.c:68:28: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   68 |                         hp = gethostbyaddr((char *)&sin->sin_addr,
      |                            ^
fake-rfc2553.c:71:41: error: 'EAI_NODATA' undeclared (first use in this function)
   71 |                                 return (EAI_NODATA);
      |                                         ^~~~~~~~~~
fake-rfc2553.c:73:45: error: invalid use of undefined type 'struct hostent'
   73 |                         if (strlcpy(host, hp->h_name, hostlen) >= hostlen)
      |                                             ^~
fake-rfc2553.c: In function 'gai_strerror':
fake-rfc2553.c:92:14: error: 'EAI_NODATA' undeclared (first use in this function)
   92 |         case EAI_NODATA:
      |              ^~~~~~~~~~
fake-rfc2553.c:94:14: error: 'EAI_MEMORY' undeclared (first use in this function); did you mean 'HAVE_MEMORY_H'?
   94 |         case EAI_MEMORY:
      |              ^~~~~~~~~~
      |              HAVE_MEMORY_H
fake-rfc2553.c:96:14: error: 'EAI_NONAME' undeclared (first use in this function)
   96 |         case EAI_NONAME:
      |              ^~~~~~~~~~
fake-rfc2553.c: At top level:
fake-rfc2553.c:106:21: warning: 'struct addrinfo' declared inside parameter list will not be visible outside of this definition or declaration
  106 | freeaddrinfo(struct addrinfo *ai)
      |                     ^~~~~~~~
fake-rfc2553.c: In function 'freeaddrinfo':
fake-rfc2553.c:111:26: error: invalid use of undefined type 'struct addrinfo'
  111 |                 next = ai->ai_next;
      |                          ^~
fake-rfc2553.c: In function 'malloc_ai':
fake-rfc2553.c:124:27: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
  124 |         ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
      |                           ^
fake-rfc2553.c:128:32: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
  128 |         memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in));
      |                                ^
fake-rfc2553.c:130:11: error: invalid use of undefined type 'struct addrinfo'
  130 |         ai->ai_addr = (struct sockaddr *)(ai + 1);
      |           ^~
fake-rfc2553.c:130:46: error: invalid use of undefined type 'struct addrinfo'
  130 |         ai->ai_addr = (struct sockaddr *)(ai + 1);
      |                                              ^
fake-rfc2553.c:132:11: error: invalid use of undefined type 'struct addrinfo'
  132 |         ai->ai_addrlen = sizeof(struct sockaddr_in);
      |           ^~
fake-rfc2553.c:133:11: error: invalid use of undefined type 'struct addrinfo'
  133 |         ai->ai_addr->sa_family = ai->ai_family = AF_INET;
      |           ^~
fake-rfc2553.c:133:36: error: invalid use of undefined type 'struct addrinfo'
  133 |         ai->ai_addr->sa_family = ai->ai_family = AF_INET;
      |                                    ^~
fake-rfc2553.c:135:36: error: invalid use of undefined type 'struct addrinfo'
  135 |         ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
      |                                    ^~
fake-rfc2553.c:136:36: error: invalid use of undefined type 'struct addrinfo'
  136 |         ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
      |                                    ^~
fake-rfc2553.c:139:18: error: invalid use of undefined type 'const struct addrinfo'
  139 |         if (hints->ai_socktype)
      |                  ^~
fake-rfc2553.c:140:19: error: invalid use of undefined type 'struct addrinfo'
  140 |                 ai->ai_socktype = hints->ai_socktype;
      |                   ^~
fake-rfc2553.c:140:40: error: invalid use of undefined type 'const struct addrinfo'
  140 |                 ai->ai_socktype = hints->ai_socktype;
      |                                        ^~
fake-rfc2553.c:142:19: error: invalid use of undefined type 'struct addrinfo'
  142 |                 ai->ai_socktype = SOCK_STREAM;
      |                   ^~
fake-rfc2553.c:144:18: error: invalid use of undefined type 'const struct addrinfo'
  144 |         if (hints->ai_protocol)
      |                  ^~
fake-rfc2553.c:145:19: error: invalid use of undefined type 'struct addrinfo'
  145 |                 ai->ai_protocol = hints->ai_protocol;
      |                   ^~
fake-rfc2553.c:145:40: error: invalid use of undefined type 'const struct addrinfo'
  145 |                 ai->ai_protocol = hints->ai_protocol;
      |                                        ^~
fake-rfc2553.c: In function 'getaddrinfo':
fake-rfc2553.c:168:32: warning: implicit declaration of function 'getservbyname'; did you mean 'getsockname'? [-Wimplicit-function-declaration]
  168 |                 else if ((sp = getservbyname(servname, NULL)) != NULL)
      |                                ^~~~~~~~~~~~~
      |                                getsockname
fake-rfc2553.c:168:30: warning: assignment to 'struct servent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  168 |                 else if ((sp = getservbyname(servname, NULL)) != NULL)
      |                              ^
fake-rfc2553.c:169:34: error: invalid use of undefined type 'struct servent'
  169 |                         port = sp->s_port;
      |                                  ^~
fake-rfc2553.c:174:27: error: invalid use of undefined type 'const struct addrinfo'
  174 |         if (hints && hints->ai_flags & AI_PASSIVE) {
      |                           ^~
fake-rfc2553.c:174:40: error: 'AI_PASSIVE' undeclared (first use in this function)
  174 |         if (hints && hints->ai_flags & AI_PASSIVE) {
      |                                        ^~~~~~~~~~
fake-rfc2553.c:180:33: error: 'EAI_MEMORY' undeclared (first use in this function); did you mean 'HAVE_MEMORY_H'?
  180 |                         return (EAI_MEMORY);
      |                                 ^~~~~~~~~~
      |                                 HAVE_MEMORY_H
fake-rfc2553.c:199:27: error: invalid use of undefined type 'const struct addrinfo'
  199 |         if (hints && hints->ai_flags & AI_NUMERICHOST)
      |                           ^~
fake-rfc2553.c:199:40: error: 'AI_NUMERICHOST' undeclared (first use in this function)
  199 |         if (hints && hints->ai_flags & AI_NUMERICHOST)
      |                                        ^~~~~~~~~~~~~~
fake-rfc2553.c:200:25: error: 'EAI_NONAME' undeclared (first use in this function)
  200 |                 return (EAI_NONAME);
      |                         ^~~~~~~~~~
fake-rfc2553.c:202:14: warning: implicit declaration of function 'gethostbyname'; did you mean 'getsockname'? [-Wimplicit-function-declaration]
  202 |         hp = gethostbyname(hostname);
      |              ^~~~~~~~~~~~~
      |              getsockname
fake-rfc2553.c:202:12: warning: assignment to 'struct hostent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  202 |         hp = gethostbyname(hostname);
      |            ^
fake-rfc2553.c:203:21: error: invalid use of undefined type 'struct hostent'
  203 |         if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
      |                     ^~
fake-rfc2553.c:203:35: error: invalid use of undefined type 'struct hostent'
  203 |         if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
      |                                   ^~
fake-rfc2553.c:203:52: error: invalid use of undefined type 'struct hostent'
  203 |         if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
      |                                                    ^~
fake-rfc2553.c:207:31: error: invalid use of undefined type 'struct hostent'
  207 |                 for (i = 0; hp->h_addr_list[i]; i++) {
      |                               ^~
fake-rfc2553.c:208:66: error: invalid use of undefined type 'struct hostent'
  208 |                         struct in_addr *in = (struct in_addr *)hp->h_addr_list[i];
      |                                                                  ^~
fake-rfc2553.c:213:54: warning: passing argument 1 of 'freeaddrinfo' from incompatible pointer type [-Wincompatible-pointer-types]
  213 |                                         freeaddrinfo(*res);
      |                                                      ^~~~
      |                                                      |
      |                                                      struct addrinfo *
fake-rfc2553.c:106:31: note: expected 'struct addrinfo *' but argument is of type 'struct addrinfo *'
  106 | freeaddrinfo(struct addrinfo *ai)
      |              ~~~~~~~~~~~~~~~~~^~
fake-rfc2553.c:217:37: error: invalid use of undefined type 'struct addrinfo'
  217 |                                 prev->ai_next = cur;
      |                                     ^~
fake-rfc2553.c:226:17: error: 'EAI_NODATA' undeclared (first use in this function)
  226 |         return (EAI_NODATA);
      |                 ^~~~~~~~~~
*** [fake-rfc2553.lo] Error code 1

bmake[3]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1/lib/sj3compat
1 error

bmake[3]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1/lib/sj3compat
*** [all-recursive] Error code 1

bmake[2]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1/lib
1 error

bmake[2]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1/lib
*** [all-recursive] Error code 1

bmake[1]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1
1 error

bmake[1]: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1
1 error

bmake: stopped in /home/pbulk/build/inputmethod/sj3-client/work/sj3-2.0.1.23p1
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/inputmethod/sj3-client
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/inputmethod/sj3-client