=> 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 --- --- server.o --- cc -I. -Ilib -DNETMAJ_LIB=\"/opt/pkg/lib/netmaj\" -DHAVE_GETTIMEOFDAY -DUSE_SGTTY -DSYSV -DUSE_RAND -DNO_KEYPAD -D_XOPEN_SOURCE_EXTENDED=1 -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 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -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 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include -I/opt/pkg/include/ncurses -c global.c --- server.o --- In file included from server.c:30: In file included from ./global.h:24: In file included from ./ss.h:34: /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdlib.h:228:7: error: conflicting types for 'rand' long random(void) __swift_unavailable("Use arc4random instead."); ^ ./pai.h:22:17: note: expanded from macro 'random' #define random rand ^ --- global.o --- In file included from global.c:27: In file included from ./global.h:24: In file included from ./ss.h:34: /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdlib.h:228:7: error: conflicting types for 'rand' long random(void) __swift_unavailable("Use arc4random instead."); ^ ./pai.h:22:17: note: expanded from macro 'random' #define random rand ^ --- server.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdlib.h:162:6: note: previous declaration is here int rand(void) __swift_unavailable("Use arc4random instead."); ^ --- global.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdlib.h:162:6: note: previous declaration is here int rand(void) __swift_unavailable("Use arc4random instead."); ^ --- ss.o --- ss.c:34:18: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static SOCKETIO *_sock_alloc(sd) int sd; { ^ ss.c:57:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sp->sd); ^ ss.c:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void _sock_free(sp) SOCKETIO *sp; { ^ ss.c:60:11: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SOCKETIO *ServerSock(port) int port; { ^ ss.c:80:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sd); ^ ss.c:85:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sd); ^ --- global.o --- In file included from global.c:27: ./global.h:37:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] #define bcopy(s,d,n) memcpy(d,s,n) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here #define bcopy(src, dest, ...) \ ^ In file included from global.c:27: ./global.h:38:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(d,n) memset(d,0,n) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- server.o --- In file included from server.c:30: ./global.h:37:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] #define bcopy(s,d,n) memcpy(d,s,n) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here #define bcopy(src, dest, ...) \ ^ In file included from server.c:30: ./global.h:38:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(d,n) memset(d,0,n) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- global.o --- global.c:39:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] global_init(gp) global_t *gp; { ^ global.c:40:2: warning: call to undeclared function 'set_pplayer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] set_pplayer(gp); ^ global.c:42:2: warning: call to undeclared function 'mt_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_new(gp); ^ global.c:43:2: warning: call to undeclared function 'rv_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rv_new(gp); ^ global.c:44:2: warning: call to undeclared function 'hand_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hand_new(gp); ^ global.c:45:2: warning: call to undeclared function 'result_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] result_new(gp); ^ global.c:39:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] global_init(gp) global_t *gp; { ^ global.c:48:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_newgame(gp) global_t *gp; { ^ --- server.o --- server.c:72:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc,argv) ^ server.c:129:2: warning: call to undeclared function 'pf_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pf_init(gp,"server",argv[0]); ^ server.c:130:2: warning: call to undeclared function 'rule_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rule_init(gp); ^ server.c:131:2: warning: call to undeclared function 'pack_rule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pack_rule(&rule); --- global.o --- global.c:59:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:48:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_newgame(gp) global_t *gp; { ^ global.c:62:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_endgame(gp,order) global_t *gp; int *order; { ^ global.c:76:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:62:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_endgame(gp,order) global_t *gp; int *order; { ^ --- server.o --- ^ --- global.o --- global.c:80:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_newplay(gp) global_t *gp; { ^ global.c:86:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:80:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_newplay(gp) global_t *gp; { ^ global.c:89:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_endplay(gp) global_t *gp; { ^ global.c:95:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:89:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_endplay(gp) global_t *gp; { ^ global.c:98:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_dora(gp) global_t *gp; { ^ global.c:103:10: warning: call to undeclared function 'mt_dora'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] x[i] = mt_dora(gp,i); ^ global.c:104:3: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[i],0); ^ global.c:108:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:98:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_dora(gp) global_t *gp; { ^ global.c:111:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_uradora(gp) global_t *gp; { ^ global.c:116:10: warning: call to undeclared function 'mt_uradora'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] x[i] = mt_uradora(gp,i); ^ global.c:117:3: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[i],0); ^ global.c:121:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:111:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_uradora(gp) global_t *gp; { ^ global.c:124:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_river(gp) global_t *gp; { ^ global.c:145:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,pp); ^ global.c:147:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf_masked,pp); ^ global.c:124:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_river(gp) global_t *gp; { ^ global.c:152:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_result(gp) global_t *gp; { ^ global.c:162:3: warning: call to undeclared function 'result_cvt_to_int'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] result_cvt_to_int(yp,iy); ^ global.c:169:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:152:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_result(gp) global_t *gp; { ^ global.c:173:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_riverin(gp,p) global_t *gp; { ^ global.c:190:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:173:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_riverin(gp,p) global_t *gp; { ^ global.c:194:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_hand_closed(gp,p) global_t *gp; { ^ --- server.o --- server.c:166:17: warning: passing arguments to 'msgGets' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!msgGets(gp,buf,sizeof(buf)-1,new)) { ^ --- global.o --- global.c:209:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:194:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_hand_closed(gp,p) global_t *gp; { ^ global.c:213:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_hand_opened(gp,p,j) global_t *gp; { ^ global.c:228:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[a],0); ^ global.c:231:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:213:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_hand_opened(gp,p,j) global_t *gp; { ^ global.c:250:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_inithand(gp,p) global_t *gp; { ^ global.c:262:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:250:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_inithand(gp,p) global_t *gp; { ^ global.c:266:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] send_point(gp) global_t *gp; { ^ global.c:281:3: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ global.c:266:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_point(gp) global_t *gp; { ^ global.c:284:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] recv_message(gp,buf) global_t *gp; char *buf; { ^ --- server.o --- server.c:182:6: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,new); ^ server.c:196:6: warning: call to undeclared function 'optprot'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] optprot(gp,new,name[0],name+1); ^ server.c:205:9: warning: call to undeclared function 'talk_pg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (talk_pg(gp,j)) { ^ server.c:217:7: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,k); ^ --- global.o --- global.c:318:3: warning: call to undeclared function 'set_pplayer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] set_pplayer(gp); ^ global.c:320:3: warning: call to undeclared function 'mt_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_new(gp); ^ global.c:321:3: warning: call to undeclared function 'mt_next_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_next_new(gp); ^ global.c:322:3: warning: call to undeclared function 'rv_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rv_new(gp); ^ global.c:323:3: warning: call to undeclared function 'hand_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hand_new(gp); ^ global.c:324:3: warning: call to undeclared function 'result_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] result_new(gp); ^ global.c:333:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[i],0); ^ global.c:334:4: warning: call to undeclared function 'mt_setdora'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_setdora(gp,i,x[i]); ^ global.c:340:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[i],0); ^ global.c:341:4: warning: call to undeclared function 'mt_seturadora'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_seturadora(gp,i,x[i]); ^ global.c:345:21: warning: call to undeclared function 'rv_find_player'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (rvp) ch_river[rv_find_player(gp,rvp)] = 1; ^ global.c:354:6: warning: call to undeclared function 'rv_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rv_push(gp,i); ^ global.c:355:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,rvp->out, ^ global.c:364:5: warning: call to undeclared function 'hand_delete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hand_delete(gp,vself,rvp->out,1); ^ global.c:386:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[j],0); ^ global.c:403:4: warning: call to undeclared function 'mt_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mt_push(gp,x[k],0); ^ global.c:432:3: warning: call to undeclared function 'rv_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rv_push(gp,vself); ^ global.c:459:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p=index(comment_body,'\n')) *p = 0; ~^~~~~~~~~~~~~~~~~~~~~~~~~ --- ss.o --- ss.c:91:11: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SOCKETIO *AcceptSock(ssp) SOCKETIO *ssp; { ^ --- global.o --- global.c:459:8: note: place parentheses around the assignment to silence this warning if (p=index(comment_body,'\n')) *p = 0; ^ ( ) global.c:459:8: note: use '==' to turn this assignment into an equality comparison if (p=index(comment_body,'\n')) *p = 0; ^ == global.c:468:3: warning: call to undeclared function 'result_cvt_from_int'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] result_cvt_from_int(&y,x); ^ global.c:469:3: warning: call to undeclared function 'result_set_who'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] result_set_who(&y); ^ global.c:284:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] recv_message(gp,buf) global_t *gp; char *buf; { ^ global.c:494:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] set_pplayer(gp) global_t *gp; { ^ global.c:494:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 79 warnings and 1 error generated. --- server.o --- server.c:227:56: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] fprintf(log_server,"start at %d with %s %s %s %s\n",time(0) ~~ ^~~~~~~ %ld server.c:255:4: warning: call to undeclared function 'game'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] game(gp); ^ server.c:262:5: warning: call to undeclared function 'after_game'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] after_game(gp); ^ server.c:72:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc,argv) ^ server.c:278:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] talk_pg(gp,from) global_t *gp; { ^ server.c:282:14: warning: passing arguments to 'msgGets' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!msgGets(gp,buf,sizeof(buf)-1,from)) return -1; ^ server.c:284:3: warning: call to undeclared function 'talk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] talk(gp,from,buf+strlen(MSG_COMMENTX)); ^ server.c:286:3: warning: call to undeclared function 'runauto'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] runauto(buf+4); ^ server.c:288:3: warning: call to undeclared function 'optprot'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] optprot(gp,from,msg[0],msg+1); --- ss.o --- ss.c:94:45: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] sd = accept(ssp->sd, (struct sockaddr *)0, (int *)0); ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- server.o --- ^ server.c:278:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] talk_pg(gp,from) global_t *gp; { ^ server.c:293:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] runauto(buf) char *buf; { ^ server.c:297:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p=rindex(buf,'\n')) *p = 0; ~^~~~~~~~~~~~~~~~~ server.c:297:7: note: place parentheses around the assignment to silence this warning if (p=rindex(buf,'\n')) *p = 0; ^ ( ) server.c:297:7: note: use '==' to turn this assignment into an equality comparison if (p=rindex(buf,'\n')) *p = 0; ^ == server.c:293:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] runauto(buf) char *buf; { ^ server.c:308:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] talk(gp,from,msg) global_t *gp; char *msg; { ^ server.c:313:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p=index(msg,'\n')) *p = 0; ~^~~~~~~~~~~~~~~~ server.c:313:7: note: place parentheses around the assignment to silence this warning if (p=index(msg,'\n')) *p = 0; ^ ( ) server.c:313:7: note: use '==' to turn this assignment into an equality comparison if (p=index(msg,'\n')) *p = 0; ^ == server.c:317:4: warning: call to undeclared function 'msgWrites'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] msgWrites(gp,buf,i); ^ server.c:308:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] talk(gp,from,msg) global_t *gp; char *msg; { ^ server.c:335:5: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int msgWrites(gp,buf,p) global_t *gp; char *buf; int p; { ^ server.c:54:7: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *msgGets(); ^ void server.c:344:7: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *msgGets(gp,buf,len,p) global_t *gp; char *buf; int len; int p; { ^ server.c:354:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] msgSelect(gp,time_out) global_t *gp; int time_out; { ^ --- ss.o --- ss.c:101:11: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SOCKETIO *ConnectSock(host, port) char *host; int port; { ^ --- server.o --- server.c:354:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] server.c:358:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] msgIsRead(gp,p) global_t *gp; { ^ server.c:358:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] server.c:362:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] optprot(gp,from,opt,msg) global_t *gp; char *msg; { ^ server.c:362:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] server.c:390:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] after_game(gp) global_t *gp; { ^ server.c:390:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 39 warnings and 1 error generated. --- ss.o --- ss.c:105:11: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SOCKETIO *TimedConnectSock(host, port, timeout) char *host; int port; double timeout; { ^ ss.c:132:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] alarm(to); ^ ss.c:136:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] alarm(0); ^ ss.c:141:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sd); ^ --- global.o --- *** [global.o] Error code 1 bmake: stopped in /Users/pbulk/build/games/netmaj/work/netmaj --- ss.o --- ss.c:147:11: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SOCKETIO *SockFdopen(fd) int fd; { ^ ss.c:151:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] SockClose(sp) SOCKETIO *sp; { ^ ss.c:151:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ss.c:153:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- server.o --- *** [server.o] Error code 1 bmake: stopped in /Users/pbulk/build/games/netmaj/work/netmaj --- ss.o --- ss.c:155:7: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *SockGets(buf, len, sp) char *buf; int len; SOCKETIO *sp; { ^ ss.c:173:8: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] r = read(sp->sd, sp->rbuf, SSS_BUFSIZE); ^ ss.c:188:5: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SockWrites(buf, sp) char *buf; SOCKETIO *sp; { ^ ss.c:191:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] r = write(sp->sd,buf,len); ^ ss.c:195:5: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SockIsRead(sp) SOCKETIO *sp; { ^ ss.c:214:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] SockSelect(timeout,flags) double timeout; char *flags; { ^ ss.c:214:1: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ss.c:235:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SockSetFd(fd) int fd; { ^ ss.c:240:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void SockClrFd(fd) int fd; { ^ 26 warnings generated. 2 errors bmake: stopped in /Users/pbulk/build/games/netmaj/work/netmaj *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/games/netmaj *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos11-trunk-arm64/games/netmaj