WARNING: [license.mk] Every package should define a LICENSE. ===> Building for netmaj-2.0.7nb15 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 In file included from server.c:30: In file included from ./global.h:24: In file included from ./ss.h:34: /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:224: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 ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:162:6: note: previous declaration is here int rand(void) __swift_unavailable("Use arc4random instead."); ^ 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) ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.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) ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ In file included from server.c:30: ./global.h:45:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *index(); ^ ./global.h:42:16: note: expanded from macro 'index' #define index strchr ^ ./global.h:46:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./global.h:43:17: note: expanded from macro 'rindex' #define rindex strrchr ^ server.c:72:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc,argv) ^ int 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); ^ 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)) { ^ 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); ^ 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 definition 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:12: warning: parameter 'from' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] talk_pg(gp,from) global_t *gp; { ^ server.c:278:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] talk_pg(gp,from) global_t *gp; { ^ int 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); ^ server.c:278:1: warning: a function definition 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'; ISO C99 and later do not support implicit int [-Wimplicit-int] runauto(buf) char *buf; { ^ int 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 definition 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:9: warning: parameter 'from' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] talk(gp,from,msg) global_t *gp; char *msg; { ^ server.c:308:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] talk(gp,from,msg) global_t *gp; char *msg; { ^ int 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 definition 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 definition 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:344:7: warning: a function definition 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:54:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *msgGets(); ^ server.c:354:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] msgSelect(gp,time_out) global_t *gp; int time_out; { ^ int server.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] server.c:358:14: warning: parameter 'p' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] msgIsRead(gp,p) global_t *gp; { ^ server.c:358:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] msgIsRead(gp,p) global_t *gp; { ^ int server.c:358:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] server.c:362:17: warning: parameter 'opt' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] optprot(gp,from,opt,msg) global_t *gp; char *msg; { ^ server.c:362:12: warning: parameter 'from' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] optprot(gp,from,opt,msg) global_t *gp; char *msg; { ^ server.c:362:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] optprot(gp,from,opt,msg) global_t *gp; char *msg; { ^ int server.c:362:1: warning: a function definition 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'; ISO C99 and later do not support implicit int [-Wimplicit-int] after_game(gp) global_t *gp; { ^ int server.c:390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 46 warnings and 1 error generated. *** [server.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/games/netmaj/work/netmaj bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/games/netmaj/work/netmaj *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/netmaj *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/netmaj