+ 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/jbig2enc-0.29/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/jbig2enc-0.29/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for jbig2enc-0.29
Making all in src
g++ -DPACKAGE_NAME=\"jbig2enc\" -DPACKAGE_TARNAME=\"jbig2enc-0.28\" -DPACKAGE_VERSION=\"0.28\" -DPACKAGE_STRING=\"jbig2enc\ 0.28\" -DPACKAGE_BUGREPORT=\"agl@imperialviolet.org\" -DPACKAGE_URL=\"https://github.com/agl/jbig2enc\" -DPACKAGE=\"jbig2enc-0.28\" -DVERSION=\"0.28\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBLEPTONICA=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBGIF=1 -DHAVE_LIBWEBP=1 -DHAVE_LIBZ=1 -DHAVE_LIBM=1 -I.    -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -c -o jbig2.o jbig2.cc
In file included from /home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/alltypes.h:37,
                 from /home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/allheaders.h:35,
                 from jbig2.cc:31:
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/environ.h:70:9: error: 'atomic_int' does not name a type
   70 | typedef atomic_int l_atomic;
      |         ^~~~~~~~~~
In file included from jbig2.cc:33:
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:187:5: error: 'l_atomic' does not name a type
  187 |     l_atomic             refcount;  /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:236:5: error: 'l_atomic' does not name a type
  236 |     l_atomic            refcount;   /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:261:5: error: 'l_atomic' does not name a type
  261 |     l_atomic           refcount;    /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:269:5: error: 'l_atomic' does not name a type
  269 |     l_atomic           refcount;    /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:292:5: error: 'l_atomic' does not name a type
  292 |     l_atomic           refcount;    /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:351:5: error: 'l_atomic' does not name a type
  351 |     l_atomic             refcount;  /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:364:5: error: 'l_atomic' does not name a type
  364 |     l_atomic            refcount;   /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
/home/pbulk/build/graphics/jbig2enc/work/.buildlink/include/leptonica/pix_internal.h:380:5: error: 'l_atomic' does not name a type
  380 |     l_atomic             refcount;  /*!< reference count (1 if no clones)  */
      |     ^~~~~~~~
jbig2.cc: In function 'void pixInfo(PIX*, const char*)':
jbig2.cc:77:62: error: 'PIX' {aka 'struct Pix'} has no member named 'refcount'
   77 |           pix->w, pix->h, pix->d, pix->xres, pix->yres, pix->refcount);
      |                                                              ^~~~~~~~
*** [jbig2.o] Error code 1

bmake[1]: stopped in /home/pbulk/build/graphics/jbig2enc/work/jbig2enc-0.29/src
1 error

bmake[1]: stopped in /home/pbulk/build/graphics/jbig2enc/work/jbig2enc-0.29/src
*** [all-recursive] Error code 1

bmake: stopped in /home/pbulk/build/graphics/jbig2enc/work/jbig2enc-0.29
1 error

bmake: stopped in /home/pbulk/build/graphics/jbig2enc/work/jbig2enc-0.29
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/jbig2enc
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/jbig2enc