+ 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/netmaj-2.0.7nb15/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/netmaj-2.0.7nb15/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for netmaj-2.0.7nb15
--- server.o ---
--- ss.o ---
--- global.o ---
--- mt.o ---
--- server.o ---
cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include/ncurses -c server.c
--- ss.o ---
cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include/ncurses -c ss.c
--- global.o ---
cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include/ncurses -c global.c
--- mt.o ---
cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include/ncurses -c mt.c
--- global.o ---
In file included from global.c:26:
pai.h:22:25: error: conflicting types for 'rand'; have 'long int(void)'
   22 | #define random          rand
      |                         ^~~~
In file included from /usr/include/stdlib.h:41,
                 from ss.h:34,
                 from global.h:24,
                 from global.c:27:
/usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' with type 'int(void)'
  153 | extern int rand(void);
      |            ^~~~
global.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int]
   39 | global_init(gp) global_t *gp; {
      | ^~~~~~~~~~~
global.c: In function 'global_init':
global.c:40:9: warning: implicit declaration of function 'set_pplayer' [-Wimplicit-function-declaration]
   40 |         set_pplayer(gp);
      |         ^~~~~~~~~~~
global.c:42:9: warning: implicit declaration of function 'mt_new'; did you mean 'mt_next'? [-Wimplicit-function-declaration]
   42 |         mt_new(gp);
      |         ^~~~~~
      |         mt_next
global.c:43:9: warning: implicit declaration of function 'rv_new' [-Wimplicit-function-declaration]
   43 |         rv_new(gp);
      |         ^~~~~~
global.c:44:9: warning: implicit declaration of function 'hand_new' [-Wimplicit-function-declaration]
   44 |         hand_new(gp);
      |         ^~~~~~~~
global.c:45:9: warning: implicit declaration of function 'result_new'; did you mean 'result'? [-Wimplicit-function-declaration]
   45 |         result_new(gp);
--- mt.o ---
In file included from mt.c:24:
pai.h:22:25: error: conflicting types for 'rand'; have 'long int(void)'
   22 | #define random          rand
      |                         ^~~~
In file included from /usr/include/stdlib.h:41,
                 from ss.h:34,
                 from global.h:24,
                 from mt.c:25:
/usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' with type 'int(void)'
  153 | extern int rand(void);
      |            ^~~~
mt.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int]
   29 | mt_dora(gp,n) global_t *gp; {
      | ^~~~~~~
mt.c: In function 'mt_dora':
mt.c:29:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
mt.c: At top level:
mt.c:33:1: warning: return type defaults to 'int' [-Wimplicit-int]
   33 | mt_uradora(gp,n) global_t *gp; {
      | ^~~~~~~~~~
mt.c: In function 'mt_uradora':
mt.c:33:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
mt.c: At top level:
mt.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int]
--- global.o ---
      |         ^~~~~~~~~~
      |         result
global.c: At top level:
global.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int]
   48 | send_newgame(gp) global_t *gp; {
      | ^~~~~~~~~~~~
global.c: In function 'send_newgame':
global.c:59:17: warning: implicit declaration of function 'msgWrites' [-Wimplicit-function-declaration]
   59 |                 msgWrites(gp,buf,i);
      |                 ^~~~~~~~~
global.c: At top level:
global.c:62:1: warning: return type defaults to 'int' [-Wimplicit-int]
   62 | send_endgame(gp,order) global_t *gp; int *order; {
      | ^~~~~~~~~~~~
--- mt.o ---
   37 | mt_rest(gp) global_t *gp; {
      | ^~~~~~~
mt.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int]
   47 | mt_new(gp) global_t *gp; {
      | ^~~~~~
mt.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int]
   57 | mt_next_new(gp) global_t *gp; {
      | ^~~~~~~~~~~
mt.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int]
   66 | mt_setdora(gp,n,v) global_t *gp; {
      | ^~~~~~~~~~
mt.c: In function 'mt_setdora':
mt.c:66:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
mt.c:66:1: warning: type of 'v' defaults to 'int' [-Wimplicit-int]
mt.c: At top level:
mt.c:73:1: warning: return type defaults to 'int' [-Wimplicit-int]
   73 | mt_seturadora(gp,n,v) global_t *gp; {
      | ^~~~~~~~~~~~~
mt.c: In function 'mt_seturadora':
mt.c:73:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
mt.c:73:1: warning: type of 'v' defaults to 'int' [-Wimplicit-int]
mt.c: At top level:
mt.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int]
   82 | mt_get(gp) global_t *gp; {
      | ^~~~~~
mt.c:87:1: warning: return type defaults to 'int' [-Wimplicit-int]
   87 | mt_gettop(gp) global_t *gp; {
      | ^~~~~~~~~
mt.c:96:1: warning: return type defaults to 'int' [-Wimplicit-int]
   96 | mt_make(gp) global_t *gp; {
      | ^~~~~~~
mt.c: In function 'mt_make':
mt.c:100:31: warning: implicit declaration of function 'mt_push' [-Wimplicit-function-declaration]
  100 |         for (i=0; i<256; i++) mt_push(gp,i,0);
      |                               ^~~~~~~
mt.c: At top level:
mt.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int]
  123 | mt_haipai(gp,buf) global_t *gp; pai_t *buf; {
      | ^~~~~~~~~
mt.c:131:1: warning: return type defaults to 'int' [-Wimplicit-int]
  131 | mt_push(gp,p,mode) global_t *gp; pai_t p; {
      | ^~~~~~~
mt.c: In function 'mt_push':
mt.c:131:1: warning: type of 'mode' defaults to 'int' [-Wimplicit-int]
mt.c: At top level:
mt.c:140:1: warning: return type defaults to 'int' [-Wimplicit-int]
  140 | mt_rest_kind(gp,p) global_t *gp; pai_t p; {
      | ^~~~~~~~~~~~
--- global.o ---
global.c:80:1: warning: return type defaults to 'int' [-Wimplicit-int]
   80 | send_newplay(gp) global_t *gp; {
      | ^~~~~~~~~~~~
global.c:89:1: warning: return type defaults to 'int' [-Wimplicit-int]
   89 | send_endplay(gp) global_t *gp; {
      | ^~~~~~~~~~~~
global.c:98:1: warning: return type defaults to 'int' [-Wimplicit-int]
   98 | send_dora(gp) global_t *gp; {
      | ^~~~~~~~~
global.c: In function 'send_dora':
global.c:103:24: warning: implicit declaration of function 'mt_dora'; did you mean 'ch_dora'? [-Wimplicit-function-declaration]
  103 |                 x[i] = mt_dora(gp,i);
      |                        ^~~~~~~
      |                        ch_dora
global.c:104:17: warning: implicit declaration of function 'mt_push' [-Wimplicit-function-declaration]
  104 |                 mt_push(gp,x[i],0);
      |                 ^~~~~~~
global.c: At top level:
global.c:111:1: warning: return type defaults to 'int' [-Wimplicit-int]
  111 | send_uradora(gp) global_t *gp; {
      | ^~~~~~~~~~~~
global.c: In function 'send_uradora':
global.c:116:24: warning: implicit declaration of function 'mt_uradora'; did you mean 'send_uradora'? [-Wimplicit-function-declaration]
  116 |                 x[i] = mt_uradora(gp,i);
      |                        ^~~~~~~~~~
      |                        send_uradora
global.c: At top level:
global.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int]
  124 | send_river(gp) global_t *gp; {
      | ^~~~~~~~~~
global.c:152:1: warning: return type defaults to 'int' [-Wimplicit-int]
  152 | send_result(gp) global_t *gp; {
      | ^~~~~~~~~~~
global.c: In function 'send_result':
global.c:162:17: warning: implicit declaration of function 'result_cvt_to_int' [-Wimplicit-function-declaration]
  162 |                 result_cvt_to_int(yp,iy);
      |                 ^~~~~~~~~~~~~~~~~
global.c: At top level:
global.c:173:1: warning: return type defaults to 'int' [-Wimplicit-int]
  173 | send_riverin(gp,p) global_t *gp; {
      | ^~~~~~~~~~~~
global.c: In function 'send_riverin':
global.c:173:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
global.c: At top level:
global.c:194:1: warning: return type defaults to 'int' [-Wimplicit-int]
  194 | send_hand_closed(gp,p) global_t *gp; {
      | ^~~~~~~~~~~~~~~~
global.c: In function 'send_hand_closed':
global.c:194:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
global.c: At top level:
global.c:213:1: warning: return type defaults to 'int' [-Wimplicit-int]
  213 | send_hand_opened(gp,p,j) global_t *gp; {
      | ^~~~~~~~~~~~~~~~
global.c: In function 'send_hand_opened':
global.c:213:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
global.c:213:1: warning: type of 'j' defaults to 'int' [-Wimplicit-int]
global.c: At top level:
global.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int]
  250 | send_inithand(gp,p) global_t *gp; {
      | ^~~~~~~~~~~~~
global.c: In function 'send_inithand':
global.c:250:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
global.c: At top level:
global.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int]
  266 | send_point(gp) global_t *gp; {
      | ^~~~~~~~~~
global.c:284:1: warning: return type defaults to 'int' [-Wimplicit-int]
  284 | recv_message(gp,buf) global_t *gp; char *buf; {
      | ^~~~~~~~~~~~
--- mt.o ---
*** [mt.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/games/netmaj/work/netmaj
--- global.o ---
global.c: In function 'recv_message':
global.c:321:17: warning: implicit declaration of function 'mt_next_new'; did you mean 'mt_next_cnt'? [-Wimplicit-function-declaration]
  321 |                 mt_next_new(gp);
      |                 ^~~~~~~~~~~
      |                 mt_next_cnt
--- server.o ---
In file included from server.c:29:
pai.h:22:25: error: conflicting types for 'rand'; have 'long int(void)'
   22 | #define random          rand
      |                         ^~~~
In file included from /usr/include/stdlib.h:41,
                 from ss.h:34,
                 from global.h:24,
                 from server.c:30:
/usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' with type 'int(void)'
  153 | extern int rand(void);
      |            ^~~~
--- global.o ---
global.c:334:25: warning: implicit declaration of function 'mt_setdora' [-Wimplicit-function-declaration]
  334 |                         mt_setdora(gp,i,x[i]);
      |                         ^~~~~~~~~~
global.c:341:25: warning: implicit declaration of function 'mt_seturadora' [-Wimplicit-function-declaration]
  341 |                         mt_seturadora(gp,i,x[i]);
      |                         ^~~~~~~~~~~~~
global.c:345:35: warning: implicit declaration of function 'rv_find_player' [-Wimplicit-function-declaration]
  345 |                 if (rvp) ch_river[rv_find_player(gp,rvp)] = 1;
      |                                   ^~~~~~~~~~~~~~
global.c:354:41: warning: implicit declaration of function 'rv_push' [-Wimplicit-function-declaration]
  354 |                                         rv_push(gp,i);
      |                                         ^~~~~~~
global.c:364:33: warning: implicit declaration of function 'hand_delete' [-Wimplicit-function-declaration]
  364 |                                 hand_delete(gp,vself,rvp->out,1);
      |                                 ^~~~~~~~~~~
global.c:468:17: warning: implicit declaration of function 'result_cvt_from_int' [-Wimplicit-function-declaration]
  468 |                 result_cvt_from_int(&y,x);
      |                 ^~~~~~~~~~~~~~~~~~~
global.c:469:17: warning: implicit declaration of function 'result_set_who' [-Wimplicit-function-declaration]
  469 |                 result_set_who(&y);
      |                 ^~~~~~~~~~~~~~
global.c: At top level:
global.c:494:1: warning: return type defaults to 'int' [-Wimplicit-int]
  494 | set_pplayer(gp) global_t *gp; {
      | ^~~~~~~~~~~
--- server.o ---
server.c:72:1: warning: return type defaults to 'int' [-Wimplicit-int]
   72 | main(argc,argv)
      | ^~~~
--- ss.o ---
ss.c: In function '_sock_free':
ss.c:57:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
   57 |         close(sp->sd);
      |         ^~~~~
      |         pclose
ss.c: In function 'TimedConnectSock':
ss.c:132:17: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration]
  132 |                 alarm(to);
      |                 ^~~~~
ss.c: At top level:
ss.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int]
  151 | SockClose(sp) SOCKETIO *sp; {
      | ^~~~~~~~~
ss.c: In function 'SockGets':
ss.c:173:29: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration]
  173 |                         r = read(sp->sd, sp->rbuf, SSS_BUFSIZE);
      |                             ^~~~
      |                             readv
ss.c: In function 'SockWrites':
ss.c:191:13: warning: implicit declaration of function 'write'; did you mean 'writev'? [-Wimplicit-function-declaration]
  191 |         r = write(sp->sd,buf,len);
      |             ^~~~~
      |             writev
ss.c: At top level:
ss.c:214:1: warning: return type defaults to 'int' [-Wimplicit-int]
  214 | SockSelect(timeout,flags) double timeout; char *flags; {
      | ^~~~~~~~~~
--- server.o ---
server.c: In function 'main':
server.c:129:9: warning: implicit declaration of function 'pf_init' [-Wimplicit-function-declaration]
  129 |         pf_init(gp,"server",argv[0]);
      |         ^~~~~~~
server.c:130:9: warning: implicit declaration of function 'rule_init' [-Wimplicit-function-declaration]
  130 |         rule_init(gp);
      |         ^~~~~~~~~
--- global.o ---
*** [global.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/games/netmaj/work/netmaj
--- server.o ---
server.c:131:9: warning: implicit declaration of function 'pack_rule' [-Wimplicit-function-declaration]
  131 |         pack_rule(&rule);
      |         ^~~~~~~~~
server.c:182:41: warning: implicit declaration of function 'msgWrites' [-Wimplicit-function-declaration]
  182 |                                         msgWrites(gp,buf,new);
      |                                         ^~~~~~~~~
server.c:196:41: warning: implicit declaration of function 'optprot' [-Wimplicit-function-declaration]
  196 |                                         optprot(gp,new,name[0],name+1);
      |                                         ^~~~~~~
server.c:205:37: warning: implicit declaration of function 'talk_pg' [-Wimplicit-function-declaration]
  205 |                                 if (talk_pg(gp,j)) {
      |                                     ^~~~~~~
server.c:255:25: warning: implicit declaration of function 'game' [-Wimplicit-function-declaration]
  255 |                         game(gp);
      |                         ^~~~
server.c:262:33: warning: implicit declaration of function 'after_game' [-Wimplicit-function-declaration]
  262 |                                 after_game(gp);
      |                                 ^~~~~~~~~~
server.c: At top level:
server.c:278:1: warning: return type defaults to 'int' [-Wimplicit-int]
  278 | talk_pg(gp,from) global_t *gp; {
      | ^~~~~~~
server.c: In function 'talk_pg':
server.c:278:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int]
server.c:284:17: warning: implicit declaration of function 'talk' [-Wimplicit-function-declaration]
  284 |                 talk(gp,from,buf+strlen(MSG_COMMENTX));
      |                 ^~~~
server.c:286:17: warning: implicit declaration of function 'runauto' [-Wimplicit-function-declaration]
  286 |                 runauto(buf+4);
      |                 ^~~~~~~
server.c: At top level:
server.c:293:1: warning: return type defaults to 'int' [-Wimplicit-int]
  293 | runauto(buf) char *buf; {
      | ^~~~~~~
server.c:308:1: warning: return type defaults to 'int' [-Wimplicit-int]
  308 | talk(gp,from,msg) global_t *gp; char *msg; {
      | ^~~~
server.c: In function 'talk':
server.c:308:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int]
server.c: At top level:
server.c:354:1: warning: return type defaults to 'int' [-Wimplicit-int]
  354 | msgSelect(gp,time_out) global_t *gp; int time_out; {
      | ^~~~~~~~~
server.c:358:1: warning: return type defaults to 'int' [-Wimplicit-int]
  358 | msgIsRead(gp,p) global_t *gp; {
      | ^~~~~~~~~
server.c: In function 'msgIsRead':
server.c:358:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
server.c: At top level:
server.c:362:1: warning: return type defaults to 'int' [-Wimplicit-int]
  362 | optprot(gp,from,opt,msg) global_t *gp; char *msg; {
      | ^~~~~~~
server.c: In function 'optprot':
server.c:362:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int]
server.c:362:1: warning: type of 'opt' defaults to 'int' [-Wimplicit-int]
server.c: At top level:
server.c:390:1: warning: return type defaults to 'int' [-Wimplicit-int]
  390 | after_game(gp) global_t *gp; {
      | ^~~~~~~~~~
*** [server.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/games/netmaj/work/netmaj
bmake: 3 errors

bmake: stopped making "all" in /home/pbulk/build/games/netmaj/work/netmaj
*** Error code 2

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

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/netmaj