+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=53 WRKLOG=/tmp/bulklog/lua53-cqueues-20200726/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=53 WRKLOG=/tmp/bulklog/lua53-cqueues-20200726/work.log
=> Bootstrap dependency digest>=20211023: found digest-20211023
===> Building for lua53-cqueues-20200726
gmake -f GNUmakefile all5.3
gmake[1]: Entering directory '/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726'
cp /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/config.h.guess /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/config.h
cp /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/config.h /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/config.h
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/cqueues.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/cqueues.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/socket.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/socket.c
cd /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src && m4 /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/errno.c.m4 >| /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/errno.c.tmp
mv /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/errno.c.tmp /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/errno.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/errno.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/errno.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/signal.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/signal.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/thread.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/thread.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/notify.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/notify.c
mkdir -p /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DLUA_COMPAT_APIINTCASTS  -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L  -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/5.3/dns.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/dns.c
cp /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/config.h /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/config.h
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DSOCKET_DEBUG -DHAVE_CONFIG_H -DDNS_RANDOM=RAND_bytes -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/socket.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/socket.c
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DSOCKET_DEBUG -DHAVE_CONFIG_H -DDNS_RANDOM=RAND_bytes -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c: In function 'dns_so_check':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6547:17: warning: array subscript -2 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6547 |  so->query->data[-2] = 0xff & (so->query->end >> 8);
      |  ~~~~~~~~~~~~~~~^~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6548:17: warning: array subscript -1 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6548 |  so->query->data[-1] = 0xff & (so->query->end >> 0);
      |  ~~~~~~~~~~~~~~~^~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6550:9: warning: array subscript -2 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6550 |  qsrc = &so->query->data[-2] + so->qout;
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6576:10: warning: array subscript -2 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6576 |   asrc = &so->answer->data[-2];
      |          ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6587:18: warning: array subscript -2 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6587 |    alen = ((0xff & so->answer->data[-2]) << 8)
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:6588:42: warning: array subscript -1 is below array bounds of 'unsigned char[1]' [-Warray-bounds]
 6588 |         | ((0xff & so->answer->data[-1]) << 0);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.c:83:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/dns.h:422:17: note: while referencing 'data'
  422 |   unsigned char data[1];
      |                 ^~~~
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra  -Wno-missing-field-initializers  -Wno-override-init -Wno-unused -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -Usun -D_XPG4_2 -D__EXTENSIONS__ -I/opt/local/include/lua-5.3 -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DSOCKET_DEBUG -DHAVE_CONFIG_H -DDNS_RANDOM=RAND_bytes -c -o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.o /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:98:
/usr/include/sys/inotify.h:1:2: error: #error "This header has been disabled to stop its functionality from being used."
    1 | #error "This header has been disabled to stop its functionality from being used."
      |  ^~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:369:31: warning: 'struct file_obj' declared inside parameter list will not be visible outside of this definition or declaration
  369 | static void fenfo_init(struct file_obj *fo, char *path) {
      |                               ^~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'fenfo_init':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:373:5: error: invalid use of undefined type 'struct file_obj'
  373 |   fo->fo_atime = st.st_atim;
      |     ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:374:5: error: invalid use of undefined type 'struct file_obj'
  374 |   fo->fo_mtime = st.st_mtim;
      |     ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:375:5: error: invalid use of undefined type 'struct file_obj'
  375 |   fo->fo_ctime = st.st_ctim;
      |     ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:378:4: error: invalid use of undefined type 'struct file_obj'
  378 |  fo->fo_name = path;
      |    ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: At top level:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:392:18: error: field 'fo' has incomplete type
  392 |  struct file_obj fo;
      |                  ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:446:18: error: field 'dirfo' has incomplete type
  446 |  struct file_obj dirfo;
      |                  ^~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'discard':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:521:2: warning: implicit declaration of function 'port_dissociate' [-Wimplicit-function-declaration]
  521 |  port_dissociate(nfy->fd, PORT_SOURCE_FILE, (intptr_t)&file->fo);
      |  ^~~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:521:27: error: 'PORT_SOURCE_FILE' undeclared (first use in this function)
  521 |  port_dissociate(nfy->fd, PORT_SOURCE_FILE, (intptr_t)&file->fo);
      |                           ^~~~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:521:27: note: each undeclared identifier is reported only once for each function it appears in
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'notify_opendir':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:562:23: warning: implicit declaration of function 'inotify_init'; did you mean 'notify_get'? [-Wimplicit-function-declaration]
  562 |  if (-1 == (nfy->fd = inotify_init()))
      |                       ^~~~~~~~~~~~
      |                       notify_get
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:26: warning: implicit declaration of function 'inotify_add_watch' [-Wimplicit-function-declaration]
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                          ^~~~~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:67: error: 'IN_ATTRIB' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                   ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:77: error: 'IN_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                             ^~~~~~~~~
      |                                                                             O_CREAT
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:87: error: 'IN_DELETE' undeclared (first use in this function); did you mean 'S_DELETED'?
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                       ^~~~~~~~~
      |                                                                                       S_DELETED
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:97: error: 'IN_DELETE_SELF' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                                 ^~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:112: error: 'IN_MODIFY' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                                                ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:122: error: 'IN_MOVE' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                                                          ^~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:130: error: 'IN_MOVE_SELF' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                                                                  ^~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:572:143: error: 'IN_ONLYDIR' undeclared (first use in this function)
  572 |  if (-1 == (nfy->dirwd = inotify_add_watch(nfy->fd, nfy->dirpath, IN_ATTRIB|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_ONLYDIR)))
      |                                                                                                                                               ^~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'notify_close':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:642:27: error: 'PORT_SOURCE_FILE' undeclared (first use in this function)
  642 |  port_dissociate(nfy->fd, PORT_SOURCE_FILE, (intptr_t)&nfy->dirfo);
      |                           ^~~~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'decode':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:665:5: error: 'IN_ATTRIB' undeclared (first use in this function)
  665 |   { IN_ATTRIB,      NOTIFY_ATTRIB },
      |     ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:666:5: error: 'IN_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
  666 |   { IN_CREATE,      NOTIFY_CREATE },
      |     ^~~~~~~~~
      |     O_CREAT
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:667:5: error: 'IN_DELETE' undeclared (first use in this function); did you mean 'S_DELETED'?
  667 |   { IN_DELETE,      NOTIFY_DELETE },
      |     ^~~~~~~~~
      |     S_DELETED
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:668:5: error: 'IN_DELETE_SELF' undeclared (first use in this function)
  668 |   { IN_DELETE_SELF, NOTIFY_DELETE },
      |     ^~~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:669:5: error: 'IN_MODIFY' undeclared (first use in this function)
  669 |   { IN_MODIFY,      NOTIFY_MODIFY },
      |     ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:670:5: error: 'IN_MOVE_SELF' undeclared (first use in this function)
  670 |   { IN_MOVE_SELF,   NOTIFY_DELETE },
      |     ^~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:671:5: error: 'IN_MOVED_FROM' undeclared (first use in this function)
  671 |   { IN_MOVED_FROM,  NOTIFY_DELETE },
      |     ^~~~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:672:5: error: 'IN_MOVED_TO' undeclared (first use in this function)
  672 |   { IN_MOVED_TO,    NOTIFY_CREATE },
      |     ^~~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'in_step1':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:715:78: error: field 'event' has incomplete type
  715 | #define in_msgbuf(bufsiz) (&((union { char pad[bufsiz]; struct inotify_event event; }){ { 0 } }).event)
      |                                                                              ^~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:724:8: note: in expansion of macro 'in_msgbuf'
  724 |  buf = in_msgbuf(IN_BUFSIZ);
      |        ^~~~~~~~~
In file included from /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:29:
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:717:74: error: invalid use of undefined type 'struct inotify_event'
  717 | #define in_msgnxt(msg) (struct inotify_event *)((unsigned char *)(msg) + offsetof(struct inotify_event, name) + (msg)->len)
      |                                                                          ^~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:727:63: note: in expansion of macro 'in_msgnxt'
  727 |   for (msg = buf, end = in_msgend(buf, len); msg < end; msg = in_msgnxt(msg)) {
      |                                                               ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:717:118: error: invalid use of undefined type 'struct inotify_event'
  717 | #define in_msgnxt(msg) (struct inotify_event *)((unsigned char *)(msg) + offsetof(struct inotify_event, name) + (msg)->len)
      |                                                                                                                      ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:727:63: note: in expansion of macro 'in_msgnxt'
  727 |   for (msg = buf, end = in_msgend(buf, len); msg < end; msg = in_msgnxt(msg)) {
      |                                                               ^~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:728:31: error: invalid use of undefined type 'struct inotify_event'
  728 |    size_t namelen = strlen(msg->name);
      |                               ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:733:32: error: invalid use of undefined type 'struct inotify_event'
  733 |     if ((file = lookup(nfy, msg->name, namelen))) {
      |                                ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:734:33: error: invalid use of undefined type 'struct inotify_event'
  734 |      file->changes |= decode(msg->mask);
      |                                 ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:738:31: error: invalid use of undefined type 'struct inotify_event'
  738 |     nfy->changes |= decode(msg->mask);
      |                               ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:741:12: error: invalid use of undefined type 'struct inotify_event'
  741 |     if (msg->mask & (IN_Q_OVERFLOW|IN_IGNORED|IN_UNMOUNT))
      |            ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:741:22: error: 'IN_Q_OVERFLOW' undeclared (first use in this function); did you mean 'EOVERFLOW'?
  741 |     if (msg->mask & (IN_Q_OVERFLOW|IN_IGNORED|IN_UNMOUNT))
      |                      ^~~~~~~~~~~~~
      |                      EOVERFLOW
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:741:36: error: 'IN_IGNORED' undeclared (first use in this function)
  741 |     if (msg->mask & (IN_Q_OVERFLOW|IN_IGNORED|IN_UNMOUNT))
      |                                    ^~~~~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:741:47: error: 'IN_UNMOUNT' undeclared (first use in this function); did you mean 'NMOUNT'?
  741 |     if (msg->mask & (IN_Q_OVERFLOW|IN_IGNORED|IN_UNMOUNT))
      |                                               ^~~~~~~~~~
      |                                               NMOUNT
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:745:11: error: invalid use of undefined type 'struct inotify_event'
  745 |    if (msg->mask & (IN_CREATE|IN_DELETE|IN_MOVE)) {
      |           ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:745:21: error: 'IN_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
  745 |    if (msg->mask & (IN_CREATE|IN_DELETE|IN_MOVE)) {
      |                     ^~~~~~~~~
      |                     O_CREAT
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:745:31: error: 'IN_DELETE' undeclared (first use in this function); did you mean 'S_DELETED'?
  745 |    if (msg->mask & (IN_CREATE|IN_DELETE|IN_MOVE)) {
      |                               ^~~~~~~~~
      |                               S_DELETED
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:745:41: error: 'IN_MOVE' undeclared (first use in this function)
  745 |    if (msg->mask & (IN_CREATE|IN_DELETE|IN_MOVE)) {
      |                                         ^~~~~~~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:746:31: error: invalid use of undefined type 'struct inotify_event'
  746 |     nfy->changes |= decode(msg->mask & (IN_CREATE|IN_DELETE|IN_MOVE));
      |                               ^~
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c: In function 'notify_add':
/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.c:1132:15: warning: implicit declaration of function 'fen_readd' [-Wimplicit-function-declaration]
 1132 |  if ((error = fen_readd(nfy, file)))
      |               ^~~~~~~~~
gmake[1]: *** [/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/GNUmakefile:39: /home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726/src/lib/notify.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/devel/lua-cqueues/work/cqueues-rel-20200726'
gmake: *** [Makefile:7: all5.3] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/devel/lua-cqueues
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/devel/lua-cqueues