=> Bootstrap dependency digest>=20010302: found digest-20080510
===> 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 clamav-0.97.1
/usr/bin/make  all-recursive
Making all in libltdl
/bin/sh /scratch/security/clamav/work/clamav-0.97.1/config/install-sh -d .
cp ./argz_.h argz.h-t
mv argz.h-t argz.h
/usr/bin/make  all-am
  CC     dlopen.lo
  CCLD   dlopen.la
  CC     libltdlc_la-preopen.lo
  CC     libltdlc_la-lt__alloc.lo
  CC     libltdlc_la-lt_dlloader.lo
  CC     libltdlc_la-lt_error.lo
  CC     libltdlc_la-ltdl.lo
  CC     libltdlc_la-slist.lo
  CC     argz.lo
  CCLD   libltdlc.la
Making all in libclamav
/usr/bin/make  all-recursive
  CC     unrar15.lo
  CC     unrar.lo
  CC     unrar20.lo
  CC     unrarppm.lo
  CC     unrarvm.lo
  CC     unrarcmd.lo
  CC     unrarfilter.lo
  CC     unrarhlp.lo
  CCLD   libclamunrar.la
  CC     unrar_iface.lo
  CCLD   libclamunrar_iface.la
  CC     libclamav_la-matcher-ac.lo
  CC     libclamav_la-matcher-bm.lo
  CC     libclamav_la-matcher-hash.lo
  CC     libclamav_la-matcher.lo
matcher.c:453:47: warning: passing 'char [33]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        ctx->engine->cb_hash(ctx->fmap[0]->fd, size, md5, ctx->virname ? *ctx->virname : NULL, ctx->cb_ctx);
                                                     ^~~
matcher.c:795:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            ret = cli_lsig_eval(ctx, troot, &tdata, &info, refhash);
                                                           ^~~~~~~
matcher.c:533:136: note: passing argument to parameter 'hash' here
int cli_lsig_eval(cli_ctx *ctx, struct cli_matcher *root, struct cli_ac_data *acdata, struct cli_target_info *target_info, const char *hash)
                                                                                                                                       ^
matcher.c:803:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            ret = cli_lsig_eval(ctx, groot, &gdata, &info, refhash);
                                                           ^~~~~~~
matcher.c:533:136: note: passing argument to parameter 'hash' here
int cli_lsig_eval(cli_ctx *ctx, struct cli_matcher *root, struct cli_ac_data *acdata, struct cli_target_info *target_info, const char *hash)
                                                                                                                                       ^
3 warnings generated.
  CC     libclamav_la-others.lo
  CC     libclamav_la-readdb.lo
readdb.c:2709:37: warning: passing 'const struct dirent **' to parameter of type 'struct dirent **' discards qualifiers in nested pointer types
    while(!readdir_r(dd, &result.d, &dent) && dent) {
                                    ^~~~~
/usr/include/dirent.h:95:32: note: passing argument to parameter here
    struct dirent ** __restrict) __RENAME(__readdir_r30);
                               ^
1 warning generated.
  CC     libclamav_la-cvd.lo
  CC     libclamav_la-dsig.lo
  CC     libclamav_la-scanners.lo
  CC     libclamav_la-textdet.lo
  CC     libclamav_la-filetypes.lo
  CC     libclamav_la-rtf.lo
  CC     libclamav_la-blob.lo
  CC     libclamav_la-mbox.lo
mbox.c:2911:37: warning: passing 'const struct dirent **' to parameter of type 'struct dirent **' discards qualifiers in nested pointer types
                                while((readdir_r(dd, &result.d, &dent) == 0) && dent) {
                                                                ^~~~~
/usr/include/dirent.h:95:32: note: passing argument to parameter here
    struct dirent ** __restrict) __RENAME(__readdir_r30);
                               ^
