+ 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/gnuchess4-4.0.80/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/gnuchess4-4.0.80/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for gnuchess4-4.0.80
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -c ./main.c
mv main.o mainN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/opt/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/opt/pkg/share/gnuchess4/gnuchess.eco\" -c ./book.c
./book.c: In function 'LOpeningBook':
./book.c:1024:5: warning: implicit declaration of function 'Ldisplay1'; did you mean 'bkdisplay'? [-Wimplicit-function-declaration]
 1024 |     Ldisplay1 ();
      |     ^~~~~~~~~
      |     bkdisplay
./book.c:1044:17: warning: implicit declaration of function 'Ldisplay'; did you mean 'bkdisplay'? [-Wimplicit-function-declaration]
 1044 |                 Ldisplay (Lmove, Lhint, OBB[x].count);
      |                 ^~~~~~~~
      |                 bkdisplay
./book.c:1056:5: warning: implicit declaration of function 'Ldisplay2'; did you mean 'bkdisplay'? [-Wimplicit-function-declaration]
 1056 |     Ldisplay2 ();
      |     ^~~~~~~~~
      |     bkdisplay
./book.c: In function 'EOpeningBook':
./book.c:1171:5: warning: implicit declaration of function 'Ldisplay3'; did you mean 'bkdisplay'? [-Wimplicit-function-declaration]
 1171 |     Ldisplay3 ();
      |     ^~~~~~~~~
      |     bkdisplay
./book.c:1205:29: warning: implicit declaration of function 'Ldisplay4'; did you mean 'bkdisplay'? [-Wimplicit-function-declaration]
 1205 |                             Ldisplay4 (E);
      |                             ^~~~~~~~~
      |                             bkdisplay
mv book.o bookN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./genmoves.c
mv genmoves.o genmovesN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./ataks.c
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./util.c
mv util.o utilN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./eval.c
mv eval.o evalN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./init.c
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./search.c
./search.c: In function 'pick':
./search.c:110:12: warning: type defaults to 'int' in declaration of 's0' [-Wimplicit-int]
  110 |   register s0;
      |            ^~
mv search.o searchN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./dspcom.c
./dspcom.c: In function 'InputCommand':
./dspcom.c:1184:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 1184 | #endif XBOARD
      |        ^~~~~~
mv dspcom.o dspcomN.o
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./uxdsp.c
./uxdsp.c: In function 'EditBoard':
./uxdsp.c:265:3: warning: implicit declaration of function 'ZeroRPT' [-Wimplicit-function-declaration]
  265 |   ZeroRPT ();
      |   ^~~~~~~
./uxdsp.c: At top level:
./uxdsp.c:905:1: warning: return type defaults to 'int' [-Wimplicit-int]
  905 | Ldisplay3()
      | ^~~~~~~~~
gcc -I. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=8 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\"  -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o  -lcurses -ltermcap  -lm
ld: fatal: library -lncurses: not found
ld: fatal: file processing errors. No output written to gnuchess
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /home/pbulk/build/games/gnuchess4/work/gnuchess-4.0.pl80/src
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/gnuchess4