+ 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/newmail-1.0.1nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/newmail-1.0.1nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for newmail-1.0.1nb1
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -Wall -I/usr/include -c newmail.c
newmail.c:36:2: error: #error "Neither DT_REG nor DTTOIF is defined."
   36 | #error "Neither DT_REG nor DTTOIF is defined."
      |  ^~~~~
newmail.c:44:2: error: #error "Neither DT_REG nor DTTOIF is defined."
   44 | #error "Neither DT_REG nor DTTOIF is defined."
      |  ^~~~~
newmail.c: In function 'main':
newmail.c:117:37: warning: implicit declaration of function 'DIRENT_IS_REG' [-Wimplicit-function-declaration]
  117 |                                 if (DIRENT_IS_REG(curr_file->d_type)) {
      |                                     ^~~~~~~~~~~~~
newmail.c:117:60: error: 'struct dirent' has no member named 'd_type'
  117 |                                 if (DIRENT_IS_REG(curr_file->d_type)) {
      |                                                            ^~
newmail.c:125:47: warning: implicit declaration of function 'DIRENT_IS_DIR' [-Wimplicit-function-declaration]
  125 |                                         if (! DIRENT_IS_DIR(curr_file->d_type)) {
      |                                               ^~~~~~~~~~~~~
newmail.c:125:70: error: 'struct dirent' has no member named 'd_type'
  125 |                                         if (! DIRENT_IS_DIR(curr_file->d_type)) {
      |                                                                      ^~
*** [newmail.o] Error code 1

bmake: stopped in /home/pbulk/build/mail/newmail/work/newmail
1 error

bmake: stopped in /home/pbulk/build/mail/newmail/work/newmail
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/mail/newmail