1 warning generated.
  CC     libclamav_la-message.lo
  CC     libclamav_la-table.lo
  CC     libclamav_la-text.lo
  CC     libclamav_la-ole2_extract.lo
  CC     libclamav_la-vba_extract.lo
  CC     libclamav_la-msexpand.lo
  CC     libclamav_la-pe.lo
  CC     libclamav_la-pe_icons.lo
  CC     libclamav_la-disasm.lo
  CC     libclamav_la-upx.lo
  CC     libclamav_la-htmlnorm.lo
  CC     libclamav_la-chmunpack.lo
  CC     libclamav_la-rebuildpe.lo
  CC     libclamav_la-petite.lo
  CC     libclamav_la-wwunpack.lo
  CC     libclamav_la-unsp.lo
  CC     libclamav_la-aspack.lo
  CC     libclamav_la-packlibs.lo
  CC     libclamav_la-fsg.lo
  CC     libclamav_la-mew.lo
  CC     libclamav_la-upack.lo
  CC     libclamav_la-line.lo
  CC     libclamav_la-untar.lo
  CC     libclamav_la-unzip.lo
  CC     libclamav_la-inflate64.lo
  CC     libclamav_la-special.lo
  CC     libclamav_la-binhex.lo
  CC     libclamav_la-is_tar.lo
  CC     libclamav_la-tnef.lo
  CC     libclamav_la-autoit.lo
  CC     libclamav_la-unarj.lo
  CC     libclamav_la-bzlib.lo
  CC     libclamav_la-nulsft.lo
  CC     libclamav_la-infblock.lo
  CC     libclamav_la-pdf.lo
