+ 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/xjewel-1.6nb3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xjewel-1.6nb3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xjewel-1.6nb3
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c xw.c
In file included from xw.c:34:
xw.c: In function 'xw_sync_sleep':
xw.h:62:34: warning: passing argument 1 of 'poll' from incompatible pointer type [-Wincompatible-pointer-types]
   62 | #       define ms_sleep(ms) poll(__JUNK,(unsigned long)0,ms)
      |                                  ^~~~~~
      |                                  |
      |                                  int *
xw.c:120:17: note: in expansion of macro 'ms_sleep'
  120 |                 ms_sleep(ms-SyncTime);
      |                 ^~~~~~~~
In file included from /usr/include/poll.h:38,
                 from xw.h:51:
/usr/include/sys/poll.h:152:10: note: expected 'struct pollfd *' but argument is of type 'int *'
  152 | int poll(struct pollfd *, nfds_t, int);
      |          ^~~~~~~~~~~~~~~
xw.c: In function 'xw_init':
xw.c:402:18: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
  402 |         *AppName=toupper(*AppName);
      |                  ^~~~~~~
xw.c:40:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
   39 | #include "bitmaps/smicon.xbm"
  +++ |+#include <ctype.h>
   40 | 
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c jewel.c
jewel.c: In function 'xw_key_event':
jewel.c:145:41: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  145 |                                         printf("Thankyou for playing...try again sometime!\n");
      |                                         ^~~~~~
jewel.c:35:1: note: include '<stdio.h>' or provide a declaration of 'printf'
   34 | #include "version.h"
  +++ |+#include <stdio.h>
   35 | char *StartString="Press \140Space\047 to begin, or \140H\047 for Help";
jewel.c:145:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
  145 |                                         printf("Thankyou for playing...try again sometime!\n");
      |                                         ^~~~~~
jewel.c:145:41: note: include '<stdio.h>' or provide a declaration of 'printf'
jewel.c:207:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
  207 |                                         printf("Thankyou for playing...try again sometime!\n");
      |                                         ^~~~~~
jewel.c:207:41: note: include '<stdio.h>' or provide a declaration of 'printf'
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c logic.c
logic.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int]
   91 | Update_Board(piece, x, y)
      | ^~~~~~~~~~~~
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c panel.c
panel.c: In function 'Dec_Rest':
panel.c:151:6: warning: type of 'val' defaults to 'int' [-Wimplicit-int]
  151 | BOOL Dec_Rest(val)
      |      ^~~~~~~~
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c xhscore.c
gcc -O -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64     -DHSCORE_FILE=\"/var/opt/pkg/games/xjewel.scores\"  -DICON_WINDOW -DGETPWENT  -I/opt/pkg/include -c hscore.c
hscore.c: In function 'Open_High_Score_File':
hscore.c:81:25: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
   81 |         if ((hscorefd = open(HSCORE_FILE, O_RDWR)) <0)
      |                         ^~~~
      |                         popen
hscore.c:81:43: error: 'O_RDWR' undeclared (first use in this function)
   81 |         if ((hscorefd = open(HSCORE_FILE, O_RDWR)) <0)
      |                                           ^~~~~~
hscore.c:81:43: note: each undeclared identifier is reported only once for each function it appears in
hscore.c:86:66: error: 'O_CREAT' undeclared (first use in this function); did you mean 'FCREAT'?
   86 |                         if ((hscorefd = open(HSCORE_FILE, O_RDWR|O_CREAT, 0666)) <0)
      |                                                                  ^~~~~~~
      |                                                                  FCREAT
hscore.c: In function 'Close_High_Score_File':
hscore.c:122:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  122 |         close(hscorefd);
      |         ^~~~~
      |         pclose
hscore.c: In function 'Add_High_Score':
hscore.c:134:45: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration]
  134 |         memcpy(high_scores[i].name,getpwuid(getuid())->pw_name,MAX_NAME_LENGTH+1);
      |                                             ^~~~~~
      |                                             getpwuid
*** [hscore.o] Error code 1

bmake: stopped in /home/pbulk/build/games/xjewel/work/xjewel-1.6
1 error

bmake: stopped in /home/pbulk/build/games/xjewel/work/xjewel-1.6
*** Error code 2

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

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