+ 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/aranym-1.1.0nb7/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/aranym-1.1.0nb7/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for aranym-1.1.0nb7
  GEN      ./atari/nfosmesa/glfuncs-bynum.h
  GEN      ./atari/nfosmesa/ldg/tiny_gl.h
  GEN      ./atari/nfosmesa/osmesa_load.c
  GEN      ./atari/nfosmesa/tinygl_load.c
  GEN      ./atari/nfosmesa/link-tinygl.h
  GEN      ./atari/nfosmesa/slb/tiny_gl.h
  GEN      ./atari/nfosmesa/slb/osmesa.h
  GEN      ./atari/nfosmesa/tinygl_loadslb.c
  GEN      ./atari/nfosmesa/osmesa_loadslb.c
echo '/* generated from ChangeLog */' > version_date.h
sed -n '/^20[0-9][0-9]\/[0-9]*\/[0-9]/p' < ./ChangeLog | sed 's/^\(20[0-9][0-9]\/[0-9]*\/[0-9]*\).*/#define VERSION_DATE "\1"/;q' >> version_date.h
  GEN      ./atari/nfosmesa/glfuncs.h
  GEN      ./atari/nfosmesa/ldg/osmesa.h
  GEN      ./src/natfeat/nfosmesa/call-gl.c
  GEN      ./src/natfeat/nfosmesa/dispatch-gl.c
  GEN      ./src/natfeat/nfosmesa/paramcount-gl.c
/opt/pkg/bin/bmake  all-recursive
Making all in src
Making all in uae_cpu
  CC       build68k.o
  CC       gencpu.o
  CXX      readcpu.o
In file included from ./../Unix/sysdeps.h:31,
                 from readcpu.cpp:10:
../../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CCLD     build68k
  GEN      cpudefs.cpp
  CXX      cpudefs.o
In file included from ./../Unix/sysdeps.h:31,
                 from cpudefs.cpp:1:
../../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXXLD    gencpu
  GEN      cpuemu.cpp
/opt/pkg/bin/bmake  all-am
  CXX      uae_cpu/libaranym_a-cpudefsa.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpudefs.cpp:1,
                 from uae_cpu/cpudefsa.cpp:5:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpustbla.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpustbl.cpp:1,
                 from uae_cpu/cpustbla.cpp:5:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpufunctbla.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpufunctbl.cpp:1,
                 from uae_cpu/cpufunctbla.cpp:5:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu1.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu1.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu2.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu2.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu3.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu3.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu4.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu4.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu5.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu5.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu6.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu6.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu7.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu7.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      uae_cpu/libaranym_a-cpuemu8.o
In file included from ./Unix/sysdeps.h:31,
                 from uae_cpu/cpuemu.cpp:1,
                 from uae_cpu/cpuemu8.cpp:2:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      main.o
In file included from ./Unix/sysdeps.h:31,
                 from main.cpp:26:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      Unix/main_unix.o
In file included from Unix/sysdeps.h:31,
                 from Unix/main_unix.cpp:34:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      Unix/vm_alloc.o
In file included from Unix/sysdeps.h:31,
                 from Unix/vm_alloc.cpp:27:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      Unix/host_clock_unix.o
In file included from Unix/sysdeps.h:31,
                 from Unix/host_clock_unix.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CC       Unix/vasprintf.o
  CXX      acia.o
In file included from ./Unix/sysdeps.h:31,
                 from acia.cpp:24:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      acsifdc.o
In file included from ./Unix/sysdeps.h:31,
                 from acsifdc.cpp:32:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CC       adler32.o
  CXX      aradata.o
In file included from ./Unix/sysdeps.h:31,
                 from aradata.cpp:24:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      aranym_exception.o
  CXX      ata.o
In file included from ./Unix/sysdeps.h:31,
                 from ata.cpp:29:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      audio_conv.o
In file included from ./Unix/sysdeps.h:31,
                 from audio_conv.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      audio_dma.o
In file included from ./Unix/sysdeps.h:31,
                 from audio_dma.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      audio_crossbar.o
In file included from ./Unix/sysdeps.h:31,
                 from audio_crossbar.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      blitter.o
In file included from ./Unix/sysdeps.h:31,
                 from blitter.cpp:41:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      bootos.o
In file included from ./Unix/sysdeps.h:31,
                 from bootos.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      bootos_tos.o
In file included from ./Unix/sysdeps.h:31,
                 from bootos_tos.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      bootos_emutos.o
In file included from ./Unix/sysdeps.h:31,
                 from bootos_emutos.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      bootos_linux.o
In file included from ./Unix/sysdeps.h:31,
                 from bootos_linux.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      cdrom.o
In file included from ./Unix/sysdeps.h:31,
                 from cdrom.cpp:32:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      cfgopts.o
In file included from ./Unix/sysdeps.h:31,
                 from cfgopts.cpp:76:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      dirty_rects.o
  CXX      dsp.o
In file included from ./Unix/sysdeps.h:31,
                 from dsp.cpp:22:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      disasm/disasm-glue.o
In file included from ./Unix/sysdeps.h:31,
                 from disasm/disasm-glue.cpp:24:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      disasm/disasm-builtin.o
In file included from ./Unix/sysdeps.h:31,
                 from disasm/disasm-builtin.cpp:1:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      disasm/disasm-x86.o
In file included from ./Unix/sysdeps.h:31,
                 from disasm/disasm-x86.cpp:27:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      disasm/disasm-arm.o
In file included from ./Unix/sysdeps.h:31,
                 from disasm/disasm-arm.cpp:27:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CC       disasm/disasm-arm-builtin.o
  CC       disasm/disasm-x86-builtin.o
  CXX      emul_op.o
In file included from ./Unix/sysdeps.h:31,
                 from emul_op.cpp:23:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CC       glenums.o
  CXX      natfeats.o
In file included from ./Unix/sysdeps.h:31,
                 from ./include/natfeats.h:27,
                 from natfeats.cpp:9:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      fakeio.o
In file included from ./Unix/sysdeps.h:31,
                 from fakeio.cpp:24:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      hardware.o
In file included from ./Unix/sysdeps.h:31,
                 from hardware.cpp:25:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      host.o
In file included from ./Unix/sysdeps.h:31,
                 from host.cpp:22:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      host_audio.o
In file included from ./Unix/sysdeps.h:31,
                 from host_audio.cpp:21:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
  CXX      host_clock.o
  CXX      hostscreen.o
In file included from hostscreen.cpp:23:
../config.h:758: warning: "_XOPEN_SOURCE" redefined
  758 | #define _XOPEN_SOURCE 500
      | 
<built-in>: note: this is the location of the previous definition
hostscreen.cpp: In member function 'void HostScreen::writeSnapshot(SDL_Surface*)':
hostscreen.cpp:315:12: error: 'PATH_MAX' was not declared in this scope
  315 |  char path[PATH_MAX];
      |            ^~~~~~~~
hostscreen.cpp:320:15: error: 'path' was not declared in this scope
  320 |  safe_strncpy(path, bx_options.snapshot_dir, sizeof(path));
      |               ^~~~
*** [hostscreen.o] Error code 1

bmake[3]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0/src
1 error

bmake[3]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0/src
*** [all-recursive] Error code 1

bmake[2]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0/src
1 error

bmake[2]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0/src
*** [all-recursive] Error code 1

bmake[1]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0
1 error

bmake[1]: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0
1 error

bmake: stopped in /home/pbulk/build/emulators/aranym/work/aranym-1.1.0
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/aranym