=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/misc/buffer", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for buffer-1.17nb1 --- buffer.o --- --- sem.o --- --- buffer.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSYS5 -c buffer.c --- sem.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSYS5 -c sem.c sem.c: In function 'sem_set': sem.c:60:1: warning: old-style function definition [-Wold-style-definition] 60 | sem_set( sem_id, semn, val ) | ^~~~~~~ sem.c:74:17: error: too many arguments to function 'byee'; expected 0, have 1 74 | byee( -1 ); | ^~~~ ~~ sem.c:53:13: note: declared here 53 | extern void byee(); | ^~~~ sem.c: In function 'new_sems': sem.c:79:1: warning: old-style function definition [-Wold-style-definition] 79 | new_sems( nsems ) | ^~~~~~~~ --- buffer.o --- buffer.c:214:1: error: return type defaults to 'int' [-Wimplicit-int] 214 | main( argc, argv ) | ^~~~ --- sem.o --- sem.c:89:17: error: too many arguments to function 'byee'; expected 0, have 1 89 | byee( -1 ); | ^~~~ ~~ sem.c:53:13: note: declared here 53 | extern void byee(); | ^~~~ --- buffer.o --- buffer.c: In function 'main': buffer.c:214:1: warning: old-style function definition [-Wold-style-definition] --- sem.o --- sem.c: In function 'do_sem': sem.c:100:1: warning: old-style function definition [-Wold-style-definition] 100 | do_sem( sem_id, pbuf, err ) | ^~~~~~ sem.c:115:25: error: too many arguments to function 'byee'; expected 0, have 1 115 | byee( -1 ); | ^~~~ ~~ sem.c:53:13: note: declared here 53 | extern void byee(); | ^~~~ sem.c: In function 'lock': sem.c:122:1: warning: old-style function definition [-Wold-style-definition] 122 | lock( sem_id, semn ) | ^~~~ sem.c: In function 'unlock': sem.c:136:1: warning: old-style function definition [-Wold-style-definition] 136 | unlock( sem_id, semn ) | ^~~~~~ sem.c: In function 'remove_sems': sem.c:150:1: warning: old-style function definition [-Wold-style-definition] 150 | remove_sems( sem_id ) | ^~~~~~~~~~~ --- buffer.o --- buffer.c:218:9: error: implicit declaration of function 'parse_args' [-Wimplicit-function-declaration] 218 | parse_args( argc, argv ); | ^~~~~~~~~~ buffer.c:220:9: error: implicit declaration of function 'set_handlers'; did you mean 'sa_handler'? [-Wimplicit-function-declaration] 220 | set_handlers(); | ^~~~~~~~~~~~ | sa_handler buffer.c:222:9: error: implicit declaration of function 'buffer_allocate' [-Wimplicit-function-declaration] 222 | buffer_allocate(); | ^~~~~~~~~~~~~~~ buffer.c:226:9: error: too many arguments to function 'byee'; expected 0, have 1 226 | byee( 0 ); | ^~~~ ~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: At top level: buffer.c:229:1: error: return type defaults to 'int' [-Wimplicit-int] 229 | parse_args( argc, argv ) | ^~~~~~~~~~ buffer.c: In function 'parse_args': buffer.c:229:1: warning: old-style function definition [-Wold-style-definition] buffer.c:260:33: error: implicit declaration of function 'report_proc' [-Wimplicit-function-declaration] 260 | report_proc(); | ^~~~~~~~~~~ buffer.c:262:33: error: too many arguments to function 'byee'; expected 0, have 1 262 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:268:33: error: too many arguments to function 'byee'; expected 0, have 1 268 | byee ( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:276:33: error: too many arguments to function 'byee'; expected 0, have 1 276 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:282:33: error: too many arguments to function 'byee'; expected 0, have 1 282 | byee ( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:287:37: error: implicit declaration of function 'do_size' [-Wimplicit-function-declaration] 287 | showevery = do_size( optarg ); | ^~~~~~~ buffer.c:305:33: error: too many arguments to function 'byee'; expected 0, have 1 305 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:314:33: error: too many arguments to function 'byee'; expected 0, have 1 314 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:322:33: error: too many arguments to function 'byee'; expected 0, have 1 322 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:335:33: error: too many arguments to function 'byee'; expected 0, have 1 335 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:352:25: error: too many arguments to function 'byee'; expected 0, have 1 352 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:363:25: error: too many arguments to function 'byee'; expected 0, have 1 363 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:367:25: error: too many arguments to function 'byee'; expected 0, have 1 367 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:375:17: error: too many arguments to function 'byee'; expected 0, have 1 375 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:381:17: error: too many arguments to function 'byee'; expected 0, have 1 381 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: In function 'shutdown': buffer.c:400:9: error: too many arguments to function 'byee'; expected 0, have 1 400 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: In function 'child_shutdown': buffer.c:421:25: error: too many arguments to function 'byee'; expected 0, have 1 421 | byee( 0 ); | ^~~~ ~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: At top level: buffer.c:426:1: error: return type defaults to 'int' [-Wimplicit-int] 426 | set_handlers() | ^~~~~~~~~~~~ buffer.c: In function 'set_handlers': buffer.c:431:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 431 | signal( SIGHUP, shutdown ); | ^~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from buffer.c:109: /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); | ^~~~~~~~~~~~~ buffer.c:388:1: note: 'shutdown' declared here 388 | shutdown() | ^~~~~~~~ buffer.c:432:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 432 | signal( SIGINT, shutdown ); | ^~~~~~~~ | | | 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); | ^~~~~~~~~~~~~ buffer.c:388:1: note: 'shutdown' declared here 388 | shutdown() | ^~~~~~~~ buffer.c:433:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 433 | signal( SIGQUIT, shutdown ); | ^~~~~~~~ | | | 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); | ^~~~~~~~~~~~~ buffer.c:388:1: note: 'shutdown' declared here 388 | shutdown() | ^~~~~~~~ buffer.c:434:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 434 | signal( SIGTERM, shutdown ); | ^~~~~~~~ | | | 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); | ^~~~~~~~~~~~~ buffer.c:388:1: note: 'shutdown' declared here 388 | shutdown() | ^~~~~~~~ buffer.c:436:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 436 | signal( SIGCHLD, child_shutdown ); | ^~~~~~~~~~~~~~ | | | 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); | ^~~~~~~~~~~~~ buffer.c:405:1: note: 'child_shutdown' declared here 405 | child_shutdown() | ^~~~~~~~~~~~~~ buffer.c: At top level: buffer.c:444:1: error: return type defaults to 'int' [-Wimplicit-int] 444 | buffer_allocate() | ^~~~~~~~~~~~~~~ buffer.c: In function 'buffer_allocate': buffer.c:459:17: error: too many arguments to function 'byee'; expected 0, have 1 459 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:462:9: error: implicit declaration of function 'get_buffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] 462 | get_buffer(); | ^~~~~~~~~~ | setbuffer buffer.c:478:26: error: implicit declaration of function 'new_sems' [-Wimplicit-function-declaration] 478 | pbuffer->semid = new_sems( 2 ); /* Get a read and a write sem */ | ^~~~~~~~ buffer.c:481:9: error: implicit declaration of function 'lock'; did you mean 'lockf'? [-Wimplicit-function-declaration] 481 | lock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~ | lockf --- sem.o --- *** [sem.o] Error code 1 bmake: stopped making "all" in /tmp/work/misc/buffer/work/buffer-1.17 --- buffer.o --- buffer.c:486:9: error: implicit declaration of function 'sem_set'; did you mean 'semget'? [-Wimplicit-function-declaration] 486 | sem_set( pbuffer->semid, pbuffer->blocks_free_lock, blocks - 1 ); | ^~~~~~~ | semget buffer.c: In function 'buffer_remove': buffer.c:514:9: error: implicit declaration of function 'remove_sems' [-Wimplicit-function-declaration] 514 | remove_sems( pbuffer->semid ); | ^~~~~~~~~~~ buffer.c: At top level: buffer.c:522:1: error: return type defaults to 'int' [-Wimplicit-int] 522 | get_buffer() | ^~~~~~~~~~ buffer.c: In function 'get_buffer': buffer.c:531:17: error: too many arguments to function 'byee'; expected 0, have 1 531 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: In function 'start_reader_and_writer': buffer.c:550:17: error: too many arguments to function 'byee'; expected 0, have 1 550 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:560:17: error: implicit declaration of function 'writer'; did you mean 'write'? [-Wimplicit-function-declaration] 560 | writer(); | ^~~~~~ | write buffer.c:564:17: error: implicit declaration of function 'reader'; did you mean 'read'? [-Wimplicit-function-declaration] 564 | reader(); | ^~~~~~ | read buffer.c:566:17: error: implicit declaration of function 'wait_for_writer_end' [-Wimplicit-function-declaration] 566 | wait_for_writer_end(); | ^~~~~~~~~~~~~~~~~~~ buffer.c: At top level: buffer.c:571:1: error: return type defaults to 'int' [-Wimplicit-int] 571 | reader() | ^~~~~~ buffer.c: In function 'reader': buffer.c:579:17: error: implicit declaration of function 'get_next_free_block' [-Wimplicit-function-declaration] 579 | get_next_free_block(); | ^~~~~~~~~~~~~~~~~~~ buffer.c:580:23: error: implicit declaration of function 'fill_block' [-Wimplicit-function-declaration] 580 | if( ! fill_block() ) | ^~~~~~~~~~ buffer.c: At top level: buffer.c:588:1: error: return type defaults to 'int' [-Wimplicit-int] 588 | get_next_free_block() | ^~~~~~~~~~~~~~~~~~~ buffer.c: In function 'get_next_free_block': buffer.c:590:9: error: implicit declaration of function 'test_writer' [-Wimplicit-function-declaration] 590 | test_writer(); | ^~~~~~~~~~~ buffer.c: At top level: buffer.c:600:1: error: return type defaults to 'int' [-Wimplicit-int] 600 | fill_block() | ^~~~~~~~~~ buffer.c: In function 'fill_block': buffer.c:609:17: error: implicit declaration of function 'unlock'; did you mean 'unlink'? [-Wimplicit-function-declaration] 609 | unlock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~~~ | unlink buffer.c:629:17: error: too many arguments to function 'byee'; expected 0, have 1 629 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c:636:30: error: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 636 | if( toread ) bzero( start, toread ); | ^~~~~ buffer.c:636:30: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] buffer.c: At top level: buffer.c:649:1: error: return type defaults to 'int' [-Wimplicit-int] 649 | writer() | ^~~~~~ buffer.c: In function 'writer': buffer.c:665:17: error: implicit declaration of function 'get_next_filled_block'; did you mean 'get_next_free_block'? [-Wimplicit-function-declaration] 665 | get_next_filled_block(); | ^~~~~~~~~~~~~~~~~~~~~ | get_next_free_block buffer.c:666:22: error: implicit declaration of function 'data_to_write' [-Wimplicit-function-declaration] 666 | if( !data_to_write() ) | ^~~~~~~~~~~~~ buffer.c:675:25: error: implicit declaration of function 'write_blocks_to_stdout' [-Wimplicit-function-declaration] 675 | write_blocks_to_stdout( filled, first_block ); | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c:683:17: error: implicit declaration of function 'pr_out' [-Wimplicit-function-declaration] 683 | pr_out(); | ^~~~~~ buffer.c: At top level: buffer.c:695:1: error: return type defaults to 'int' [-Wimplicit-int] 695 | get_next_filled_block() | ^~~~~~~~~~~~~~~~~~~~~ buffer.c:705:1: error: return type defaults to 'int' [-Wimplicit-int] 705 | data_to_write() | ^~~~~~~~~~~~~ buffer.c:710:1: error: return type defaults to 'int' [-Wimplicit-int] 710 | write_blocks_to_stdout( filled, first_block ) | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c: In function 'write_blocks_to_stdout': buffer.c:710:1: warning: old-style function definition [-Wold-style-definition] buffer.c:719:17: error: implicit declaration of function 'write_block_to_stdout'; did you mean 'write_blocks_to_stdout'? [-Wimplicit-function-declaration] 719 | write_block_to_stdout(); | ^~~~~~~~~~~~~~~~~~~~~ | write_blocks_to_stdout buffer.c: At top level: buffer.c:723:1: error: return type defaults to 'int' [-Wimplicit-int] 723 | write_block_to_stdout() | ^~~~~~~~~~~~~~~~~~~~~ buffer.c: In function 'write_block_to_stdout': buffer.c:741:17: error: too many arguments to function 'byee'; expected 0, have 1 741 | byee( -1 ); | ^~~~ ~~ buffer.c:128:6: note: declared here 128 | void byee(); | ^~~~ buffer.c: In function 'byee': buffer.c:780:1: warning: old-style function definition [-Wold-style-definition] 780 | byee( exit_val ) | ^~~~ buffer.c:782:1: error: number of arguments doesn't match prototype 782 | { | ^ buffer.c:128:6: error: prototype declaration 128 | void byee(); | ^~~~ buffer.c:788:25: error: implicit declaration of function 'end_writer'; did you mean 'writer'? [-Wimplicit-function-declaration] 788 | end_writer(); | ^~~~~~~~~~ | writer buffer.c: At top level: buffer.c:810:1: error: return type defaults to 'int' [-Wimplicit-int] 810 | end_writer() | ^~~~~~~~~~ buffer.c:816:1: error: return type defaults to 'int' [-Wimplicit-int] 816 | wait_for_writer_end() | ^~~~~~~~~~~~~~~~~~~ buffer.c:826:1: error: return type defaults to 'int' [-Wimplicit-int] 826 | test_writer() | ^~~~~~~~~~~ buffer.c: In function 'test_writer': buffer.c:831:17: error: too many arguments to function 'byee'; expected 0, have 1 831 | byee( -1 ); | ^~~~ ~~ buffer.c:780:1: note: declared here 780 | byee( exit_val ) | ^~~~ buffer.c: At top level: buffer.c:841:1: error: return type defaults to 'int' [-Wimplicit-int] 841 | do_size( arg ) | ^~~~~~~ buffer.c: In function 'do_size': buffer.c:841:1: warning: old-style function definition [-Wold-style-definition] buffer.c: At top level: buffer.c:868:1: error: return type defaults to 'int' [-Wimplicit-int] 868 | pr_out() | ^~~~~~ buffer.c:876:1: error: return type defaults to 'int' [-Wimplicit-int] 876 | bzero( b, l ) | ^~~~~ buffer.c:876:1: warning: conflicting types for built-in function 'bzero'; expected 'void(void *, long unsigned int)' [-Wbuiltin-declaration-mismatch] buffer.c: In function 'bzero': buffer.c:876:1: warning: old-style function definition [-Wold-style-definition] buffer.c: At top level: buffer.c:883:1: error: return type defaults to 'int' [-Wimplicit-int] 883 | usleep_back() | ^~~~~~~~~~~ buffer.c:887:1: error: return type defaults to 'int' [-Wimplicit-int] 887 | usleep( u ) | ^~~~~~ buffer.c: In function 'usleep': buffer.c:891:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 891 | signal( SIGALRM, usleep_back ); | ^~~~~~~~~~~ | | | int (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ buffer.c:883:1: note: 'usleep_back' declared here 883 | usleep_back() | ^~~~~~~~~~~ buffer.c: At top level: buffer.c:903:1: error: return type defaults to 'int' [-Wimplicit-int] 903 | report_proc() | ^~~~~~~~~~~ *** [buffer.o] Error code 1 bmake: stopped making "all" in /tmp/work/misc/buffer/work/buffer-1.17 bmake: 2 errors bmake: stopped making "all" in /tmp/work/misc/buffer/work/buffer-1.17 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/buffer *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/buffer