------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/libmilter-8.15.2_1.txz SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by antivirus-3.30_10 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by antivirus-3.30_10 for building => SHA256 Checksum OK for antivirus-3.30.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by antivirus-3.30_10 for building ===> Extracting for antivirus-3.30_10 ===> antivirus-3.30_10 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by antivirus-3.30_10 for building => SHA256 Checksum OK for antivirus-3.30.tar.gz. Extracted Memory Use: 0.05M SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for antivirus-3.30_10 ===> Applying ports patches for antivirus-3.30_10 ===> Cleanly applied ports patch(es) patch-Makefile patch-antivirus.c SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on shared library: libmilter.so.7 - found (/usr/local/lib/libmilter.so.7) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> antivirus-3.30_10 depends on shared library: libmilter.so.7 - found (/usr/local/lib/libmilter.so.7) ===> Configuring for antivirus-3.30_10 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for antivirus-3.30_10 --- antivirus --- cc -pipe -Wall -D__FreeBSD__=9 -I/usr/local/include -O2 -fno-strict-aliasing -I/usr/local/include/libmilter/ -I/usr/local/include/ antivirus.c compilestamp.c -o antivirus -L/usr/local//usr/local/libmilter/ -L/usr/local//usr/local/libsm/ -lmilter -lpthread -Wl,-rpath,/usr/local/lib -L/usr/local/lib antivirus.c: In function 'mlfi_envfrom': antivirus.c:187:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"mlfi_envfrom(0x%x, %s)",(int)ctx,argv[0]); ^ antivirus.c:191:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0],(int)priv); ^ antivirus.c:191:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0],(int)priv); ^ antivirus.c:218:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0],qid); ^ antivirus.c:259:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0]); ^ antivirus.c: In function 'mlfi_envrcpt': antivirus.c:268:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"mlfi_envrcpt(0x%x, %s)",(int)ctx,argv[0]); ^ antivirus.c:294:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0]); ^ antivirus.c:301:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,argv[0]); ^ antivirus.c: In function 'mlfi_header': antivirus.c:311:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_header(0x%x, %s, )",(int)ctx,headerf); ^ antivirus.c:322:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,headerf); ^ antivirus.c: In function 'mlfi_eoh': antivirus.c:331:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eoh(0x%x)",(int)ctx); ^ antivirus.c:339:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eoh(0x%x) => SMFIS_TEMPFAIL",(int)ctx); ^ antivirus.c:344:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eoh(0x%x) => SMFIS_CONTINUE",(int)ctx); ^ antivirus.c: In function 'mlfi_body': antivirus.c:355:48: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_body(0x%x, 0x%x, %d)",(int)ctx,(int)bodyp,bodylen); ^ antivirus.c:355:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_body(0x%x, 0x%x, %d)",(int)ctx,(int)bodyp,bodylen); ^ antivirus.c:355:44: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] syslog(LOG_ERR,"smfi_body(0x%x, 0x%x, %d)",(int)ctx,(int)bodyp,bodylen); ~^ ~~~~~~~ %ld antivirus.c:372:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,(int)bodyp,bodylen); ^ antivirus.c:372:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,(int)bodyp,bodylen); ^ antivirus.c:371:44: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] syslog(LOG_ERR,"smfi_body(0x%x, 0x%x, %d) => SMFIS_CONTINUE", ~^ %ld (int)ctx,(int)bodyp,bodylen); ~~~~~~~ antivirus.c: In function 'externalcommand': antivirus.c:384:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"externalcommand(0x%x, ..., %s, ...)",(int)ctx,p); ^ antivirus.c:440:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,p,WEXITSTATUS(priv->childstatus)); ^ antivirus.c:447:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx,p); ^ antivirus.c:453:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"externalcommand(0x%x, ..., %s, ...) => -1",(int)ctx,p); ^ antivirus.c: In function 'virusscan': antivirus.c:529:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"virusscan(0x%x, ...)",(int)ctx); ^ antivirus.c:561:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (int)ctx, retval,priv->workdir); ^ antivirus.c:610:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"virusscan(0x%x, ...) => SMFIS_CONTINUE",(int)ctx); ^ antivirus.c: In function 'mlfi_eom': antivirus.c:700:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x)",(int)ctx); ^ antivirus.c:769:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x) => SMFIS_REJECT",(int)ctx); ^ antivirus.c:779:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x) => SMFIS_TEMPFAIL",(int)ctx); ^ antivirus.c:794:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x) => SMFIS_REJECT",(int)ctx); ^ antivirus.c:803:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x) => SMFIS_TEMPFAIL",(int)ctx); ^ antivirus.c:812:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_eom(0x%x) => SMFIS_CONTINUE",(int)ctx); ^ antivirus.c: In function 'mlfi_abort': antivirus.c:819:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_abort(0x%x)",(int)ctx); ^ antivirus.c:822:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_abort(0x%x) => SMFIS_CONTINUE",(int)ctx); ^ antivirus.c: In function 'cleanup': antivirus.c:832:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"cleanup(0x%x)",(int)ctx); ^ antivirus.c:932:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"cleanup(0x%x) => (void)",(int)ctx); ^ antivirus.c: In function 'mlfi_close': antivirus.c:940:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_close(0x%x)",(int)ctx); ^ antivirus.c:947:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] syslog(LOG_ERR,"smfi_close(0x%x) => SMFIS_CONTINUE",(int)ctx); ^ antivirus.c: In function 'readconfig': antivirus.c:1084:36: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] snprintf(fmt,sizeof(fmt),"%%%ds %%%dc",sizeof(token),sizeof(value)); ~^ ~~~~~~~~~~~~~ %ld antivirus.c:1084:42: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] snprintf(fmt,sizeof(fmt),"%%%ds %%%dc",sizeof(token),sizeof(value)); ~^ ~~~~~~~~~~~~~ %ld antivirus.c: In function 'virusscan': antivirus.c:586:3: warning: 'strncat' specified bound 512 equals destination size [-Wstringop-overflow=] strncat(viruses," ",sizeof(viruses)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ antivirus.c: In function 'extscan': antivirus.c:668:6: warning: 'strncat' specified bound 1024 equals destination size [-Wstringop-overflow=] strncat(buf," ",sizeof(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ antivirus.c: In function 'virusscan': antivirus.c:587:8: warning: 'strncat' specified bound 512 equals destination size [-Wstringop-overflow=] strncat(viruses,tmp,sizeof(viruses)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ antivirus.c: In function 'extscan': antivirus.c:669:4: warning: 'strncat' specified bound 1024 equals destination size [-Wstringop-overflow=] strncat(buf,direntp->d_name,sizeof(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: run-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: stage ------------------------------------------------------------------------------- ===> Staging for antivirus-3.30_10 ===> Generating temporary packing list install -s -m 555 /construction/mail/antivirus-milter/antivirus-3.30/antivirus /construction/mail/antivirus-milter/stage/usr/local/libexec/antivirus install -m 0644 /construction/mail/antivirus-milter/antivirus-3.30/antivirus.conf /construction/mail/antivirus-milter/stage/usr/local/etc/antivirus.conf-dist install -m 0644 /construction/mail/antivirus-milter/antivirus-3.30/clamav.conf /construction/mail/antivirus-milter/stage/usr/local/etc/antivirus.conf-clamav /bin/mkdir -p /construction/mail/antivirus-milter/stage/var/spool/antivirus/spool /construction/mail/antivirus-milter/stage/var/spool/antivirus/run /construction/mail/antivirus-milter/stage/var/spool/antivirus/quarantine Add to your *.mc configfile: INPUT_MAIL_FILTER(`antivirus', `S=local:/var/spool/antivirus/antivirus.sock, F=') ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) ====> Running Q/A tests (stage-qa) Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: package ------------------------------------------------------------------------------- ===> Building package for antivirus-3.30_10 file sizes/checksums [4]: 0% file sizes/checksums [4]: 100% packing files [4]: 0% packing files [4]: 100% packing directories [4]: 0% packing directories [4]: 100% SUCCEEDED 00:00:00 TOTAL TIME 00:00:02