=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/net/yale-tftpd", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for yale-tftpd-3.0nb6 --- classes/libclasses.a --- --- tftpd.o --- --- tftpsubs.o --- --- classes/libclasses.a --- (cd classes ; make) --- tftpd.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DHAVE_STRERROR -DBROKEN_TH_STUFF -DCONFIGFILE='"/etc/opt/pkg/tftpd.conf"' -c tftpd.c --- tftpsubs.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DHAVE_STRERROR -DBROKEN_TH_STUFF -DCONFIGFILE='"/etc/opt/pkg/tftpd.conf"' -c tftpsubs.c --- classes/libclasses.a --- --- access.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DHAVE_STRERROR -DBROKEN_TH_STUFF -c access.c --- tftpsubs.o --- tftpsubs.c: In function 'w_init': tftpsubs.c:71:35: error: too many arguments to function 'rw_init'; expected 0, have 1 71 | struct tftphdr *w_init() { return rw_init(0); } /* write-behind */ | ^~~~~~~ ~ tftpsubs.c:68:17: note: declared here 68 | struct tftphdr *rw_init(); | ^~~~~~~ tftpsubs.c: In function 'r_init': tftpsubs.c:72:35: error: too many arguments to function 'rw_init'; expected 0, have 1 72 | struct tftphdr *r_init() { return rw_init(1); } /* read-ahead */ | ^~~~~~~ ~ tftpsubs.c:68:17: note: declared here 68 | struct tftphdr *rw_init(); | ^~~~~~~ tftpsubs.c: In function 'rw_init': tftpsubs.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | rw_init(x) /* init for either read-ahead or write-behind */ | ^~~~~~~ tftpsubs.c:77:1: error: number of arguments doesn't match prototype 77 | { | ^ tftpsubs.c:68:17: error: prototype declaration 68 | struct tftphdr *rw_init(); | ^~~~~~~ tftpsubs.c: In function 'readit': tftpsubs.c:92:1: warning: old-style function definition [-Wold-style-definition] 92 | readit(file, dpp, convert) | ^~~~~~ tftpsubs.c: In function 'read_ahead': tftpsubs.c:115:1: warning: old-style function definition [-Wold-style-definition] 115 | read_ahead(file, convert) | ^~~~~~~~~~ tftpsubs.c: In function 'writeit': tftpsubs.c:164:1: warning: old-style function definition [-Wold-style-definition] 164 | writeit(file, dpp, ct, convert) | ^~~~~~~ tftpsubs.c: In function 'write_behind': tftpsubs.c:186:1: warning: old-style function definition [-Wold-style-definition] 186 | write_behind(file, convert) | ^~~~~~~~~~~~ tftpsubs.c: In function 'synchnet': tftpsubs.c:245:1: warning: old-style function definition [-Wold-style-definition] 245 | synchnet(f) | ^~~~~~~~ --- classes/libclasses.a --- access.c: In function 'accessGroup_dispose': access.c:108:1: warning: old-style function definition [-Wold-style-definition] 108 | accessGroup_dispose (self) | ^~~~~~~~~~~~~~~~~~~ --- tftpd.o --- tftpd.c: In function 'main': tftpd.c:126:1: warning: old-style function definition [-Wold-style-definition] 126 | main(argc, argv) | ^~~~ --- classes/libclasses.a --- access.c: In function 'accessGroup_add': access.c:131:1: warning: old-style function definition [-Wold-style-definition] 131 | accessGroup_add (self, argc, argv) | ^~~~~~~~~~~~~~~ access.c: In function 'accessGroup_addCondition': access.c:147:1: warning: old-style function definition [-Wold-style-definition] 147 | accessGroup_addCondition (self, list, condition) | ^~~~~~~~~~~~~~~~~~~~~~~~ access.c: In function 'accessGroup_validateAddress': access.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | accessGroup_validateAddress (self, list, source, type) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ access.c:221:16: error: too many arguments to function 'accessListVerifyAddress'; expected 0, have 3 221 | return accessListVerifyAddress (alp, source, type); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~ access.c:75:20: note: declared here 75 | static int accessListVerifyAddress (); | ^~~~~~~~~~~~~~~~~~~~~~~ access.c: In function 'accessGroup_printOn': access.c:227:1: warning: old-style function definition [-Wold-style-definition] 227 | accessGroup_printOn(self, file) | ^~~~~~~~~~~~~~~~~~~ access.c: In function 'accessList_dispose': access.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | accessList_dispose (alp) | ^~~~~~~~~~~~~~~~~~ --- tftpd.o --- tftpd.c:152:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 152 | signal (SIGCHLD, sigChildHandler); | ^~~~~~~~~~~~~~~ | | | void (*)(void) --- classes/libclasses.a --- access.c: In function 'accessList_addCondition': access.c:276:1: warning: old-style function definition [-Wold-style-definition] 276 | accessList_addCondition (alp, cp) | ^~~~~~~~~~~~~~~~~~~~~~~ --- tftpd.o --- In file included from /usr/include/signal.h:42, from tftpd.c:59: /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); | ^~~~~~~~~~~~~ tftpd.c:106:17: note: 'sigChildHandler' declared here 106 | static void sigChildHandler(); | ^~~~~~~~~~~~~~~ --- classes/libclasses.a --- access.c: In function 'accessListVerifyAddress': access.c:338:1: warning: old-style function definition [-Wold-style-definition] 338 | accessListVerifyAddress (alp, source, type) | ^~~~~~~~~~~~~~~~~~~~~~~ access.c: In function 'accessListPrintOn': access.c:375:1: warning: old-style function definition [-Wold-style-definition] 375 | accessListPrintOn (alp, file) | ^~~~~~~~~~~~~~~~~ access.c: In function 'compileAccessCondition': access.c:409:1: warning: old-style function definition [-Wold-style-definition] 409 | compileAccessCondition (self, ac, av, ptr) | ^~~~~~~~~~~~~~~~~~~~~~ --- tftpd.o --- tftpd.c: In function 'awaitInput': tftpd.c:237:1: warning: old-style function definition [-Wold-style-definition] 237 | awaitInput(chan) | ^~~~~~~~~~ tftpd.c: In function 'sigChildHandler': tftpd.c:260:1: warning: old-style function definition [-Wold-style-definition] 260 | sigChildHandler(signum) | ^~~~~~~~~~~~~~~ tftpd.c: In function 'runChild': tftpd.c:304:1: warning: old-style function definition [-Wold-style-definition] 304 | runChild(tp, n) | ^~~~~~~~ tftpd.c: At top level: tftpd.c:335:9: error: conflicting types for 'validate_access'; have 'int(void)' 335 | int validate_access(); | ^~~~~~~~~~~~~~~ tftpd.c:90:12: note: previous declaration of 'validate_access' with type 'int(char *, int)' 90 | static int validate_access(char *, int); | ^~~~~~~~~~~~~~~ tftpd.c:348:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct formats *)' [-Wincompatible-pointer-types] 348 | { "netascii", validate_access, tftpsendfile, tftprecvfile, 1 }, | ^~~~~~~~~~~~ tftpd.c:348:49: note: (near initialization for 'formats[0].f_send') tftpd.c:338:9: note: 'tftpsendfile' declared here 338 | int tftpsendfile(struct formats *); | ^~~~~~~~~~~~ tftpd.c:348:65: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct formats *)' [-Wincompatible-pointer-types] 348 | { "netascii", validate_access, tftpsendfile, tftprecvfile, 1 }, | ^~~~~~~~~~~~ tftpd.c:348:65: note: (near initialization for 'formats[0].f_recv') tftpd.c:339:9: note: 'tftprecvfile' declared here 339 | int tftprecvfile(struct formats *); | ^~~~~~~~~~~~ tftpd.c:349:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct formats *)' [-Wincompatible-pointer-types] 349 | { "octet", validate_access, tftpsendfile, tftprecvfile, 0 }, | ^~~~~~~~~~~~ tftpd.c:349:49: note: (near initialization for 'formats[1].f_send') tftpd.c:338:9: note: 'tftpsendfile' declared here 338 | int tftpsendfile(struct formats *); | ^~~~~~~~~~~~ tftpd.c:349:65: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(struct formats *)' [-Wincompatible-pointer-types] 349 | { "octet", validate_access, tftpsendfile, tftprecvfile, 0 }, | ^~~~~~~~~~~~ tftpd.c:349:65: note: (near initialization for 'formats[1].f_recv') tftpd.c:339:9: note: 'tftprecvfile' declared here 339 | int tftprecvfile(struct formats *); | ^~~~~~~~~~~~ tftpd.c: In function 'tftp': tftpd.c:360:1: warning: old-style function definition [-Wold-style-definition] 360 | tftp(tp, size) | ^~~~ tftpd.c:411:18: error: too many arguments to function 'pf->f_validate'; expected 0, have 2 411 | ecode = (*pf->f_validate)(filename, tp->th_opcode); | ~^~~~~~~~~~~~~~~~ ~~~~~~~~ tftpd.c:343:19: note: declared here 343 | int (*f_validate)(); | ^~~~~~~~~~ tftpd.c:418:22: error: too many arguments to function 'pf->f_recv'; expected 0, have 1 418 | if ((*pf->f_recv)(pf) >= 0) | ~^~~~~~~~~~~~ ~~ tftpd.c:345:19: note: declared here 345 | int (*f_recv)(); | ^~~~~~ tftpd.c:427:22: error: too many arguments to function 'pf->f_send'; expected 0, have 1 427 | if ((*pf->f_send)(pf) >= 0) | ~^~~~~~~~~~~~ ~~ tftpd.c:344:19: note: declared here 344 | int (*f_send)(); | ^~~~~~ tftpd.c: At top level: tftpd.c:487:1: error: static declaration of 'validate_access' follows non-static declaration 487 | validate_access(filename, mode) | ^~~~~~~~~~~~~~~ tftpd.c:335:9: note: previous declaration of 'validate_access' with type 'int(void)' 335 | int validate_access(); | ^~~~~~~~~~~~~~~ tftpd.c: In function 'validate_access': tftpd.c:487:1: warning: old-style function definition [-Wold-style-definition] 487 | validate_access(filename, mode) | ^~~~~~~~~~~~~~~ --- tftpsubs.o --- *** [tftpsubs.o] Error code 1 bmake: stopped making "all" in /tmp/work/net/yale-tftpd/work --- tftpd.o --- tftpd.c: In function 'tftpsendfile': tftpd.c:686:1: warning: old-style function definition [-Wold-style-definition] 686 | tftpsendfile(pf) | ^~~~~~~~~~~~ tftpd.c:693:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 693 | signal(SIGALRM, timer); | ^~~~~ | | | 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); | ^~~~~~~~~~~~~ tftpd.c:673:6: note: 'timer' declared here 673 | void timer() | ^~~~~ tftpd.c: In function 'tftprecvfile': tftpd.c:758:1: warning: old-style function definition [-Wold-style-definition] 758 | tftprecvfile(pf) | ^~~~~~~~~~~~ tftpd.c:765:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 765 | signal(SIGALRM, timer); | ^~~~~ | | | 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); | ^~~~~~~~~~~~~ tftpd.c:673:6: note: 'timer' declared here 673 | void timer() | ^~~~~ tftpd.c:817:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 817 | signal(SIGALRM, justquit); /* just quit on timeout */ | ^~~~~~~~ | | | 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); | ^~~~~~~~~~~~~ tftpd.c:748:6: note: 'justquit' declared here 748 | void justquit() | ^~~~~~~~ tftpd.c: In function 'nak': tftpd.c:853:1: warning: old-style function definition [-Wold-style-definition] 853 | nak(error) | ^~~ tftpd.c:859:22: error: conflicting types for 'strerror'; have 'char *(void)' 859 | extern char* strerror(); | ^~~~~~~~ In file included from /usr/include/string.h:35, from tftpd.c:61: /usr/include/iso/string_iso.h:78:14: note: previous declaration of 'strerror' with type 'char *(int)' 78 | extern char *strerror(int); | ^~~~~~~~ tftpd.c:868:29: error: too many arguments to function 'strerror'; expected 0, have 1 868 | pe->e_msg = strerror(error - 100); | ^~~~~~~~ ~~~~~~~~~~~ tftpd.c:859:22: note: declared here 859 | extern char* strerror(); | ^~~~~~~~ --- classes/libclasses.a --- *** [classes/libclasses.a] Error code 6 bmake: stopped making "all" in /tmp/work/net/yale-tftpd/work --- tftpd.o --- *** [tftpd.o] Error code 1 bmake: stopped making "all" in /tmp/work/net/yale-tftpd/work bmake: 3 errors bmake: stopped making "all" in /tmp/work/net/yale-tftpd/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/yale-tftpd *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/yale-tftpd