=> Bootstrap dependency digest>=20010302: found digest-20080510
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 bin86-0.16.17nb1
cd /scratch/devel/bin86/work/bin86-0.16.17 && /usr/pkg/bin/gmake PREFIX=/usr/pkg
set -e ; for d in ld as; do \
  (cd $d && /usr/pkg/bin/gmake "LIBS=" "CFLAGS=-O2 -D_POSIX_SOURCE" "LDFLAGS=" "BINDIR=/usr/pkg/bin" "LIBDIR=/usr/pkg/lib" "CC=cc" all;); \
 done
gmake[1]: Entering directory `/scratch/devel/bin86/work/bin86-0.16.17/ld'
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c dumps.c -o dumps.o
dumps.c:22:13: warning: implicit declaration of function 'memcmp' is invalid in C99 [-Wimplicit-function-declaration]
        if( memcmp(d, "libc", 4) == 0 && !modptr->loadflag ) continue;
            ^
dumps.c:25:6: warning: implicitly declaring C library function 'strlen' with type 'unsigned long (const char *)'
        i = strlen(modptr->modname);
            ^
dumps.c:25:6: note: please include the header <string.h> or explicitly provide a declaration for 'strlen'
2 warnings generated.
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c io.c -o io.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c ld.c -o ld.o
ld.c:221:8: warning: implicit declaration of function 'ld86r' is invalid in C99 [-Wimplicit-function-declaration]
       ld86r(argc, argv);
       ^
1 warning generated.
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c readobj.c -o readobj.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c table.c -o table.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c typeconv.c -o typeconv.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c linksyms.c -o linksyms.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c mkar.c -o mkar.o
mkar.c:41:7: warning: implicit declaration of function 'fatalerror' is invalid in C99 [-Wimplicit-function-declaration]
      fatalerror("-o option required for -r");
      ^
1 warning generated.
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writex86.c -o writex86.o
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT  -c writebin.c
cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writeemu.c -o writeemu.o
cc  dumps.o io.o ld.o readobj.o table.o typeconv.o linksyms.o mkar.o writex86.o writebin.o writeemu.o -o ld86
cc -O2 -D_POSIX_SOURCE    objchop.c   -o objchop
objchop.c:18:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc, argv)
^~~~
objchop.c:23:20: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
   if( argc != 5 ) fatal("Usage: objchop a.out text.bin data.bin sizes.asm");
                   ^
objchop.c:37:4: warning: implicit declaration of function 'write_file' is invalid in C99 [-Wimplicit-function-declaration]
   write_file(argv[2], header.a_text);
   ^
objchop.c:47:30: warning: conversion specifies type 'long' but the argument has type 'Long' (aka 'int') [-Wformat]
   fprintf(ofd, "TEXT_SIZE=%ld\nDATA_SIZE=%ld\nBSS_SIZE=%ld\nALLOC_SIZE=%ld\n",
                           ~~^
                           %d
objchop.c:47:45: warning: conversion specifies type 'long' but the argument has type 'Long' (aka 'int') [-Wformat]
   fprintf(ofd, "TEXT_SIZE=%ld\nDATA_SIZE=%ld\nBSS_SIZE=%ld\nALLOC_SIZE=%ld\n",
                                          ~~^
                                          %d
objchop.c:47:59: warning: conversion specifies type 'long' but the argument has type 'Long' (aka 'int') [-Wformat]
   fprintf(ofd, "TEXT_SIZE=%ld\nDATA_SIZE=%ld\nBSS_SIZE=%ld\nALLOC_SIZE=%ld\n",
                                                        ~~^
                                                        %d
objchop.c:47:75: warning: conversion specifies type 'long' but the argument has type 'Long' (aka 'int') [-Wformat]
   fprintf(ofd, "TEXT_SIZE=%ld\nDATA_SIZE=%ld\nBSS_SIZE=%ld\nALLOC_SIZE=%ld\n",
                                                                        ~~^
                                                                        %d
objchop.c:52:4: warning: implicitly declaring C library function 'exit' with type 'void (int) __attribute__((noreturn))'
   exit(0);
   ^
objchop.c:52:4: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
objchop.c:55:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
write_file(fname, bsize)
^~~~~~~~~~
objchop.c:78:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
objchop.c:80:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
fatal(str)
^~~~~
11 warnings generated.
cc -O2 -D_POSIX_SOURCE    catimage.c   -o catimage
catimage.c:38:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc, argv)
^~~~
catimage.c:46:7: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
      fatal("Usage: catimage mem.bin boot.out [a1.out] ... [a9.out]");
      ^
catimage.c:48:4: warning: implicit declaration of function 'open_obj' is invalid in C99 [-Wimplicit-function-declaration]
   open_obj(argv[2]);
   ^
catimage.c:53:4: warning: implicit declaration of function 'read_symtable' is invalid in C99 [-Wimplicit-function-declaration]
   read_symtable();
   ^
catimage.c:70:10: warning: implicit declaration of function 'copy_segment' is invalid in C99 [-Wimplicit-function-declaration]
         copy_segment(image_offset, A_TEXTPOS(header), header.a_text);
         ^
catimage.c:82:7: warning: implicit declaration of function 'patch_bin' is invalid in C99 [-Wimplicit-function-declaration]
      patch_bin(text_offt[image_id], (unsigned)(text_off>>4));
      ^
catimage.c:98:4: warning: implicitly declaring C library function 'exit' with type 'void (int) __attribute__((noreturn))'
   exit(0);
   ^
catimage.c:98:4: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
catimage.c:101:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
open_obj(fname)
^~~~~~~~
catimage.c:116:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
catimage.c:118:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
copy_segment(out_offset, in_offset, length)
^~~~~~~~~~~~
catimage.c:142:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
catimage.c:144:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
patch_bin(file_off, value)
^~~~~~~~~
catimage.c:149:24: error: non-void function 'patch_bin' should return a value [-Wreturn-type]
   if( file_off <= 0 ) return;
                       ^
catimage.c:163:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
read_symtable()
^~~~~~~~~~~~~
catimage.c:183:11: warning: implicit declaration of function 'memcmp' is invalid in C99 [-Wimplicit-function-declaration]
      if( memcmp(item.n_name, "__seg", 5) != 0 || item.n_name[6] != '_' )
          ^
catimage.c:234:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
fatal(str)
^~~~~
15 warnings and 1 error generated.
gmake[1]: *** [catimage] Error 1
gmake[1]: Leaving directory `/scratch/devel/bin86/work/bin86-0.16.17/ld'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /bulk-data/pkgsrc/devel/bin86
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/devel/bin86
