=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/netmaj", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for netmaj-2.0.7nb15 --- server.o --- --- ss.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 --- server.o --- In file included from server.c:30: In file included from ./global.h:24: In file included from ./ss.h:34: In file included from /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/stdlib.h:58: /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:245:7: error: conflicting types for 'rand' 245 | long random(void) __swift_unavailable("Use arc4random instead."); | ^ ./pai.h:22:17: note: expanded from macro 'random' 22 | #define random rand | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:181:6: note: previous declaration is here 181 | int rand(void) __swift_unavailable("Use arc4random instead."); | ^ --- ss.o --- ss.c:34:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | 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] 57 | close(sp->sd); | ^ ss.c:51:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | static void _sock_free(sp) SOCKETIO *sp; { | ^ ss.c:60:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | 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] 80 | 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] 85 | close(sd); | ^ --- server.o --- In file included from server.c:30: ./global.h:37:9: warning: 'bcopy' macro redefined [-Wmacro-redefined] 37 | #define bcopy(s,d,n) memcpy(d,s,n) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:45:9: note: previous definition is here 45 | #define bcopy(src, dest, ...) \ | ^ In file included from server.c:30: ./global.h:38:9: warning: 'bzero' macro redefined [-Wmacro-redefined] 38 | #define bzero(d,n) memset(d,0,n) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here 52 | #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 45 | extern char *index(); | ^ ./global.h:42:16: note: expanded from macro 'index' 42 | #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 C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 46 | extern char *rindex(); | ^ ./global.h:43:17: note: expanded from macro 'rindex' 43 | #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] 72 | 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] 129 | 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] 130 | 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] 131 | 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 C23 [-Wdeprecated-non-prototype] 166 | 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] 182 | 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] 196 | 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] 205 | 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] 217 | msgWrites(gp,buf,k); | ^ server.c:227:56: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 227 | fprintf(log_server,"start at %d with %s %s %s %s\n",time(0) | ~~ ^~~~~~~ --- ss.o --- ss.c:91:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- | %ld --- ss.o --- 91 | SOCKETIO *AcceptSock(ssp) SOCKETIO *ssp; { | ^ --- server.o --- server.c:255:4: warning: call to undeclared function 'game'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 255 | 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] 262 | 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 C23 [-Wdeprecated-non-prototype] 72 | 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] 278 | 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] --- 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] --- server.o --- 278 | 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 C23 [-Wdeprecated-non-prototype] 282 | if (!msgGets(gp,buf,sizeof(buf)-1,from)) return -1; --- ss.o --- 94 | sd = accept(ssp->sd, (struct sockaddr *)0, (int *)0); | ^~~~~~~~ --- server.o --- | ^ server.c:284:3: warning: call to undeclared function 'talk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 284 | 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] 286 | 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] 288 | optprot(gp,from,msg[0],msg+1); | ^ --- ss.o --- /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here --- server.o --- server.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | 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] 293 | runauto(buf) char *buf; { | ^ | int server.c:297:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- ss.o --- 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ --- server.o --- 297 | if (p=rindex(buf,'\n')) *p = 0; | ~^~~~~~~~~~~~~~~~~ server.c:297:7: note: place parentheses around the assignment to silence this warning 297 | if (p=rindex(buf,'\n')) *p = 0; | ^ | ( ) server.c:297:7: note: use '==' to turn this assignment into an equality comparison 297 | if (p=rindex(buf,'\n')) *p = 0; | ^ | == --- ss.o --- ss.c:101:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- server.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | runauto(buf) char *buf; { | ^ --- ss.o --- 101 | SOCKETIO *ConnectSock(host, port) char *host; int port; { | ^ --- server.o --- server.c:308:9: warning: parameter 'from' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 308 | 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] 308 | 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] --- ss.o --- ss.c:105:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- 313 | if (p=index(msg,'\n')) *p = 0; | ~^~~~~~~~~~~~~~~~ --- ss.o --- 105 | SOCKETIO *TimedConnectSock(host, port, timeout) char *host; int port; double timeout; { | ^ --- server.o --- server.c:313:7: note: place parentheses around the assignment to silence this warning 313 | if (p=index(msg,'\n')) *p = 0; | ^ | ( ) server.c:313:7: note: use '==' to turn this assignment into an equality comparison 313 | 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] --- ss.o --- ss.c:132:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- server.o --- 317 | msgWrites(gp,buf,i); | ^ --- ss.o --- 132 | alarm(to); | ^ --- server.o --- server.c:308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- ss.o --- ss.c:136:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | 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] --- server.o --- 308 | talk(gp,from,msg) global_t *gp; char *msg; { | ^ --- ss.o --- 141 | close(sd); | ^ --- server.o --- server.c:335:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | 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 C23 [-Wdeprecated-non-prototype] 344 | 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 C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | char *msgGets(); | ^ --- ss.o --- ss.c:147:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | SOCKETIO *SockFdopen(fd) int fd; { | ^ --- server.o --- server.c:354:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 354 | msgSelect(gp,time_out) global_t *gp; int time_out; { | ^ | int --- ss.o --- ss.c:151:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 151 | SockClose(sp) SOCKETIO *sp; { | ^ | int ss.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- server.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- ss.o --- ss.c:153:1: warning: non-void function does not return a value [-Wreturn-type] 153 | } | ^ --- server.o --- server.c:358:14: warning: parameter 'p' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] --- ss.o --- ss.c:155:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- 358 | 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] --- ss.o --- 155 | char *SockGets(buf, len, sp) char *buf; int len; SOCKETIO *sp; { --- server.o --- 358 | msgIsRead(gp,p) global_t *gp; { | ^ | int --- ss.o --- | ^ --- server.o --- server.c:358:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-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] --- ss.o --- ss.c:173:8: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | r = read(sp->sd, sp->rbuf, SSS_BUFSIZE); --- server.o --- 362 | optprot(gp,from,opt,msg) global_t *gp; char *msg; { | ^ --- ss.o --- | ^ --- server.o --- server.c:362:12: warning: parameter 'from' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 362 | 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] 362 | optprot(gp,from,opt,msg) global_t *gp; char *msg; { | ^ | int --- ss.o --- ss.c:188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | int SockWrites(buf, sp) char *buf; SOCKETIO *sp; { | ^ --- server.o --- server.c:362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- ss.o --- ss.c:191:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 191 | r = write(sp->sd,buf,len); | ^ --- server.o --- server.c:390:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 390 | 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 C23 [-Wdeprecated-non-prototype] --- ss.o --- ss.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | int SockIsRead(sp) SOCKETIO *sp; { | ^ ss.c:214:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 214 | SockSelect(timeout,flags) double timeout; char *flags; { | ^ | int ss.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- server.o --- 46 warnings and 1 error generated. --- ss.o --- ss.c:235:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | void SockSetFd(fd) int fd; { | ^ ss.c:240:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | void SockClrFd(fd) int fd; { | ^ --- server.o --- *** [server.o] Error code 1 bmake: stopped making "all" in /var/tmp/work/games/netmaj/work/netmaj --- ss.o --- 26 warnings generated. bmake: 1 error bmake: stopped making "all" in /var/tmp/work/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