+ 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/intellij-fsnotifier-0.0.20190228nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/intellij-fsnotifier-0.0.20190228nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for intellij-fsnotifier-0.0.20190228nb2
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -Wall -Wextra -D_DEFAULT_SOURCE -std=c99 -I/opt/pkg/include   -I/usr/include -c inotify.c
inotify.c:65:26: error: 'PATH_MAX' undeclared here (not in a function)
   65 | static char path_buf[2 * PATH_MAX];
      |                          ^~~~~~~~
inotify.c: In function 'add_watch':
inotify.c:205:33: warning: implicit declaration of function 'realpath' [-Wimplicit-function-declaration]
  205 |       const char* normalized1 = realpath(node->path, buf1);
      |                                 ^~~~~~~~
inotify.c:204:28: warning: unused variable 'buf2' [-Wunused-variable]
  204 |       char buf1[PATH_MAX], buf2[PATH_MAX];
      |                            ^~~~
inotify.c:204:12: warning: unused variable 'buf1' [-Wunused-variable]
  204 |       char buf1[PATH_MAX], buf2[PATH_MAX];
      |            ^~~~
inotify.c: In function 'walk_tree':
inotify.c:325:14: error: 'struct dirent' has no member named 'd_type'
  325 |     if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) {
      |              ^~
inotify.c:325:26: error: 'DT_UNKNOWN' undeclared (first use in this function)
  325 |     if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) {
      |                          ^~~~~~~~~~
inotify.c:325:26: note: each undeclared identifier is reported only once for each function it appears in
inotify.c:325:45: error: 'struct dirent' has no member named 'd_type'
  325 |     if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) {
      |                                             ^~
inotify.c:325:57: error: 'DT_DIR' undeclared (first use in this function)
  325 |     if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) {
      |                                                         ^~~~~~
inotify.c:332:14: error: 'struct dirent' has no member named 'd_type'
  332 |     if (entry->d_type == DT_UNKNOWN) {
      |              ^~
inotify.c: At top level:
inotify.c:65:13: warning: 'path_buf' defined but not used [-Wunused-variable]
   65 | static char path_buf[2 * PATH_MAX];
      |             ^~~~~~~~
*** [inotify.o] Error code 1

bmake: stopped in /home/pbulk/build/sysutils/intellij-fsnotifier/work/fsnotifier-bb7815166319ba46c27809ed8fc0c6b5fa14f869
1 error

bmake: stopped in /home/pbulk/build/sysutils/intellij-fsnotifier/work/fsnotifier-bb7815166319ba46c27809ed8fc0c6b5fa14f869
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/intellij-fsnotifier