+ 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.7nb14/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/netmaj-2.0.7nb14/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for netmaj-2.0.7nb14 --- server.o --- --- ss.o --- --- global.o --- --- mt.o --- --- rv.o --- --- hand.o --- --- ahand.o --- --- result.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 -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 -I/opt/pkg/include/ncurses -c ss.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 -I/opt/pkg/include/ncurses -c mt.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 -I/opt/pkg/include/ncurses -c global.c --- rv.o --- cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include -I/opt/pkg/include/ncurses -c rv.c --- hand.o --- cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include -I/opt/pkg/include/ncurses -c hand.c --- ahand.o --- cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include -I/opt/pkg/include/ncurses -c ahand.c --- result.o --- cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -I/opt/pkg/include -I/opt/pkg/include/ncurses -c result.c --- hand.o --- In file included from hand.c:24: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, from ss.h:34, from global.h:24, from hand.c:25: /usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' was here 153 | extern int rand(void); | ^~~~ --- global.o --- In file included from global.c:26: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, 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' was here 153 | extern int rand(void); | ^~~~ --- result.o --- In file included from result.c:24: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, from ss.h:34, from global.h:24, from result.c:25: /usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' was here 153 | extern int rand(void); | ^~~~ --- server.o --- In file included from server.c:29: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, 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' was here 153 | extern int rand(void); | ^~~~ --- ahand.o --- In file included from ahand.c:24: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, from ss.h:34, from global.h:24, from ahand.c:26: /usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' was here 153 | extern int rand(void); | ^~~~ --- mt.o --- In file included from mt.c:24: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, 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' was here 153 | extern int rand(void); | ^~~~ --- rv.o --- In file included from rv.c:24: pai.h:22:17: error: conflicting types for 'rand' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:40, from ss.h:34, from global.h:24, from rv.c:25: /usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' was here 153 | extern int rand(void); | ^~~~ --- ss.o --- ss.c: In function '_sock_free': ss.c:57:2: 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:3: 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; { | ^~~~~~~~~ --- global.o --- global.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] 39 | global_init(gp) global_t *gp; { | ^~~~~~~~~~~ --- ss.o --- ss.c: In function 'SockGets': ss.c:173:8: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration] 173 | r = read(sp->sd, sp->rbuf, SSS_BUFSIZE); | ^~~~ | readv --- hand.o --- hand.c:28:1: warning: return type defaults to 'int' [-Wimplicit-int] 28 | hand_new(gp) global_t *gp; { | ^~~~~~~~ --- ss.o --- ss.c: In function 'SockWrites': ss.c:191:6: 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; { | ^~~~~~~~~~ --- global.o --- global.c: In function 'global_init': global.c:40:2: warning: implicit declaration of function 'set_pplayer' [-Wimplicit-function-declaration] 40 | set_pplayer(gp); | ^~~~~~~~~~~ global.c:42:2: warning: implicit declaration of function 'mt_new'; did you mean 'mt_next'? [-Wimplicit-function-declaration] 42 | mt_new(gp); | ^~~~~~ | mt_next global.c:43:2: warning: implicit declaration of function 'rv_new' [-Wimplicit-function-declaration] 43 | rv_new(gp); | ^~~~~~ --- hand.o --- hand.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] 45 | hand_sort(gp,p) global_t *gp; { | ^~~~~~~~~ hand.c: In function 'hand_sort': hand.c:45:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] 58 | hand_insert(gp,p,c) global_t *gp; { | ^~~~~~~~~~~ hand.c: In function 'hand_insert': hand.c:58:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:58:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int] 64 | hand_delete(gp,p,c,sort) global_t *gp; pai_t c; { | ^~~~~~~~~~~ hand.c: In function 'hand_delete': hand.c:64:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:64:1: warning: type of 'sort' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int] 82 | hand_delete_kind(gp,p,c,sort) global_t *gp; pai_t c; { | ^~~~~~~~~~~~~~~~ hand.c: In function 'hand_delete_kind': hand.c:82:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:82:1: warning: type of 'sort' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:106:1: warning: return type defaults to 'int' [-Wimplicit-int] 106 | hand_find(gp,p,pc) global_t *gp; pai_t pc; { | ^~~~~~~~~ hand.c: In function 'hand_find': hand.c:106:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int] 123 | hand_find_kind(gp,p,c) global_t *gp; pai_t c; { | ^~~~~~~~~~~~~~ hand.c: In function 'hand_find_kind': hand.c:123:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c: In function 'hand_tie': hand.c:141:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] 141 | hand_tie(gp,p,pc,how) global_t *gp; { | ^~~~~~~~ hand.c:141:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c:141:1: warning: type of 'how' defaults to 'int' [-Wimplicit-int] hand.c: In function 'hand_pon': hand.c:174:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] 174 | hand_pon(gp,p,pc,from) global_t *gp; { | ^~~~~~~~ hand.c:174:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c:174:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int] hand.c: In function 'hand_kan': hand.c:198:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] 198 | hand_kan(gp,p,pc,from) global_t *gp; { | ^~~~~~~~ --- result.o --- result.c:35:8: warning: type defaults to 'int' in declaration of 'result_clear_genyakus' [-Wimplicit-int] 35 | static result_clear_genyakus(); | ^~~~~~~~~~~~~~~~~~~~~ --- hand.o --- hand.c:198:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c:198:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int] --- result.o --- result.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] 38 | result_new(gp) global_t *gp; { | ^~~~~~~~~~ --- hand.o --- hand.c: At top level: hand.c:236:1: warning: return type defaults to 'int' [-Wimplicit-int] 236 | hand_can_tie(gp,p,pc,how) global_t *gp; { | ^~~~~~~~~~~~ hand.c: In function 'hand_can_tie': hand.c:236:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:236:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c:236:1: warning: type of 'how' defaults to 'int' [-Wimplicit-int] --- server.o --- server.c:72:1: warning: return type defaults to 'int' [-Wimplicit-int] 72 | main(argc,argv) | ^~~~ server.c: In function 'main': server.c:129:2: warning: implicit declaration of function 'pf_init' [-Wimplicit-function-declaration] 129 | pf_init(gp,"server",argv[0]); | ^~~~~~~ server.c:130:2: warning: implicit declaration of function 'rule_init' [-Wimplicit-function-declaration] 130 | rule_init(gp); | ^~~~~~~~~ --- global.o --- global.c:44:2: warning: implicit declaration of function 'hand_new' [-Wimplicit-function-declaration] 44 | hand_new(gp); | ^~~~~~~~ global.c:45:2: warning: implicit declaration of function 'result_new'; did you mean 'result'? [-Wimplicit-function-declaration] 45 | result_new(gp); | ^~~~~~~~~~ | 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; { | ^~~~~~~~~~~~ --- hand.o --- hand.c: At top level: hand.c:269:1: warning: return type defaults to 'int' [-Wimplicit-int] 269 | hand_can_tiex(gp,p,pc) global_t *gp; { | ^~~~~~~~~~~~~ hand.c: In function 'hand_can_tiex': hand.c:269:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:269:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:276:1: warning: return type defaults to 'int' [-Wimplicit-int] 276 | hand_can_pon(gp,p,pc) global_t *gp; { | ^~~~~~~~~~~~ hand.c: In function 'hand_can_pon': hand.c:276:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:276:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:282:1: warning: return type defaults to 'int' [-Wimplicit-int] 282 | hand_can_kan(gp,p,pc) global_t *gp; { | ^~~~~~~~~~~~ hand.c: In function 'hand_can_kan': hand.c:282:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:282:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] --- result.o --- result.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] 45 | result_check_sufurenta(gp) global_t *gp; { | ^~~~~~~~~~~~~~~~~~~~~~ result.c:63:1: warning: return type defaults to 'int' [-Wimplicit-int] 63 | result_check_nagasimangan(gp,p) global_t *gp; int p; { | ^~~~~~~~~~~~~~~~~~~~~~~~~ result.c:76:1: warning: return type defaults to 'int' [-Wimplicit-int] 76 | result_calc_nagasimangan(gp,p,yp) global_t *gp; int p; result_t *yp; { | ^~~~~~~~~~~~~~~~~~~~~~~~ result.c:94:1: warning: return type defaults to 'int' [-Wimplicit-int] 94 | result_check_kyushukyupai(gp) global_t *gp; { | ^~~~~~~~~~~~~~~~~~~~~~~~~ result.c: In function 'result_check_kyushukyupai': result.c:104:9: warning: implicit declaration of function 'hand_check_kyushukyupai'; did you mean 'result_check_kyushukyupai'? [-Wimplicit-function-declaration] 104 | return hand_check_kyushukyupai(gp,cur_player); | ^~~~~~~~~~~~~~~~~~~~~~~ | result_check_kyushukyupai --- hand.o --- hand.c: At top level: hand.c:298:1: warning: return type defaults to 'int' [-Wimplicit-int] 298 | hand_can_kanx(gp,p) global_t *gp; { | ^~~~~~~~~~~~~ hand.c: In function 'hand_can_kanx': hand.c:298:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:312:1: warning: return type defaults to 'int' [-Wimplicit-int] 312 | hand_check_kyushukyupai(gp,p) global_t *gp; { | ^~~~~~~~~~~~~~~~~~~~~~~ hand.c: In function 'hand_check_kyushukyupai': hand.c:312:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:328:1: warning: return type defaults to 'int' [-Wimplicit-int] 328 | hand_check_kuikae(gp,p,pc) global_t *gp; { | ^~~~~~~~~~~~~~~~~ hand.c: In function 'hand_check_kuikae': hand.c:328:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] hand.c:328:1: warning: type of 'pc' defaults to 'int' [-Wimplicit-int] hand.c: At top level: hand.c:367:1: warning: return type defaults to 'int' [-Wimplicit-int] --- result.o --- result.c: At top level: result.c:107:1: warning: return type defaults to 'int' [-Wimplicit-int] 107 | result_check_sukan(gp) global_t *gp; { | ^~~~~~~~~~~~~~~~~~ result.c: In function 'result_calc': result.c:131:8: warning: implicit declaration of function 'result_calc_yaku'; did you mean 'result_calc'? [-Wimplicit-function-declaration] 131 | if (result_calc_yaku(gp,pp[0],yr) > 0) { | ^~~~~~~~~~~~~~~~ | result_calc --- hand.o --- 367 | hand_check_pao(gp,p) global_t *gp; { | ^~~~~~~~~~~~~~ hand.c: In function 'hand_check_pao': hand.c:367:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] --- global.o --- global.c: In function 'send_newgame': global.c:59:3: 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; { | ^~~~~~~~~~~~ global.c:80:1: warning: return type defaults to 'int' [-Wimplicit-int] 80 | send_newplay(gp) global_t *gp; { | ^~~~~~~~~~~~ --- result.o --- result.c:136:6: warning: implicit declaration of function 'calc_tumibo' [-Wimplicit-function-declaration] 136 | calc_tumibo(gp,&result[0],-1); | ^~~~~~~~~~~ --- server.o --- server.c:131:2: warning: implicit declaration of function 'pack_rule' [-Wimplicit-function-declaration] 131 | pack_rule(&rule); | ^~~~~~~~~ --- result.o --- result.c:150:5: warning: implicit declaration of function 'result_set_cyonbo' [-Wimplicit-function-declaration] 150 | result_set_cyonbo(gp,*pp,0); | ^~~~~~~~~~~~~~~~~ result.c: At top level: result.c:207:1: warning: return type defaults to 'int' [-Wimplicit-int] 207 | calc_tumibo(gp,yr,furi) global_t *gp; result_t *yr; { | ^~~~~~~~~~~ result.c: In function 'calc_tumibo': result.c:207:1: warning: type of 'furi' defaults to 'int' [-Wimplicit-int] --- global.o --- global.c:89:1: warning: return type defaults to 'int' [-Wimplicit-int] 89 | send_endplay(gp) global_t *gp; { | ^~~~~~~~~~~~ --- result.o --- result.c: In function 'result_calc_ryukyoku': result.c:227:3: warning: implicit declaration of function 'ah_new' [-Wimplicit-function-declaration] 227 | ah_new(&at,&hand[i],-1); | ^~~~~~ --- global.o --- global.c:98:1: warning: return type defaults to 'int' [-Wimplicit-int] 98 | send_dora(gp) global_t *gp; { | ^~~~~~~~~ --- server.o --- server.c:182:6: warning: implicit declaration of function 'msgWrites' [-Wimplicit-function-declaration] 182 | msgWrites(gp,buf,new); | ^~~~~~~~~ --- mt.o --- 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] --- result.o --- result.c:228:3: warning: implicit declaration of function 'ah_analize' [-Wimplicit-function-declaration] 228 | ah_analize(&at,0); | ^~~~~~~~~~ --- server.o --- server.c:196:6: warning: implicit declaration of function 'optprot' [-Wimplicit-function-declaration] 196 | optprot(gp,new,name[0],name+1); | ^~~~~~~ --- global.o --- global.c: In function 'send_dora': global.c:103:10: warning: implicit declaration of function 'mt_dora'; did you mean 'ch_dora'? [-Wimplicit-function-declaration] 103 | x[i] = mt_dora(gp,i); | ^~~~~~~ | ch_dora --- result.o --- result.c: At top level: result.c:273:1: warning: return type defaults to 'int' [-Wimplicit-int] 273 | result_calc_yaku(gp,p,yr) global_t *gp; int p; result_t *yr; { | ^~~~~~~~~~~~~~~~ --- mt.o --- 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] 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] --- ahand.o --- ahand.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] 37 | ah_new(a,h,rm) ahand_t *a; hand_t *h; { | ^~~~~~ ahand.c: In function 'ah_new': ahand.c:37:1: warning: type of 'rm' defaults to 'int' [-Wimplicit-int] --- result.o --- result.c: In function 'result_calc_yaku': --- mt.o --- mt.c:66:1: warning: type of 'v' defaults to 'int' [-Wimplicit-int] --- server.o --- server.c:205:9: warning: implicit declaration of function 'talk_pg' [-Wimplicit-function-declaration] 205 | if (talk_pg(gp,j)) { | ^~~~~~~ --- global.o --- global.c:104:3: 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; { | ^~~~~~~~~~~~ --- mt.o --- 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; { | ^~~~~~~ --- result.o --- result.c:285:6: warning: implicit declaration of function 'result_check_furiten'; did you mean 'result_check_sukan'? [-Wimplicit-function-declaration] 285 | if (result_check_furiten(gp,p,yr)) return 0; | ^~~~~~~~~~~~~~~~~~~~ | result_check_sukan --- server.o --- server.c:255:4: warning: implicit declaration of function 'game' [-Wimplicit-function-declaration] 255 | game(gp); | ^~~~ --- global.o --- global.c: In function 'send_uradora': global.c:116:10: warning: implicit declaration of function 'mt_uradora'; did you mean 'send_uradora'? [-Wimplicit-function-declaration] 116 | x[i] = mt_uradora(gp,i); | ^~~~~~~~~~ | send_uradora --- mt.o --- mt.c: In function 'mt_make': mt.c:100:24: warning: implicit declaration of function 'mt_push' [-Wimplicit-function-declaration] 100 | for (i=0; i<256; i++) mt_push(gp,i,0); | ^~~~~~~ --- rv.o --- rv.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int] 27 | rv_new(gp) global_t *gp; { | ^~~~~~ --- ahand.o --- ahand.c:68:2: warning: implicit declaration of function 'ah_sort'; did you mean 'qsort'? [-Wimplicit-function-declaration] 68 | ah_sort(a); | ^~~~~~~ | qsort --- result.o --- result.c:292:8: warning: implicit declaration of function 'result_calc_from_ahand' [-Wimplicit-function-declaration] 292 | if (!result_calc_from_ahand(gp,p,&y,&(result_ahand[i]))) | ^~~~~~~~~~~~~~~~~~~~~~ --- mt.o --- 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; { | ^~~~~~~~~ --- result.o --- result.c:294:3: warning: implicit declaration of function 'result_calc_from_hand' [-Wimplicit-function-declaration] 294 | result_calc_from_hand(gp,p,&y); | ^~~~~~~~~~~~~~~~~~~~~ --- global.o --- global.c: At top level: global.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] 124 | send_river(gp) global_t *gp; { | ^~~~~~~~~~ --- mt.o --- 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] --- ahand.o --- ahand.c: At top level: ahand.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int] 86 | ah_remove(a,i) ahand_t *a; { | ^~~~~~~~~ --- mt.o --- mt.c: At top level: --- ahand.o --- ahand.c: In function 'ah_remove': ahand.c:86:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int] --- mt.o --- mt.c:140:1: warning: return type defaults to 'int' [-Wimplicit-int] 140 | mt_rest_kind(gp,p) global_t *gp; pai_t p; { | ^~~~~~~~~~~~ --- ahand.o --- ahand.c: At top level: ahand.c:93:1: warning: return type defaults to 'int' [-Wimplicit-int] 93 | ah_index(a,pai) ahand_t *a; { | ^~~~~~~~ ahand.c: In function 'ah_index': ahand.c:93:1: warning: type of 'pai' defaults to 'int' [-Wimplicit-int] --- rv.o --- rv.c:44:1: warning: return type defaults to 'int' [-Wimplicit-int] 44 | rv_push(gp,to) global_t *gp; { | ^~~~~~~ rv.c: In function 'rv_push': rv.c:44:1: warning: type of 'to' defaults to 'int' [-Wimplicit-int] --- ahand.o --- ahand.c: At top level: ahand.c:103:1: warning: return type defaults to 'int' [-Wimplicit-int] 103 | ah_sort(a) ahand_t *a; { | ^~~~~~~ --- server.o --- server.c:262:5: warning: implicit declaration of function 'after_game' [-Wimplicit-function-declaration] 262 | after_game(gp); | ^~~~~~~~~~ --- global.o --- global.c:152:1: warning: return type defaults to 'int' [-Wimplicit-int] 152 | send_result(gp) global_t *gp; { | ^~~~~~~~~~~ --- result.o --- result.c:295:9: warning: implicit declaration of function 'result_calc_point'; did you mean 'result_calc_yaku'? [-Wimplicit-function-declaration] 295 | ret = result_calc_point(gp,p,&y); | ^~~~~~~~~~~~~~~~~ | result_calc_yaku --- server.o --- 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] --- rv.o --- rv.c: At top level: rv.c:61:1: warning: return type defaults to 'int' [-Wimplicit-int] 61 | rv_find_player(gp,p) global_t *gp; river_t *p; { | ^~~~~~~~~~~~~~ rv.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int] 66 | rv_find_cur(gp,p) global_t *gp; river_t *p; { | ^~~~~~~~~~~ --- server.o --- server.c:284:3: warning: implicit declaration of function 'talk' [-Wimplicit-function-declaration] 284 | talk(gp,from,buf+strlen(MSG_COMMENTX)); | ^~~~ --- global.o --- global.c: In function 'send_result': global.c:162:3: 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] --- ahand.o --- ahand.c:209:1: warning: return type defaults to 'int' [-Wimplicit-int] 209 | ah_analize(a,from) ahand_t *a; { | ^~~~~~~~~~ ahand.c: In function 'ah_analize': ahand.c:209:1: warning: type of 'from' defaults to 'int' [-Wimplicit-int] --- server.o --- server.c:286:3: warning: implicit declaration of function 'runauto' [-Wimplicit-function-declaration] 286 | runauto(buf+4); | ^~~~~~~ --- global.o --- 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] --- result.o --- result.c: In function 'result_check_furiten': --- server.o --- server.c: At top level: server.c:293:1: warning: return type defaults to 'int' [-Wimplicit-int] 293 | runauto(buf) char *buf; { | ^~~~~~~ --- global.o --- 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] --- result.o --- result.c:347:15: warning: implicit declaration of function 'rv_find_player' [-Wimplicit-function-declaration] 347 | while (rp && rv_find_player(gp,rp) != p) { | ^~~~~~~~~~~~~~ result.c: In function 'result_calc_from_ahand': result.c:367:5: warning: type of 'p' defaults to 'int' [-Wimplicit-int] 367 | int result_calc_from_ahand(gp,p,yp,ap) global_t *gp; result_t *yp; ahand_t *ap; { | ^~~~~~~~~~~~~~~~~~~~~~ --- global.o --- global.c:213:1: warning: type of 'j' defaults to 'int' [-Wimplicit-int] --- server.o --- 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] --- global.o --- 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; { | ^~~~~~~~~~~~ --- server.o --- server.c: At top level: server.c:390:1: warning: return type defaults to 'int' [-Wimplicit-int] 390 | after_game(gp) global_t *gp; { | ^~~~~~~~~~ --- result.o --- result.c:440:10: warning: implicit declaration of function 'fu_calc_koutu' [-Wimplicit-function-declaration] 440 | fu += fu_calc_koutu(ap->part[i][0],1); | ^~~~~~~~~~~~~ --- global.o --- global.c: In function 'recv_message': global.c:321:3: 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 global.c:334:4: warning: implicit declaration of function 'mt_setdora' [-Wimplicit-function-declaration] 334 | mt_setdora(gp,i,x[i]); | ^~~~~~~~~~ --- result.o --- result.c: In function 'fu_calc_koutu': result.c:596:5: warning: type of 'pai' defaults to 'int' [-Wimplicit-int] 596 | int fu_calc_koutu(pai,shift) { | ^~~~~~~~~~~~~ result.c:596:5: warning: type of 'shift' defaults to 'int' [-Wimplicit-int] result.c: In function 'fu_calc_head': result.c:603:12: warning: type of 'pk' defaults to 'int' [-Wimplicit-int] 603 | static int fu_calc_head(gp,pk,p) global_t *gp; { | ^~~~~~~~~~~~ result.c:603:12: warning: type of 'p' defaults to 'int' [-Wimplicit-int] result.c: In function 'find_kind': result.c:615:12: warning: type of 'kind' defaults to 'int' [-Wimplicit-int] 615 | static int find_kind(kind,buf,n) int *buf; { | ^~~~~~~~~ result.c:615:12: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- hand.o --- *** [hand.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- rv.o --- *** [rv.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- global.o --- global.c:341:4: warning: implicit declaration of function 'mt_seturadora' [-Wimplicit-function-declaration] 341 | mt_seturadora(gp,i,x[i]); | ^~~~~~~~~~~~~ --- mt.o --- *** [mt.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- global.o --- global.c:345:21: 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:6: warning: implicit declaration of function 'rv_push' [-Wimplicit-function-declaration] 354 | rv_push(gp,i); | ^~~~~~~ --- result.o --- result.c: In function 'result_calc_from_hand': result.c:683:6: warning: implicit declaration of function 'mt_rest'; did you mean 'mt_next'? [-Wimplicit-function-declaration] 683 | if (mt_rest(gp) == 0) yp->haitei = 1; | ^~~~~~~ | mt_next --- global.o --- global.c:364:5: warning: implicit declaration of function 'hand_delete' [-Wimplicit-function-declaration] 364 | hand_delete(gp,vself,rvp->out,1); | ^~~~~~~~~~~ --- result.o --- result.c:785:9: warning: implicit declaration of function 'mt_dora'; did you mean 'ch_dora'? [-Wimplicit-function-declaration] 785 | if (k=mt_dora(gp,i)) yp->dora += kindsr[K_NEXT(P_KIND(k))]; | ^~~~~~~ | ch_dora --- global.o --- global.c:468:3: warning: implicit declaration of function 'result_cvt_from_int' [-Wimplicit-function-declaration] 468 | result_cvt_from_int(&y,x); | ^~~~~~~~~~~~~~~~~~~ --- result.o --- result.c:788:9: warning: implicit declaration of function 'mt_uradora' [-Wimplicit-function-declaration] 788 | if (k=mt_uradora(gp,i)) | ^~~~~~~~~~ result.c: At top level: result.c:793:1: warning: return type defaults to 'int' [-Wimplicit-int] 793 | result_calc_point(gp,p,yp) global_t *gp; result_t *yp; { | ^~~~~~~~~~~~~~~~~ result.c: In function 'result_calc_point': result.c:793:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] --- ahand.o --- *** [ahand.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- global.o --- global.c:469:3: 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; { | ^~~~~~~~~~~ --- result.o --- result.c:898:17: warning: implicit declaration of function 'hand_check_pao' [-Wimplicit-function-declaration] 898 | if ((yp->pao=hand_check_pao(gp,p))>=0) { | ^~~~~~~~~~~~~~ --- server.o --- *** [server.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- result.o --- result.c: At top level: result.c:943:8: warning: return type defaults to 'int' [-Wimplicit-int] 943 | static result_clear_genyakus(yp) result_t *yp; { | ^~~~~~~~~~~~~~~~~~~~~ result.c:980:1: warning: return type defaults to 'int' [-Wimplicit-int] 980 | result_set_cyonbo(gp,p,n) global_t *gp; { | ^~~~~~~~~~~~~~~~~ result.c: In function 'result_set_cyonbo': result.c:980:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] result.c:980:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] result.c: At top level: result.c:999:1: warning: return type defaults to 'int' [-Wimplicit-int] 999 | result_set_who(y) result_t *y; { | ^~~~~~~~~~~~~~ result.c:1024:1: warning: return type defaults to 'int' [-Wimplicit-int] 1024 | reach_can_kan(gp,p,pai) global_t *gp; { | ^~~~~~~~~~~~~ result.c: In function 'reach_can_kan': result.c:1024:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] result.c:1024:1: warning: type of 'pai' defaults to 'int' [-Wimplicit-int] result.c:1028:9: warning: implicit declaration of function 'hand_can_kan'; did you mean 'reach_can_kan'? [-Wimplicit-function-declaration] 1028 | if (hand_can_kan(gp,p,pai) != 3) return 0; | ^~~~~~~~~~~~ | reach_can_kan --- global.o --- *** [global.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj --- result.o --- *** [result.o] Error code 1 bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj 7 errors bmake: stopped in /home/pbulk/build/games/netmaj/work/netmaj *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/games/netmaj *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/games/netmaj