Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2014 14:38:32 GMT
From:      Jez Hancock <jez.hancock-freebsdpr@munk.me.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190178: ClamAV 0.98.3 port build broken in unit testing
Message-ID:  <201405241438.s4OEcW6F009122@cgiserv.freebsd.org>
Resent-Message-ID: <201405241440.s4OEe0tO099559@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190178
>Category:       ports
>Synopsis:       ClamAV 0.98.3 port build broken in unit testing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 24 14:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jez Hancock
>Release:        10.0-RELEASE-p3
>Organization:
>Environment:
FreeBSD fbsd.munk.me.uk 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
During upgrade of ClamAV from 0.98.3_3 to 0.98.3_5, port installation fails during the unit test stage:

[14:37:19] root@fbsd /usr/ports/security/clamav#                                ; make build
===>  Patching for clamav-0.98.3_5
===>  Applying FreeBSD patches for clamav-0.98.3_5
===>   clamav-0.98.3_5 depends on file: /usr/local/include/check.h - found
===>   clamav-0.98.3_5 depends on file: /usr/local/bin/python2.7 - found
===>   clamav-0.98.3_5 depends on executable: gmake - found
===>   clamav-0.98.3_5 depends on shared library: libcurl.so - found
===>   clamav-0.98.3_5 depends on shared library: libltdl.so - found
===>   clamav-0.98.3_5 depends on shared library: libxml2.so - found
===>  Configuring for clamav-0.98.3_5

..

Making check in unit_tests
gmake[3]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake  check_clamav check_clamd check_fpu_endian check_freshclam.sh check_sigtool.sh check_unit_vg.sh check1_clamscan.sh check2_clamd.sh check3_clamd.sh check4_clamd.sh check5_clamd_vg.sh check6_clamd_vg.sh check7_clamd_hg.sh check8_clamd_hg.sh check9_clamscan_vg.sh
gmake[4]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
cp input/clamav.hdb clamav.hdb
  CC     check_clamav-check_clamav.o
  CC     check_clamav-check_jsnorm.o
check_jsnorm.c:151:12: warning: implicit conversion from 'double' to 'int'
      changes value from 0.12345 to 0 [-Wliteral-conversion]
        int val = 0.12345;
            ~~~   ^~~~~~~
1 warning generated.
  CC     check_clamav-check_str.o
  CC     check_clamav-check_regex.o
  CC     check_clamav-check_disasm.o
  CC     check_clamav-check_uniq.o
  CC     check_clamav-check_matchers.o
  CC     check_clamav-check_htmlnorm.o
  CC     check_clamav-check_bytecode.o
  CCLD   check_clamav
  CC     check_clamd-check_clamd.o
  CCLD   check_clamd
  CC     check_fpu_endian-check_fpu_endian.o
  CCLD   check_fpu_endian
gmake[4]: Nothing to be done for `check_freshclam.sh'.
gmake[4]: Nothing to be done for `check_sigtool.sh'.
cat ../unit_tests/.split/split.clam-phish-exeaa ../unit_tests/.split/split.clam-phish-exeab > clam-phish-exe
gmake[4]: Nothing to be done for `check1_clamscan.sh'.
gmake[4]: Nothing to be done for `check2_clamd.sh'.
gmake[4]: Nothing to be done for `check3_clamd.sh'.
gmake[4]: Nothing to be done for `check4_clamd.sh'.
gmake[4]: Nothing to be done for `check5_clamd_vg.sh'.
gmake[4]: Nothing to be done for `check6_clamd_vg.sh'.
gmake[4]: Nothing to be done for `check7_clamd_hg.sh'.
gmake[4]: Nothing to be done for `check8_clamd_hg.sh'.
gmake[4]: Nothing to be done for `check9_clamscan_vg.sh'.
gmake[4]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake  check-TESTS
gmake[4]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake[5]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
FAIL: check1_clamscan.sh
FAIL: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
========================================
3 of 7 tests failed
(6 tests were not run)
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
========================================
gmake[5]: *** [test-suite.log] Error 1
gmake[5]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake[4]: *** [check-TESTS] Error 2
gmake[4]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
gmake[2]: *** [check-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/security/clamav
*** Error code 1

Stop.
make: stopped in /usr/ports/security/clamav



Some possibly relevant information:

The test-suite.log file (mentioned in build error above) includes:
-snip-
LibClamAV debug: searching for unrar, user-searchpath: /usr/local/lib
LibClamAV debug: searching for unrar: libclamunrar_iface.so.6.1.22 not found
LibClamAV debug: searching for unrar: libclamunrar_iface.so.6 not found
LibClamAV debug: searching for unrar: libclamunrar_iface.so not found
LibClamAV debug: searching for unrar: libclamunrar_iface.a not found
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable
-snip-

However:

-snip-
> ls -al /usr/local/lib/libclamunrar_iface.so*
lrwxr-xr-x  1 root  wheel    28 May 17 12:19 /usr/local/lib/libclamunrar_iface.so -> libclamunrar_iface.so.6.1.22
lrwxr-xr-x  1 root  wheel    28 May 17 12:19 /usr/local/lib/libclamunrar_iface.so.6 -> libclamunrar_iface.so.6.1.22
-rwxr-xr-x  1 root  wheel  9144 May 17 12:19 /usr/local/lib/libclamunrar_iface.so.6.1.22
-snip-

ie the 'missing' libclamunrar_iface lib does appear to exist in /usr/local/lib despite the error messages in the test-suite.log to the contrary.
>How-To-Repeat:
make build in port dir.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405241438.s4OEcW6F009122>