=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for buffer-1.17
gcc -O  -c buffer.c
buffer.c:212:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main( argc, argv )
^~~~
buffer.c:216:2: warning: implicit declaration of function 'parse_args' is invalid in C99 [-Wimplicit-function-declaration]
        parse_args( argc, argv );
        ^
buffer.c:218:2: warning: implicit declaration of function 'set_handlers' is invalid in C99 [-Wimplicit-function-declaration]
        set_handlers();
        ^
buffer.c:220:2: warning: implicit declaration of function 'buffer_allocate' is invalid in C99 [-Wimplicit-function-declaration]
        buffer_allocate();
        ^
buffer.c:227:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
parse_args( argc, argv )
^~~~~~~~~~
buffer.c:247:18: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
                        write_pause = atoi( optarg );
                                      ^
buffer.c:258:5: warning: implicit declaration of function 'report_proc' is invalid in C99 [-Wimplicit-function-declaration]
                                report_proc();
                                ^
buffer.c:285:16: warning: implicit declaration of function 'do_size' is invalid in C99 [-Wimplicit-function-declaration]
                        showevery = do_size( optarg );
                                    ^
buffer.c:382:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
buffer.c:424:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
set_handlers()
^~~~~~~~~~~~
buffer.c:440:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
buffer.c:442:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
buffer_allocate()
^~~~~~~~~~~~~~~
buffer.c:460:2: warning: implicit declaration of function 'get_buffer' is invalid in C99 [-Wimplicit-function-declaration]
        get_buffer();
        ^
buffer.c:463:40: warning: conversion specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
                fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n",
                                                  ~~~^
                                                  %8s
buffer.c:470:2: warning: implicitly declaring C library function 'bzero' with type 'void (void *, unsigned long)'
        bzero( (char *)pbuffer, buffer_size );
        ^
buffer.c:470:2: note: please include the header <strings.h> or explicitly provide a declaration for 'bzero'
buffer.c:476:19: warning: implicit declaration of function 'new_sems' is invalid in C99 [-Wimplicit-function-declaration]
        pbuffer->semid = new_sems( 2 ); /* Get a read and a write sem */
                         ^
buffer.c:479:2: warning: implicit declaration of function 'lock' is invalid in C99 [-Wimplicit-function-declaration]
        lock( pbuffer->semid, pbuffer->blocks_used_lock );
        ^
buffer.c:484:2: warning: implicit declaration of function 'sem_set' is invalid in C99 [-Wimplicit-function-declaration]
        sem_set( pbuffer->semid, pbuffer->blocks_free_lock, blocks - 1 );
        ^
buffer.c:489:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
buffer.c:491:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
buffer_remove()
^~~~~~~~~~~~~
buffer.c:498:3: error: non-void function 'buffer_remove' should return a value [-Wreturn-type]
                return;
                ^
buffer.c:503:3: error: non-void function 'buffer_remove' should return a value [-Wreturn-type]
                return;
                ^
buffer.c:512:2: warning: implicit declaration of function 'remove_sems' is invalid in C99 [-Wimplicit-function-declaration]
        remove_sems( pbuffer->semid );
        ^
buffer.c:520:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
get_buffer()
^~~~~~~~~~
buffer.c:558:3: warning: implicit declaration of function 'writer' is invalid in C99 [-Wimplicit-function-declaration]
                writer();
                ^
buffer.c:562:3: warning: implicit declaration of function 'reader' is invalid in C99 [-Wimplicit-function-declaration]
                reader();
                ^
buffer.c:564:3: warning: implicit declaration of function 'wait_for_writer_end' is invalid in C99 [-Wimplicit-function-declaration]
                wait_for_writer_end();
                ^
buffer.c:569:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
reader()
^~~~~~
buffer.c:577:3: warning: implicit declaration of function 'get_next_free_block' is invalid in C99 [-Wimplicit-function-declaration]
                get_next_free_block();
                ^
buffer.c:578:9: warning: implicit declaration of function 'fill_block' is invalid in C99 [-Wimplicit-function-declaration]
                if( ! fill_block() )
                      ^
buffer.c:586:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
get_next_free_block()
^~~~~~~~~~~~~~~~~~~
buffer.c:588:2: warning: implicit declaration of function 'test_writer' is invalid in C99 [-Wimplicit-function-declaration]
        test_writer();
        ^
buffer.c:598:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
fill_block()
^~~~~~~~~~
buffer.c:607:3: warning: implicit declaration of function 'unlock' is invalid in C99 [-Wimplicit-function-declaration]
                unlock( pbuffer->semid, pbuffer->blocks_used_lock );
                ^
buffer.c:647:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
writer()
^~~~~~
buffer.c:663:3: warning: implicit declaration of function 'get_next_filled_block' is invalid in C99 [-Wimplicit-function-declaration]
                get_next_filled_block();
                ^
buffer.c:664:8: warning: implicit declaration of function 'data_to_write' is invalid in C99 [-Wimplicit-function-declaration]
                if( !data_to_write() )
                     ^
buffer.c:673:4: warning: implicit declaration of function 'write_blocks_to_stdout' is invalid in C99 [-Wimplicit-function-declaration]
                        write_blocks_to_stdout( filled, first_block );
                        ^
buffer.c:681:3: warning: implicit declaration of function 'pr_out' is invalid in C99 [-Wimplicit-function-declaration]
                pr_out();
                ^
buffer.c:693:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
get_next_filled_block()
^~~~~~~~~~~~~~~~~~~~~
buffer.c:703:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
data_to_write()
^~~~~~~~~~~~~
buffer.c:708:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
write_blocks_to_stdout( filled, first_block )
^~~~~~~~~~~~~~~~~~~~~~
buffer.c:717:3: warning: implicit declaration of function 'write_block_to_stdout' is invalid in C99 [-Wimplicit-function-declaration]
                write_block_to_stdout();
                ^
buffer.c:721:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
write_block_to_stdout()
^~~~~~~~~~~~~~~~~~~~~
buffer.c:730:52: warning: conversion specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
                        fprintf( stderr, "W: next_k = %lu showevery = %lu\n", next_k, showevery );
                                                                      ~~^             ~~~~~~~~~
                                                                      %d
buffer.c:786:4: warning: implicit declaration of function 'end_writer' is invalid in C99 [-Wimplicit-function-declaration]
                        end_writer();
                        ^
buffer.c:800:4: warning: implicitly declaring C library function 'exit' with type 'void (int) __attribute__((noreturn))'
                        exit( -2 );
                        ^
buffer.c:800:4: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
buffer.c:808:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
end_writer()
^~~~~~~~~~
buffer.c:814:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
wait_for_writer_end()
^~~~~~~~~~~~~~~~~~~
buffer.c:824:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
test_writer()
^~~~~~~~~~~
buffer.c:839:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
do_size( arg )
^~~~~~~
buffer.c:866:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
pr_out()
^~~~~~
buffer.c:868:21: warning: flag ' ' results in undefined behavior with 'u' conversion specifier [-Wformat]
        fprintf( stderr, "% 10luK\r", outk );
                          ~^~~~~
buffer.c:901:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
report_proc()
^~~~~~~~~~~
52 warnings and 2 errors generated.
*** Error code 1

Stop.
make: stopped in /scratch/misc/buffer/work/buffer-1.17
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/misc/buffer
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/misc/buffer