pdf.c:237:13: warning: enumeration value 'DECRYPTABLE_PDF' not handled in switch [-Wswitch-enum]
    switch (flag) {
            ^
pdf.c:1224:29: warning: passing '__uint8_t [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        dbg_printhex("Computed U", result2, 32);
                                   ^~~~~~~
pdf.c:1194:55: note: passing argument to parameter 'hex' here
static void dbg_printhex(const char *msg, const char *hex, unsigned len)
                                                      ^
pdf.c:1259:22: warning: passing '__uint8_t [16]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        dbg_printhex("md5", result, 32);
                            ^~~~~~
pdf.c:1194:55: note: passing argument to parameter 'hex' here
static void dbg_printhex(const char *msg, const char *hex, unsigned len)
                                                      ^
pdf.c:1266:23: warning: passing 'char *' to parameter of type 'const __uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            arc4_init(&arc4, pdf->key, pdf->keylen);
                             ^~~~~~~~
./arc4.h:28:53: note: passing argument to parameter 'key' here
void arc4_init(struct arc4_state *a, const uint8_t *key, unsigned keylength);
                                                    ^
pdf.c:1267:24: warning: passing 'char [32]' to parameter of type '__uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            arc4_apply(&arc4, data, 32);
                              ^~~~
./arc4.h:29:48: note: passing argument to parameter 'data' here
void arc4_apply(struct arc4_state *s, uint8_t *data, unsigned len);
                                               ^
pdf.c:1279:23: warning: passing 'char [32]' to parameter of type 'const __uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
            arc4_init(&arc4, data, len);
                             ^~~~
./arc4.h:28:53: note: passing argument to parameter 'key' here
void arc4_init(struct arc4_state *a, const uint8_t *key, unsigned keylength);
                                                    ^
pdf.c:1285:20: warning: passing 'char [32]' to parameter of type 'const __uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                arc4_init(&arc4, data, len);
                                 ^~~~
./arc4.h:28:53: note: passing argument to parameter 'key' here
void arc4_init(struct arc4_state *a, const uint8_t *key, unsigned keylength);
                                                    ^
pdf.c:1288:33: warning: passing '__uint8_t [16]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            dbg_printhex("computed U", result, 16);
                                       ^~~~~~
pdf.c:1194:55: note: passing argument to parameter 'hex' here
static void dbg_printhex(const char *msg, const char *hex, unsigned len)
                                                      ^
8 warnings generated.
  CC     libclamav_la-spin.lo
  CC     libclamav_la-yc.lo
  CC     libclamav_la-elf.lo
  CC     libclamav_la-sis.lo
  CC     libclamav_la-uuencode.lo
  CC     libclamav_la-phishcheck.lo
  CC     libclamav_la-phish_domaincheck_db.lo
  CC     libclamav_la-phish_whitelist.lo
  CC     libclamav_la-regex_list.lo
  CC     libclamav_la-regex_suffix.lo
  CC     libclamav_la-mspack.lo
  CC     libclamav_la-cab.lo
  CC     libclamav_la-entconv.lo
entconv.c:732:29: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types
                rc = iconv(*iconv_struct, &input,  &inleft, &out, &outleft);
                                          ^~~~~~
/usr/include/iconv.h:46:47: note: passing argument to parameter here
size_t  iconv(iconv_t, const char ** __restrict,
                                               ^
1 warning generated.
  CC     libclamav_la-hashtab.lo
  CC     libclamav_la-dconf.lo
  CC     libclamav_la-LzmaDec.lo
  CC     libclamav_la-lzma_iface.lo
  CC     libclamav_la-7z.lo
  CC     libclamav_la-7zFile.lo
  CC     libclamav_la-7zStream.lo
  CC     libclamav_la-7zCrc.lo
  CC     libclamav_la-7zBuf.lo
  CC     libclamav_la-Bcj2.lo
  CC     libclamav_la-Bra.lo
  CC     libclamav_la-Bra86.lo
  CC     libclamav_la-7zIn.lo
  CC     libclamav_la-7zDecode.lo
  CC     libclamav_la-7zItem.lo
  CC     libclamav_la-7zHeader.lo
  CC     libclamav_la-7zExtract.lo
  CC     libclamav_la-explode.lo
  CC     libclamav_la-textnorm.lo
  CC     libclamav_la-dlp.lo
  CC     libclamav_la-js-norm.lo
  CC     libclamav_la-uniq.lo
  GEN    version.h.tmp
git: not found
  GEN    version.h
  CC     libclamav_la-version.lo
  CC     libclamav_la-mpool.lo
  CC     libclamav_la-filtering.lo
  CC     libclamav_la-fmap.lo
  CC     libclamav_la-perflogging.lo
  CC     libclamav_la-sha256.lo
  CC     libclamav_la-sha1.lo
  CC     libclamav_la-bytecode.lo
  CC     libclamav_la-bytecode_vm.lo
bytecode_vm.c:710:60: warning: implicit conversion from 'unsigned long long' to '__uint8_t' (aka 'unsigned char') changes value from 18446744073709551615 to 255 [-Wconstant-conversion]
                          CHOOSE(READ1(sres, inst->u.cast.source); res = sres ? ~0ull : 0,
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
bytecode_vm.c:451:10: note: expanded from:
        case 0: OP0; break;\
                ^
bytecode_vm.c:408:7: note: expanded from:
                    OP;\
                    ^~
bytecode_vm.c:710:60: warning: implicit conversion from 'unsigned long long' to '__uint8_t' (aka 'unsigned char') changes value from 18446744073709551615 to 255 [-Wconstant-conversion]
                          CHOOSE(READ1(sres, inst->u.cast.source); res = sres ? ~0ull : 0,
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
bytecode_vm.c:451:10: note: expanded from:
        case 0: OP0; break;\
                ^
bytecode_vm.c:415:7: note: expanded from:
                    OP;\
                    ^~
bytecode_vm.c:710:60: warning: implicit conversion from 'unsigned long long' to '__uint16_t' (aka 'unsigned short') changes value from 18446744073709551615 to 65535 [-Wconstant-conversion]
                          CHOOSE(READ1(sres, inst->u.cast.source); res = sres ? ~0ull : 0,
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
bytecode_vm.c:451:10: note: expanded from:
        case 0: OP0; break;\
                ^
bytecode_vm.c:422:7: note: expanded from:
                    OP;\
                    ^~
bytecode_vm.c:710:60: warning: implicit conversion from 'unsigned long long' to '__uint32_t' (aka 'unsigned int') changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
                          CHOOSE(READ1(sres, inst->u.cast.source); res = sres ? ~0ull : 0,
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
bytecode_vm.c:451:10: note: expanded from:
        case 0: OP0; break;\
                ^
bytecode_vm.c:429:7: note: expanded from:
                    OP;\
                    ^~
4 warnings generated.
  CC     libclamav_la-cpio.lo
  CC     libclamav_la-macho.lo
  CC     libclamav_la-ishield.lo
  CC     libclamav_la-bytecode_api.lo
  CC     libclamav_la-bytecode_api_decl.lo
  CC     libclamav_la-cache.lo
  CC     libclamav_la-bytecode_detect.lo
  CC     libclamav_la-events.lo
events.c:150:13: warning: enumeration value 'multiple_concat' not handled in switch [-Wswitch-enum]
    switch (ev->multiple) {
            ^
events.c:199:13: warning: enumeration values 'multiple_sum' and 'multiple_concat' not handled in switch [-Wswitch-enum]
    switch (ev->multiple) {
            ^
events.c:243:13: warning: enumeration values 'multiple_chain' and 'multiple_sum' not handled in switch [-Wswitch-enum]
    switch (ev->multiple) {
            ^
events.c:302:13: warning: enumeration value 'ev_none' not handled in switch [-Wswitch-enum]
    switch (type) {
            ^
events.c:374:13: warning: enumeration value 'ev_none' not handled in switch [-Wswitch-enum]
    switch (type) {
            ^
5 warnings generated.
  CC     libclamav_la-arc4.lo
  CC     libclamav_la-bignum.lo
  CC     bytecode_nojit.lo
  CCLD   libclamav_nocxx.la
  CC     libclamav_internal_utils_la-str.lo
  CC     libclamav_internal_utils_la-md5.lo
  CC     libclamav_internal_utils_la-others_common.lo
  CC     libclamav_internal_utils_la-qsort.lo
  CC     libclamav_internal_utils_la-strlcpy.lo
  CC     libclamav_internal_utils_la-regcomp.lo
  CC     libclamav_internal_utils_la-regerror.lo
  CC     libclamav_internal_utils_la-regexec.lo
  CC     libclamav_internal_utils_la-regfree.lo
  CCLD   libclamav_internal_utils.la
  CCLD   libclamav.la
  CC     libclamav_internal_utils_nothreads_la-str.lo
  CC     libclamav_internal_utils_nothreads_la-md5.lo
  CC     libclamav_internal_utils_nothreads_la-others_common.lo
  CC     libclamav_internal_utils_nothreads_la-qsort.lo
  CC     libclamav_internal_utils_nothreads_la-strlcpy.lo
  CC     libclamav_internal_utils_nothreads_la-regcomp.lo
  CC     libclamav_internal_utils_nothreads_la-regerror.lo
  CC     libclamav_internal_utils_nothreads_la-regexec.lo
  CC     libclamav_internal_utils_nothreads_la-regfree.lo
  CCLD   libclamav_internal_utils_nothreads.la
Making all in clamscan
  CC     output.o
  CC     getopt.o
  CC     optparser.o
  CC     actions.o
  CC     misc.o
  CC     clamscan.o
  CC     manager.o
  CCLD   clamscan
Making all in clamd
  CC     output.o
  CC     optparser.o
  CC     getopt.o
  CC     misc.o
  CC     clamd.o
  CC     tcpserver.o
  CC     localserver.o
  CC     session.o
  CC     thrmgr.o
  CC     server-th.o
  CC     scanner.o
scanner.c:101:25: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    strncpy(c->virhash, md5, 32);
                        ^~~
/usr/include/string.h:64:57: note: passing argument to parameter here
char    *strncpy(char * __restrict, const char * __restrict, size_t);
                                                           ^
1 warning generated.
  CC     others.o
others.c:266:22: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
       unsigned char buff[CMSG_SPACE(sizeof(int))];
                     ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /scratch/security/clamav/work/clamav-0.97.1/clamd
*** Error code 1

Stop.
make: stopped in /scratch/security/clamav/work/clamav-0.97.1
*** Error code 1

Stop.
make: stopped in /scratch/security/clamav/work/clamav-0.97.1
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/security/clamav
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/security/clamav
