=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/xbin", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xbin-2.3nb1 cd /tmp/work/archivers/xbin/work && gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -o xbin xbinunix.c -Wl,-R/opt/pkg/lib xbinunix.c:3:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 3 | #endif lint | ^~~~ xbinunix.c:35:14: error: conflicting types for 'strrchr'; have 'char *(void)' 35 | extern char *strrchr(); | ^~~~~~~ In file included from /usr/include/string.h:35, from xbinunix.c:8: /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); | ^~~~~~~ xbinunix.c:119:1: error: return type defaults to 'int' [-Wimplicit-int] 119 | main(ac, av) | ^~~~ xbinunix.c: In function 'main': xbinunix.c:119:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c:119:1: error: type of 'ac' defaults to 'int' [-Wimplicit-int] xbinunix.c:157:25: error: implicit declaration of function 'setup_files' [-Wimplicit-function-declaration] 157 | setup_files(filename, macname); | ^~~~~~~~~~~ xbinunix.c:159:33: error: implicit declaration of function 'print_header' [-Wimplicit-function-declaration] 159 | print_header(); | ^~~~~~~~~~~~ xbinunix.c:162:33: error: implicit declaration of function 'process_forks' [-Wimplicit-function-declaration] 162 | process_forks(); | ^~~~~~~~~~~~~ xbinunix.c:164:33: error: implicit declaration of function 'forge_info' [-Wimplicit-function-declaration] 164 | forge_info(); | ^~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:190:1: error: return type defaults to 'int' [-Wimplicit-int] 190 | setup_files(filename, macname) | ^~~~~~~~~~~ xbinunix.c: In function 'setup_files': xbinunix.c:190:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c:236:19: error: implicit declaration of function 'find_header' [-Wimplicit-function-declaration] 236 | qformat = find_header(); /* eat mailer header &cetera, intuit format */ | ^~~~~~~~~~~ xbinunix.c:239:17: error: implicit declaration of function 'do_q_header' [-Wimplicit-function-declaration] 239 | do_q_header(macname); | ^~~~~~~~~~~ xbinunix.c:241:17: error: implicit declaration of function 'do_o_header' [-Wimplicit-function-declaration] 241 | do_o_header(macname, filename); | ^~~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:263:1: error: return type defaults to 'int' [-Wimplicit-int] 263 | print_header() | ^~~~~~~~~~~~ xbinunix.c: In function 'print_header': xbinunix.c:265:15: error: conflicting types for 'ctime'; have 'char *(void)' 265 | char *ctime(); | ^~~~~ In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from xbinunix.c:9: /usr/include/iso/time_iso.h:95:14: note: previous declaration of 'ctime' with type 'char *(const time_t *)' {aka 'char *(const long int *)'} 95 | extern char *ctime(const time_t *); | ^~~~~ xbinunix.c:276:43: error: too many arguments to function 'ctime'; expected 0, have 1 276 | printf("create time: %s", ctime(&mh.m_createtime)); | ^~~~~ ~~~~~~~~~~~~~~~~ xbinunix.c:265:15: note: declared here 265 | char *ctime(); | ^~~~~ xbinunix.c: At top level: xbinunix.c:280:1: error: return type defaults to 'int' [-Wimplicit-int] 280 | process_forks() | ^~~~~~~~~~~~~ xbinunix.c: In function 'process_forks': xbinunix.c:284:17: error: implicit declaration of function 'do_q_fork' [-Wimplicit-function-declaration] 284 | do_q_fork(files.f_data, mh.m_datalen); | ^~~~~~~~~ xbinunix.c:288:17: error: implicit declaration of function 'do_o_forks' [-Wimplicit-function-declaration] 288 | do_o_forks(); | ^~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:292:1: error: return type defaults to 'int' [-Wimplicit-int] 292 | forge_info() | ^~~~~~~~~~ xbinunix.c: In function 'forge_info': xbinunix.c:314:9: error: implicit declaration of function 'put2'; did you mean 'putw'? [-Wimplicit-function-declaration] 314 | put2(buf + H_FLAGOFF, mh.m_flags & ~F_LOCKED); | ^~~~ | putw xbinunix.c:316:17: error: implicit declaration of function 'put4'; did you mean 'putw'? [-Wimplicit-function-declaration] 316 | put4(buf + H_OLD_DLENOFF, mh.m_datalen); | ^~~~ | putw xbinunix.c: At top level: xbinunix.c:351:1: error: return type defaults to 'int' [-Wimplicit-int] 351 | find_header() | ^~~~~~~~~~~ xbinunix.c:395:1: error: return type defaults to 'int' [-Wimplicit-int] 395 | do_q_header(macname) | ^~~~~~~~~~~ xbinunix.c: In function 'do_q_header': xbinunix.c:395:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c:403:9: error: implicit declaration of function 'q_init' [-Wimplicit-function-declaration] 403 | q_init(); /* reset static variables */ | ^~~~~~ xbinunix.c:405:13: error: implicit declaration of function 'getq'; did you mean 'get4q'? [-Wimplicit-function-declaration] 405 | n = getq(); /* namelength */ | ^~~~ | get4q xbinunix.c:407:9: error: implicit declaration of function 'getqbuf'; did you mean 'setvbuf'? [-Wimplicit-function-declaration] 407 | getqbuf(namebuf, n); /* read name */ | ^~~~~~~ | setvbuf xbinunix.c:423:9: error: implicit declaration of function 'comp_q_crc' [-Wimplicit-function-declaration] 423 | comp_q_crc(0); | ^~~~~~~~~~ xbinunix.c:427:9: error: implicit declaration of function 'verify_crc' [-Wimplicit-function-declaration] 427 | verify_crc(calc_crc, file_crc); | ^~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:430:1: error: return type defaults to 'int' [-Wimplicit-int] 430 | do_q_fork(fname, len) | ^~~~~~~~~ xbinunix.c: In function 'do_q_fork': xbinunix.c:430:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:464:1: error: return type defaults to 'int' [-Wimplicit-int] 464 | verify_crc(calc_crc, file_crc) | ^~~~~~~~~~ xbinunix.c: In function 'verify_crc': xbinunix.c:464:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:483:1: error: return type defaults to 'int' [-Wimplicit-int] 483 | q_init() | ^~~~~~ xbinunix.c:522:1: error: return type defaults to 'int' [-Wimplicit-int] 522 | getqbuf(buf, n) | ^~~~~~~ xbinunix.c: In function 'getqbuf': xbinunix.c:522:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:539:1: error: return type defaults to 'int' [-Wimplicit-int] 539 | getq() | ^~~~ xbinunix.c: In function 'getq': xbinunix.c:543:18: error: implicit declaration of function 'getq_nocrc' [-Wimplicit-function-declaration] 543 | if ((c = getq_nocrc()) == EOF) | ^~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:549:1: error: return type defaults to 'int' [-Wimplicit-int] 549 | getq_nocrc() | ^~~~~~~~~~ xbinunix.c: In function 'getq_nocrc': xbinunix.c:558:18: error: implicit declaration of function 'getq_raw' [-Wimplicit-function-declaration] 558 | if ((c = getq_raw()) == EOF) { | ^~~~~~~~ xbinunix.c: At top level: xbinunix.c:581:1: error: return type defaults to 'int' [-Wimplicit-int] 581 | getq_raw() | ^~~~~~~~ xbinunix.c: In function 'getq_raw': xbinunix.c:589:34: error: implicit declaration of function 'get6bits' [-Wimplicit-function-declaration] 589 | if ((c = get6bits()) == EOF) | ^~~~~~~~ xbinunix.c: At top level: xbinunix.c:631:1: error: return type defaults to 'int' [-Wimplicit-int] 631 | get6bits() | ^~~~~~~~ xbinunix.c:659:1: error: return type defaults to 'int' [-Wimplicit-int] 659 | comp_q_crc(c) | ^~~~~~~~~~ xbinunix.c: In function 'comp_q_crc': xbinunix.c:659:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:676:1: error: return type defaults to 'int' [-Wimplicit-int] 676 | do_o_header(macname, filename) | ^~~~~~~~~~~ xbinunix.c: In function 'do_o_header': xbinunix.c:676:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c:34:21: error: too many arguments to function 'strrchr'; expected 0, have 2 34 | #define search_last strrchr | ^~~~~~~ xbinunix.c:688:27: note: in expansion of macro 'search_last' 688 | macname = search_last(namebuf, '/'); | ^~~~~~~~~~~ xbinunix.c:35:14: note: declared here 35 | extern char *strrchr(); | ^~~~~~~ xbinunix.c: At top level: xbinunix.c:724:1: error: return type defaults to 'int' [-Wimplicit-int] 724 | do_o_forks() | ^~~~~~~~~~ xbinunix.c: In function 'do_o_forks': xbinunix.c:735:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 735 | close(creat(files.f_data, 0666)); | ^~~~~ | pclose xbinunix.c:735:15: error: implicit declaration of function 'creat' [-Wimplicit-function-declaration] 735 | close(creat(files.f_data, 0666)); | ^~~~~ xbinunix.c:744:40: error: too many arguments to function 'make_file'; expected 0, have 2 744 | mh.m_datalen = make_file(files.f_data, compressed); | ^~~~~~~~~ ~~~~~~~~~~~~ xbinunix.c:729:21: note: declared here 729 | extern long make_file(); | ^~~~~~~~~ xbinunix.c:749:40: error: too many arguments to function 'make_file'; expected 0, have 2 749 | mh.m_rsrclen = make_file(files.f_rsrc, compressed); | ^~~~~~~~~ ~~~~~~~~~~~~ xbinunix.c:729:21: note: declared here 729 | extern long make_file(); | ^~~~~~~~~ xbinunix.c: In function 'make_file': xbinunix.c:729:21: warning: old-style function definition [-Wold-style-definition] xbinunix.c:780:1: error: number of arguments doesn't match prototype 780 | { | ^ xbinunix.c:729:21: error: prototype declaration 729 | extern long make_file(); | ^~~~~~~~~ xbinunix.c:795:35: error: implicit declaration of function 'comp_to_bin' [-Wimplicit-function-declaration] 795 | nbytes += comp_to_bin(ibuf, outf); | ^~~~~~~~~~~ xbinunix.c:797:35: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration] 797 | nbytes += hex_to_bin(ibuf, outf); | ^~~~~~~~~~ xbinunix.c: At top level: xbinunix.c:804:1: error: return type defaults to 'int' [-Wimplicit-int] 804 | comp_c_crc(c) | ^~~~~~~~~~ xbinunix.c: In function 'comp_c_crc': xbinunix.c:804:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:811:1: error: return type defaults to 'int' [-Wimplicit-int] 811 | comp_e_crc(c) | ^~~~~~~~~~ xbinunix.c: In function 'comp_e_crc': xbinunix.c:811:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:819:1: error: return type defaults to 'int' [-Wimplicit-int] 819 | comp_to_bin(ibuf, outf) | ^~~~~~~~~~~ xbinunix.c: In function 'comp_to_bin': xbinunix.c:819:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:852:1: error: return type defaults to 'int' [-Wimplicit-int] 852 | hex_to_bin(ibuf, outf) | ^~~~~~~~~~ xbinunix.c: In function 'hex_to_bin': xbinunix.c:852:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c:863:21: error: implicit declaration of function 'hexit'; did you mean 'exit'? [-Wimplicit-function-declaration] 863 | c = hexit(*ip++); | ^~~~~ | exit xbinunix.c: At top level: xbinunix.c:870:1: error: return type defaults to 'int' [-Wimplicit-int] 870 | hexit(c) | ^~~~~ xbinunix.c: In function 'hexit': xbinunix.c:870:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:883:1: error: return type defaults to 'int' [-Wimplicit-int] 883 | put2(bp, value) | ^~~~ xbinunix.c: In function 'put2': xbinunix.c:883:1: warning: old-style function definition [-Wold-style-definition] xbinunix.c: At top level: xbinunix.c:891:1: error: return type defaults to 'int' [-Wimplicit-int] 891 | put4(bp, value) | ^~~~ xbinunix.c: In function 'put4': xbinunix.c:891:1: warning: old-style function definition [-Wold-style-definition] *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/xbin *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/xbin