+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xjdic-2.4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xjdic-2.4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xjdic-2.4
--- xjdcomm_cl.o ---
--- xjdfrontend_cl.o ---
--- xjdcomm_cl.o ---
gcc -D__STRICT_BSD__ -DPREFIX=\"/usr/pkg\" -c -DXJDFRONTEND -DXJDCLSERV xjdcomm.c -o xjdcomm_cl.o
--- xjdfrontend_cl.o ---
gcc -D__STRICT_BSD__ -DPREFIX=\"/usr/pkg\" -c -DXJDFRONTEND -DXJDCLSERV xjdfrontend.c -o xjdfrontend_cl.o
--- xjdcomm_cl.o ---
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from xjdcomm.c:21:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
--- xjdfrontend_cl.o ---
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from xjdfrontend.c:21:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
--- xjdcomm_cl.o ---
xjdcomm.c: In function 'xjdicrc':
xjdcomm.c:273:5: warning: implicit declaration of function 'EMtoggle' [-Wimplicit-function-declaration]
     EMtoggle ();
     ^~~~~~~~
--- xjdfrontend_cl.o ---
xjdfrontend.c: In function 'ioctlraw':
xjdfrontend.c:264:14: error: 'TIOCGETP' undeclared (first use in this function); did you mean 'TIOCGETD'?
     ioctl(0, TIOCGETP, &orig); ioctl(0, TIOCGETP, &new);
              ^~~~~~~~
              TIOCGETD
xjdfrontend.c:264:14: note: each undeclared identifier is reported only once for each function it appears in
xjdfrontend.c:265:8: error: invalid use of undefined type 'struct sgttyb'
     new.sg_flags |= CBREAK; new.sg_flags &= ~ECHO;
        ^
xjdfrontend.c:265:21: error: 'CBREAK' undeclared (first use in this function); did you mean 'CREAD'?
     new.sg_flags |= CBREAK; new.sg_flags &= ~ECHO;
                     ^~~~~~
                     CREAD
xjdfrontend.c:265:32: error: invalid use of undefined type 'struct sgttyb'
     new.sg_flags |= CBREAK; new.sg_flags &= ~ECHO;
                                ^
xjdfrontend.c:266:14: error: 'TIOCSETP' undeclared (first use in this function); did you mean 'TIOCSETD'?
     ioctl(0, TIOCSETP, &new);
              ^~~~~~~~
              TIOCSETD
xjdfrontend.c: In function 'ioctlorig':
xjdfrontend.c:281:13: error: 'TIOCSETP' undeclared (first use in this function); did you mean 'TIOCSETD'?
    ioctl(0, TIOCSETP, &orig);
             ^~~~~~~~
             TIOCSETD
xjdfrontend.c: In function 'locale_GetKBStr':
xjdfrontend.c:2251:15: warning: implicit declaration of function 'iswprint' [-Wimplicit-function-declaration]
    } else if (iswprint(wbuf[length])) {
               ^~~~~~~~
xjdfrontend.c:2284:31: warning: passing argument 3 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types]
    if (iconv(descr, &inbuf_p, &inbytesleft, &outbuf_p, &outbytesleft) == -1)
                               ^~~~~~~~~~~~
In file included from xjdfrontend.c:34:
/usr/include/iconv.h:43:27: note: expected 'size_t * restrict' {aka 'long unsigned int * restrict'} but argument is of type 'int *'
        size_t *__restrict __inbytesleft,
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
xjdfrontend.c:2284:56: warning: passing argument 5 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types]
    if (iconv(descr, &inbuf_p, &inbytesleft, &outbuf_p, &outbytesleft) == -1)
                                                        ^~~~~~~~~~~~~
In file included from xjdfrontend.c:34:
/usr/include/iconv.h:45:27: note: expected 'size_t * restrict' {aka 'long unsigned int * restrict'} but argument is of type 'int *'
        size_t *__restrict __outbytesleft);
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
xjdfrontend.c: In function 'convert_to_euc':
xjdfrontend.c:2327:20: warning: passing argument 3 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types]
  iconv(descr, &in, &inbytesleft, &out, &outlen);
                    ^~~~~~~~~~~~
In file included from xjdfrontend.c:34:
/usr/include/iconv.h:43:27: note: expected 'size_t * restrict' {aka 'long unsigned int * restrict'} but argument is of type 'int *'
        size_t *__restrict __inbytesleft,
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
xjdfrontend.c:2327:40: warning: passing argument 5 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types]
  iconv(descr, &in, &inbytesleft, &out, &outlen);
                                        ^~~~~~~
In file included from xjdfrontend.c:34:
/usr/include/iconv.h:45:27: note: expected 'size_t * restrict' {aka 'long unsigned int * restrict'} but argument is of type 'int *'
        size_t *__restrict __outbytesleft);
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
xjdfrontend.c: At top level:
xjdfrontend.c:2921:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(int argc, char **argv)
 ^~~~
xjdfrontend.c: In function 'main':
xjdfrontend.c:2946:29: warning: implicit declaration of function 'getcwd'; did you mean 'getwc'? [-Wimplicit-function-declaration]
   dicenv = (unsigned char *)getcwd(ENVname,sizeof(ENVname));
                             ^~~~~~
                             getwc
xjdfrontend.c:2946:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   dicenv = (unsigned char *)getcwd(ENVname,sizeof(ENVname));
            ^
--- xjdcomm_sv.o ---
--- xjdfrontend_cl.o ---
xjdfrontend.c:3230:11: warning: implicit declaration of function 'getpid'; did you mean 'getwc'? [-Wimplicit-function-declaration]
     pid = getpid();
           ^~~~~~
           getwc
xjdfrontend.c:3562:6: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
      sleep(2);
      ^~~~~
--- xjdcomm_sv.o ---
gcc -D__STRICT_BSD__ -DPREFIX=\"/usr/pkg\" -c -DXJDDIC -DXJDCLSERV -DMMAP xjdcomm.c -o xjdcomm_sv.o
--- xjdfrontend_cl.o ---
xjdfrontend.c: At top level:
xjdfrontend.c:67:25: error: storage size of 'orig' isn't known
 static struct sgttyb    orig,new;
                         ^~~~
xjdfrontend.c:67:30: error: storage size of 'new' isn't known
 static struct sgttyb    orig,new;
                              ^~~
--- xjdcomm_sv.o ---
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from xjdcomm.c:21:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
--- xjdfrontend_cl.o ---
*** [xjdfrontend_cl.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/misc/xjdic/work
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/misc/xjdic/work
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/misc/xjdic
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/misc/xjdic