=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/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 ss.c: In function '_sock_alloc': ss.c:34:18: warning: old-style function definition [-Wold-style-definition] 34 | static SOCKETIO *_sock_alloc(sd) int sd; { | ^~~~~~~~~~~ ss.c: In function '_sock_free': ss.c:51:13: warning: old-style function definition [-Wold-style-definition] 51 | static void _sock_free(sp) SOCKETIO *sp; { | ^~~~~~~~~~ ss.c:57:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 57 | close(sp->sd); | ^~~~~ | pclose ss.c: In function 'ServerSock': ss.c:60:11: warning: old-style function definition [-Wold-style-definition] 60 | SOCKETIO *ServerSock(port) int port; { | ^~~~~~~~~~ ss.c: In function 'AcceptSock': ss.c:91:11: warning: old-style function definition [-Wold-style-definition] 91 | SOCKETIO *AcceptSock(ssp) SOCKETIO *ssp; { | ^~~~~~~~~~ ss.c: In function 'ConnectSock': ss.c:101:11: warning: old-style function definition [-Wold-style-definition] 101 | SOCKETIO *ConnectSock(host, port) char *host; int port; { | ^~~~~~~~~~~ ss.c: In function 'TimedConnectSock': ss.c:105:11: warning: old-style function definition [-Wold-style-definition] 105 | SOCKETIO *TimedConnectSock(host, port, timeout) char *host; int port; double timeout; { | ^~~~~~~~~~~~~~~~ ss.c:131:39: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 131 | func = signal(SIGALRM,alrment); | ^~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from ss.h:32, from ss.c:29: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ ss.c:47:13: note: 'alrment' declared here 47 | static void alrment() { | ^~~~~~~ ss.c:131:22: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 131 | func = signal(SIGALRM,alrment); | ^ ss.c:132:17: error: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 132 | alarm(to); | ^~~~~ ss.c:137:32: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 137 | signal(SIGALRM,func); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ ss.c: In function 'SockFdopen': ss.c:147:11: warning: old-style function definition [-Wold-style-definition] 147 | SOCKETIO *SockFdopen(fd) int fd; { | ^~~~~~~~~~ ss.c: At top level: ss.c:151:1: error: return type defaults to 'int' [-Wimplicit-int] 151 | SockClose(sp) SOCKETIO *sp; { | ^~~~~~~~~ ss.c: In function 'SockClose': ss.c:151:1: warning: old-style function definition [-Wold-style-definition] ss.c: In function 'SockGets': ss.c:155:7: warning: old-style function definition [-Wold-style-definition] 155 | char *SockGets(buf, len, sp) char *buf; int len; SOCKETIO *sp; { | ^~~~~~~~ ss.c:173:29: error: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration] 173 | r = read(sp->sd, sp->rbuf, SSS_BUFSIZE); | ^~~~ | readv ss.c: In function 'SockWrites': ss.c:188:5: warning: old-style function definition [-Wold-style-definition] 188 | int SockWrites(buf, sp) char *buf; SOCKETIO *sp; { | ^~~~~~~~~~ ss.c:191:13: error: implicit declaration of function 'write'; did you mean 'writev'? [-Wimplicit-function-declaration] 191 | r = write(sp->sd,buf,len); | ^~~~~ | writev ss.c: In function 'SockIsRead': ss.c:195:5: warning: old-style function definition [-Wold-style-definition] 195 | int SockIsRead(sp) SOCKETIO *sp; { | ^~~~~~~~~~ ss.c: At top level: ss.c:214:1: error: return type defaults to 'int' [-Wimplicit-int] 214 | SockSelect(timeout,flags) double timeout; char *flags; { | ^~~~~~~~~~ ss.c: In function 'SockSelect': ss.c:214:1: warning: old-style function definition [-Wold-style-definition] ss.c: In function 'SockSetFd': ss.c:235:6: warning: old-style function definition [-Wold-style-definition] 235 | void SockSetFd(fd) int fd; { | ^~~~~~~~~ ss.c: In function 'SockClrFd': ss.c:240:6: warning: old-style function definition [-Wold-style-definition] 240 | void SockClrFd(fd) int fd; { | ^~~~~~~~~ --- server.o --- In file included from server.c:29: pai.h:22:25: error: conflicting types for 'rand'; have 'long int(void)' 22 | #define random rand | ^~~~ In file included from /usr/include/stdlib.h:41, from ss.h:34, from global.h:24, from server.c:30: /usr/include/iso/stdlib_iso.h:153:12: note: previous declaration of 'rand' with type 'int(void)' 153 | extern int rand(void); | ^~~~ global.h:42:17: error: conflicting types for 'strchr'; have 'char *(void)' 42 | #define index strchr | ^~~~~~ global.h:45:14: note: in expansion of macro 'index' 45 | extern char *index(); | ^~~~~ In file included from /usr/include/string.h:35, from global.h:21: /usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)' 140 | extern char *strchr(const char *, int); | ^~~~~~ global.h:43:17: error: conflicting types for 'strrchr'; have 'char *(void)' 43 | #define rindex strrchr | ^~~~~~~ global.h:46:14: note: in expansion of macro 'rindex' 46 | extern char *rindex(); | ^~~~~~ /usr/include/iso/string_iso.h:142:14: note: previous declaration of 'strrchr' with type 'char *(const char *, int)' 142 | extern char *strrchr(const char *, int); | ^~~~~~~ server.c:72:1: error: return type defaults to 'int' [-Wimplicit-int] 72 | main(argc,argv) | ^~~~ server.c: In function 'main': server.c:72:1: warning: old-style function definition [-Wold-style-definition] server.c:86:23: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 86 | signal(SIGINT,term); | ^~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from server.c:24: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ server.c:42:6: note: 'term' declared here 42 | void term(); | ^~~~ server.c:87:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 87 | signal(SIGTERM,term); | ^~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ server.c:42:6: note: 'term' declared here 42 | void term(); | ^~~~ server.c:88:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 88 | signal(SIGCHLD,child_exit); | ^~~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ server.c:58:6: note: 'child_exit' declared here 58 | void child_exit() { | ^~~~~~~~~~ server.c:129:9: error: implicit declaration of function 'pf_init' [-Wimplicit-function-declaration] 129 | pf_init(gp,"server",argv[0]); | ^~~~~~~ server.c:130:9: error: implicit declaration of function 'rule_init' [-Wimplicit-function-declaration] 130 | rule_init(gp); | ^~~~~~~~~ --- ss.o --- *** [ss.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/netmaj/work/netmaj --- server.o --- server.c:131:9: error: implicit declaration of function 'pack_rule' [-Wimplicit-function-declaration] 131 | pack_rule(&rule); | ^~~~~~~~~ server.c:166:38: error: too many arguments to function 'msgGets'; expected 0, have 4 166 | if (!msgGets(gp,buf,sizeof(buf)-1,new)) { | ^~~~~~~ ~~ server.c:54:7: note: declared here 54 | char *msgGets(); | ^~~~~~~ server.c:182:41: error: implicit declaration of function 'msgWrites' [-Wimplicit-function-declaration] 182 | msgWrites(gp,buf,new); | ^~~~~~~~~ server.c:196:41: error: implicit declaration of function 'optprot' [-Wimplicit-function-declaration] 196 | optprot(gp,new,name[0],name+1); | ^~~~~~~ server.c:205:37: error: implicit declaration of function 'talk_pg' [-Wimplicit-function-declaration] 205 | if (talk_pg(gp,j)) { | ^~~~~~~ server.c:255:25: error: implicit declaration of function 'game' [-Wimplicit-function-declaration] 255 | game(gp); | ^~~~ server.c:262:33: error: implicit declaration of function 'after_game' [-Wimplicit-function-declaration] 262 | after_game(gp); | ^~~~~~~~~~ server.c: At top level: server.c:278:1: error: 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: old-style function definition [-Wold-style-definition] server.c:278:1: error: type of 'from' defaults to 'int' [-Wimplicit-int] server.c:282:14: error: too many arguments to function 'msgGets'; expected 0, have 4 282 | if (!msgGets(gp,buf,sizeof(buf)-1,from)) return -1; | ^~~~~~~ ~~ server.c:54:7: note: declared here 54 | char *msgGets(); | ^~~~~~~ server.c:284:17: error: implicit declaration of function 'talk' [-Wimplicit-function-declaration] 284 | talk(gp,from,buf+strlen(MSG_COMMENTX)); | ^~~~ server.c:286:17: error: implicit declaration of function 'runauto' [-Wimplicit-function-declaration] 286 | runauto(buf+4); | ^~~~~~~ server.c: At top level: server.c:293:1: error: return type defaults to 'int' [-Wimplicit-int] 293 | runauto(buf) char *buf; { | ^~~~~~~ server.c: In function 'runauto': server.c:293:1: warning: old-style function definition [-Wold-style-definition] global.h:43:17: error: too many arguments to function 'strrchr'; expected 0, have 2 43 | #define rindex strrchr | ^~~~~~~ server.c:297:15: note: in expansion of macro 'rindex' 297 | if (p=rindex(buf,'\n')) *p = 0; | ^~~~~~ global.h:43:17: note: declared here 43 | #define rindex strrchr | ^~~~~~~ global.h:46:14: note: in expansion of macro 'rindex' 46 | extern char *rindex(); | ^~~~~~ server.c: At top level: server.c:308:1: error: 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: old-style function definition [-Wold-style-definition] server.c:308:1: error: type of 'from' defaults to 'int' [-Wimplicit-int] global.h:42:17: error: too many arguments to function 'strchr'; expected 0, have 2 42 | #define index strchr | ^~~~~~ server.c:313:15: note: in expansion of macro 'index' 313 | if (p=index(msg,'\n')) *p = 0; | ^~~~~ global.h:42:17: note: declared here 42 | #define index strchr | ^~~~~~ global.h:45:14: note: in expansion of macro 'index' 45 | extern char *index(); | ^~~~~ server.c: In function 'msgWrites': server.c:335:5: warning: old-style function definition [-Wold-style-definition] 335 | int msgWrites(gp,buf,p) global_t *gp; char *buf; int p; { | ^~~~~~~~~ server.c: In function 'msgGets': server.c:344:7: warning: old-style function definition [-Wold-style-definition] 344 | char *msgGets(gp,buf,len,p) global_t *gp; char *buf; int len; int p; { | ^~~~~~~ server.c:344:1: error: number of arguments doesn't match prototype 344 | char *msgGets(gp,buf,len,p) global_t *gp; char *buf; int len; int p; { | ^~~~ server.c:54:7: error: prototype declaration 54 | char *msgGets(); | ^~~~~~~ server.c: At top level: server.c:354:1: error: return type defaults to 'int' [-Wimplicit-int] 354 | msgSelect(gp,time_out) global_t *gp; int time_out; { | ^~~~~~~~~ server.c: In function 'msgSelect': server.c:354:1: warning: old-style function definition [-Wold-style-definition] server.c: At top level: server.c:358:1: error: return type defaults to 'int' [-Wimplicit-int] 358 | msgIsRead(gp,p) global_t *gp; { | ^~~~~~~~~ server.c: In function 'msgIsRead': server.c:358:1: warning: old-style function definition [-Wold-style-definition] server.c:358:1: error: type of 'p' defaults to 'int' [-Wimplicit-int] server.c: At top level: server.c:362:1: error: 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: old-style function definition [-Wold-style-definition] server.c:362:1: error: type of 'from' defaults to 'int' [-Wimplicit-int] server.c:362:1: error: type of 'opt' defaults to 'int' [-Wimplicit-int] server.c: At top level: server.c:390:1: error: return type defaults to 'int' [-Wimplicit-int] 390 | after_game(gp) global_t *gp; { | ^~~~~~~~~~ server.c: In function 'after_game': server.c:390:1: warning: old-style function definition [-Wold-style-definition] server.c:400:30: error: too many arguments to function 'msgGets'; expected 0, have 4 400 | if (!msgGets(gp,buf,sizeof(buf)-1,i) || | ^~~~~~~ ~~ server.c:344:7: note: declared here 344 | char *msgGets(gp,buf,len,p) global_t *gp; char *buf; int len; int p; { | ^~~~~~~ *** [server.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/netmaj/work/netmaj bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/games/netmaj/work/netmaj *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/netmaj *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/netmaj