Bug 221513 - security/clamav: Compile-time test fails during portinstall
Summary: security/clamav: Compile-time test fails during portinstall
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-14 09:27 UTC by Jens Nykaer
Modified: 2017-09-29 07:37 UTC (History)
7 users (show)

See Also:


Attachments
build_failure_FreeBSD:11:i386 (585.49 KB, text/plain)
2017-09-11 19:12 UTC, Phillip R. Jaenke
no flags Details
build_failure_FreeBSD:11:amd64 (584.16 KB, text/plain)
2017-09-11 19:18 UTC, Phillip R. Jaenke
no flags Details
Patch to fix unit test failure with zlip 1.2.9+ (1.24 KB, patch)
2017-09-22 10:47 UTC, fsbruva
fsbruva: maintainer-approval? (fsbruva)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Nykaer 2017-08-14 09:27:38 UTC

    
Comment 1 Jens Nykaer 2017-08-14 09:33:01 UTC
On FreeBSD testlab.local.dom 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

gmake[5]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: 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
gmake[6]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
============================================================================
Testsuite summary for ClamAV 0.99.2
============================================================================
# TOTAL: 13
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
============================================================================
gmake[5]: *** [Makefile:1070: test-suite.log] Error 1
gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[4]: *** [Makefile:1178: check-TESTS] Error 2
gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[3]: *** [Makefile:1333: check-am] Error 2
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[2]: *** [Makefile:738: check-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2'
*** Error code 2

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

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




test-suite.log contains the following:
==============================================
   ClamAV 0.99.2: unit_tests/test-suite.log
==============================================

# TOTAL: 13
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: check_clamav
==================

Using default test timeout; alter by setting 'T' env var (in seconds)
Running suite(s): cl_api
 cli
 jsnorm
 str
 regex
 disasm
 unique
 matchers
 htmlnorm
 bytecode
99%: Checks: 987, Failures: 2, Errors: 0
check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, expected: 0, have: 28

check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, expected: 0, have: 28

NOTICE: Use the 'T' environment variable to adjust testcase timeout

SKIP: check_unit_vg.sh
======================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check5_clamd_vg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check6_clamd_vg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check7_clamd_hg.sh
========================


SKIP: check8_clamd_hg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check9_clamscan_vg.sh
===========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate



Will try yo reproduce on other hardware.
Comment 2 mark.j.lysek 2017-08-14 15:28:29 UTC
I also see this bug. In my case

unit_tests/test-suite.log contains the same errors

check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, e
xpected: 0, have: 28

check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, e
xpected: 0, have: 28
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2017-08-14 15:30:12 UTC
Give this a proper Summary and assign.
Comment 4 Jens Nykaer 2017-08-15 08:35:02 UTC
"Give this a proper Summary and assign."

Not quite sure what you mean??

I simply do a:
cd /usr/ports/security/clamav
make install && make clean

These two commands yields the error described earlier.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2017-08-15 19:23:20 UTC
If bugzilla issues start with "<category>/<portname>", then our auto-assigner will run and automatically notify the maintainer; and also assign it if the maintainer is also a committer.

That was what I initially changed: the style, not the content.

Browsing the bugzilla list of issues will demonstrate that we have adopted this style so that a) the machines can parse it, and b) it's consistent for those browsing bugs.
Comment 6 Renato Botelho freebsd_committer freebsd_triage 2017-08-16 10:29:21 UTC
Over to new maintainer
Comment 7 Phillip R. Jaenke 2017-09-11 19:12:12 UTC
Created attachment 186271 [details]
build_failure_FreeBSD:11:i386

Reproducible build failure on i386 in poudriere (shaladrassil and teldrassil)
Comment 8 Phillip R. Jaenke 2017-09-11 19:18:15 UTC
Created attachment 186272 [details]
build_failure_FreeBSD:11:amd64

Reproducible build failure on amd64 (shaladrassil and teldrassil)
Comment 9 fsbruva 2017-09-22 10:47:42 UTC
Created attachment 186615 [details]
Patch to fix unit test failure with zlip 1.2.9+

Unit tests fail with zlib version 1.2.9 and up. Patch provided by Marc Deslauriers at the Ubuntu project, and is included in upstream sources. https://github.com/vrtadmin/clamav-devel/commit/48fef7b8ec06dbfbf899986cdcbe05071a633eb4
Comment 10 commit-hook freebsd_committer freebsd_triage 2017-09-22 16:12:16 UTC
A commit references this bug:

Author: ler
Date: Fri Sep 22 16:11:55 UTC 2017
New revision: 450394
URL: https://svnweb.freebsd.org/changeset/ports/450394

Log:
  security/clamav: Compile-time test fails during portinstall

  Apply patch from upstream.

  PR:	221513
  Submitted by:	jny@jny.dk, fsbruva@yahoo.com

Changes:
  head/security/clamav/files/patch-configure
  head/security/clamav/files/patch-libclamav-c++-llvm
  head/security/clamav/files/patch-libclamav_bytecode__api.c
  head/security/clamav/files/patch-libclamav_c++_llvm_include_llvm_Support_CFG.h
Comment 11 Larry Rosenman freebsd_committer freebsd_triage 2017-09-22 16:12:52 UTC
Committed, Thanks!
Comment 12 kubusz 2017-09-29 07:37:11 UTC
Hello.

I think the issue still persists.

On FreeBSD mail.lanka 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug  9 11:55:48 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

gmake[4]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: 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
gmake[5]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
============================================================================
Testsuite summary for ClamAV 0.99.2
============================================================================
# TOTAL: 13
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
============================================================================
gmake[4]: *** [Makefile:1070: test-suite.log] Error 1
gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[3]: *** [Makefile:1178: check-TESTS] Error 2
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[2]: *** [Makefile:1333: check-am] Error 2
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[1]: *** [Makefile:738: check-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2'
*** Error code 2

Stop.
make: stopped in /usr/ports/security/clamav
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.


test-suite.log contains the following:
# TOTAL: 13
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: check_clamav
==================

Using default test timeout; alter by setting 'T' env var (in seconds)
Running suite(s): cl_api
 cli
 jsnorm
 str
 regex
 disasm
 unique
 matchers
 htmlnorm
 bytecode
99%: Checks: 987, Failures: 2, Errors: 0
check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, expected: 0, have: 28

check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, expected: 0, have: 28

NOTICE: Use the 'T' environment variable to adjust testcase timeout

SKIP: check_unit_vg.sh
======================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check5_clamd_vg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check6_clamd_vg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check7_clamd_hg.sh
========================


SKIP: check8_clamd_hg.sh
========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate

SKIP: check9_clamscan_vg.sh
===========================

*** valgrind tests skipped by default, use 'make check VG=1' to activate