=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Installing for ruby31-io-event-1.5.1
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR:  Error installing /pbulk/work/devel/ruby-io-event/work/io-event-1.5.1/io-event-1.5.1.gem:
	ERROR: Failed to build gem native extension.

    current directory: /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/io-event-1.5.1/ext
/usr/pkg/bin/ruby31 -I /usr/pkg/lib/ruby/3.1.0 extconf.rb
checking for rb_ext_ractor_safe()... yes
checking for &rb_fiber_transfer()... yes
checking for -luring... no
checking for sys/epoll.h... no
checking for sys/event.h... yes
checking for sys/eventfd.h... yes
checking for rb_io_descriptor()... yes
checking for &rb_process_status_wait()... no
checking for rb_fiber_current()... yes
checking for &rb_fiber_raise()... yes
checking for epoll_pwait2()... no
checking for ruby/io/buffer.h... yes
creating extconf.h
creating Makefile

current directory: /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/io-event-1.5.1/ext
make DESTDIR\= sitearchdir\=./.gem.20240601-11502-phjzpy sitelibdir\=./.gem.20240601-11502-phjzpy clean

current directory: /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/io-event-1.5.1/ext
make DESTDIR\= sitearchdir\=./.gem.20240601-11502-phjzpy sitelibdir\=./.gem.20240601-11502-phjzpy
compiling ./io/event/event.c
compiling ./io/event/selector/selector.c
In file included from /pbulk/work/devel/ruby-io-event/work/.buildlink/include/ruby-3.1.0/ruby.h:38,
                 from ./io/event/selector/selector.h:23,
                 from ./io/event/selector/selector.c:21:
./io/event/selector/selector.c: In function 'IO_Event_Selector_process_status_wait':
./io/event/selector/selector.c:77:82: error: 'WNOHANG' undeclared (first use in this function)
   77 |  return rb_funcall(rb_Process_Status, id_wait, 2, PIDT2NUM(pid), INT2NUM(flags | WNOHANG));
      |                                                                                  ^~~~~~~
/pbulk/work/devel/ruby-io-event/work/.buildlink/include/ruby-3.1.0/ruby/ruby.h:291:35: note: in definition of macro 'rb_funcall'
  291 |  const VALUE rb_funcall_args[] = {__VA_ARGS__}; \
      |                                   ^~~~~~~~~~~
./io/event/selector/selector.c:77:82: note: each undeclared identifier is reported only once for each function it appears in
   77 |  return rb_funcall(rb_Process_Status, id_wait, 2, PIDT2NUM(pid), INT2NUM(flags | WNOHANG));
      |                                                                                  ^~~~~~~
/pbulk/work/devel/ruby-io-event/work/.buildlink/include/ruby-3.1.0/ruby/ruby.h:291:35: note: in definition of macro 'rb_funcall'
  291 |  const VALUE rb_funcall_args[] = {__VA_ARGS__}; \
      |                                   ^~~~~~~~~~~
*** Error code 1

Stop.
make: stopped in /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/io-event-1.5.1/ext

make failed, exit code 1

Gem files will remain installed in /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/io-event-1.5.1 for inspection.
Results logged to /pbulk/work/devel/ruby-io-event/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/extensions/i486-netbsdelf/3.1.0/io-event-1.5.1/gem_make.out
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/ruby-io-event
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/ruby-io-event