+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pscpug-0.3.5nb3/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pscpug-0.3.5nb3/work.log
===> Building for pscpug-0.3.5nb3
--- main.o ---
--- common.o ---
--- output.o ---
--- psinfo.o ---
--- main.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D__EXTENSIONS__ -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCURSES=1 -DHAVE_LIBKVM=1 -DHAVE__PROC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LIBM=1  -c main.c
--- common.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D__EXTENSIONS__ -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCURSES=1 -DHAVE_LIBKVM=1 -DHAVE__PROC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LIBM=1  -c common.c
--- psinfo.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D__EXTENSIONS__ -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCURSES=1 -DHAVE_LIBKVM=1 -DHAVE__PROC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LIBM=1  -c psinfo.c
--- output.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D__EXTENSIONS__ -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCURSES=1 -DHAVE_LIBKVM=1 -DHAVE__PROC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LIBM=1  -c output.c
--- psinfo.o ---
psinfo.c:60:10: fatal error: sys/sysctl.h: No such file or directory
   60 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
*** [psinfo.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/sysutils/pscpug/work/pscpug035
--- output.o ---
output.c: In function 'paintscreen':
output.c:63:24: error: storage size of 'newsize' isn't known
   63 |         struct winsize newsize;
      |                        ^~~~~~~
output.c:65:35: error: 'TIOCGWINSZ' undeclared (first use in this function)
   65 |         if (!ioctl(STDOUT_FILENO, TIOCGWINSZ, &newsize)) {
      |                                   ^~~~~~~~~~
output.c:65:35: note: each undeclared identifier is reported only once for each function it appears in
output.c:63:24: warning: unused variable 'newsize' [-Wunused-variable]
   63 |         struct winsize newsize;
      |                        ^~~~~~~
*** [output.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/sysutils/pscpug/work/pscpug035
bmake: 2 errors

bmake: stopped making "all" in /home/pbulk/build/sysutils/pscpug/work/pscpug035
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/sysutils/pscpug
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/sysutils/pscpug