Subject: | Problems getting scan module working with ClamAV-0.95 |
Date: | Mon, 01 Feb 2010 22:57:35 +0100 |
To: | bug-File-Scan-ClamAV [...] rt.cpan.org |
From: | Paul Wargenstahm <paul [...] wargenstahm.se> |
Hi,
I can't seem to make a working File-Scan-ClamAV module when using
ClamAV-0.95. It works with ClamAV-0.93, but with the latest ClamAV it
always fails make test in the same way. I've tried both the latest
(1.91) and with an older (1.8) module and both fail in the same way.
I've also tested three different Perls, the one that comes with Solaris
2.11 (5.8.4 compiled wit Sun Workshop compiler) and 5.10.1 compiled with
either the Sun Studio compiler and GCC. Same thing which ever, and that
would rule out Perl itself.
I suspect there has been changes in the API for ClamAV, in which case
the File-Scan-ClamAV module also needs an update.
See below for info.
Regards,
Paul Wargenstahm
Paul@Wargenstahm.se
Show quoted text
--- Make test results ---
bash-4.0# make test
PERL_DL_NONLAZY=1 CLAMD_PATH=/opt/csw/sbin /usr/local/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00basic.t ....... ok
t/01ping.t ........ 1/3 # Failed test 2 in t/01ping.t at line 26
# t/01ping.t line 26 is: ok($av->ping);
t/01ping.t ........ Failed 1/3 subtests
t/02reload.t ...... 1/3 # Failed test 2 in t/02reload.t at line 25
# t/02reload.t line 25 is: ok($av->reload);
t/02reload.t ...... Failed 1/3 subtests
t/03quit.t ........ 1/4 # Failed test 2 in t/03quit.t at line 31
# t/03quit.t line 31 is: ok($av->quit);
t/03quit.t ........ Failed 1/4 subtests
t/04scan.t ........ 1/8 # Test 4 got: "" (t/04scan.t at line 36)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest)
# t/04scan.t line 36 is: ok(exists($results{"$testdir/clamavtest"}), 1,
"Didn't detect $testdir/clamavtest");
# Test 5 got: "" (t/04scan.t at line 37)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest.zip)
# t/04scan.t line 37 is:
ok(exists($results{"$testdir/clamavtest.zip"}), 1, "Didn't detect
$testdir/clamavtest.zip");
# Test 6 got: "" (t/04scan.t at line 38)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest.gz)
# t/04scan.t line 38 is: ok(exists($results{"$testdir/clamavtest.gz"}),
1, "Didn't detect $testdir/clamavtest.gz");
t/04scan.t ........ Failed 3/8 subtests
t/05streamscan.t .. 1/8 # Test 5 got: <UNDEF> (t/05streamscan.t at line 43)
# Expected: "FOUND"
# t/05streamscan.t line 43 is: ok($ans, 'FOUND');
# Test 6 got: <UNDEF> (t/05streamscan.t at line 44)
# Expected: "ClamAV-Test-Signature"
# t/05streamscan.t line 44 is: ok($vir, 'ClamAV-Test-Signature');
t/05streamscabash-4.0# make test
PERL_DL_NONLAZY=1 CLAMD_PATH=/opt/csw/sbin /usr/local/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00basic.t ....... ok
t/01ping.t ........ 1/3 # Failed test 2 in t/01ping.t at line 26
# t/01ping.t line 26 is: ok($av->ping);
t/01ping.t ........ Failed 1/3 subtests
t/02reload.t ...... 1/3 # Failed test 2 in t/02reload.t at line 25
# t/02reload.t line 25 is: ok($av->reload);
t/02reload.t ...... Failed 1/3 subtests
t/03quit.t ........ 1/4 # Failed test 2 in t/03quit.t at line 31
# t/03quit.t line 31 is: ok($av->quit);
t/03quit.t ........ Failed 1/4 subtests
t/04scan.t ........ 1/8 # Test 4 got: "" (t/04scan.t at line 36)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest)
# t/04scan.t line 36 is: ok(exists($results{"$testdir/clamavtest"}), 1,
"Didn't detect $testdir/clamavtest");
# Test 5 got: "" (t/04scan.t at line 37)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest.zip)
# t/04scan.t line 37 is:
ok(exists($results{"$testdir/clamavtest.zip"}), 1, "Didn't detect
$testdir/clamavtest.zip");
# Test 6 got: "" (t/04scan.t at line 38)
# Expected: "1" (Didn't detect
/root/.cpan/build/File-Scan-ClamAV-1.91-j8DdjB/testfiles/clamavtest.gz)
# t/04scan.t line 38 is: ok(exists($results{"$testdir/clamavtest.gz"}),
1, "Didn't detect $testdir/clamavtest.gz");
t/04scan.t ........ Failed 3/8 subtests
t/05streamscan.t .. 1/8 # Test 5 got: <UNDEF> (t/05streamscan.t at line 43)
# Expected: "FOUND"
# t/05streamscan.t line 43 is: ok($ans, 'FOUND');
# Test 6 got: <UNDEF> (t/05streamscan.t at line 44)
# Expected: "ClamAV-Test-Signature"
# t/05streamscan.t line 44 is: ok($vir, 'ClamAV-Test-Signature');
t/05streamscan.t .. Failed 2/8 subtests
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.00 required for
testing POD coverage
t/pod.t ........... ok
Test Summary Report
-------------------
t/01ping.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 2
t/02reload.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 2
t/03quit.t (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 2
t/04scan.t (Wstat: 0 Tests: 8 Failed: 3)
Failed tests: 4-6
t/05streamscan.t (Wstat: 0 Tests: 8 Failed: 2)
Failed tests: 5-6
Files=8, Tests=28, 64 wallclock secs ( 0.48 usr 0.56 sys + 48.57 cusr
12.33 csys = 61.94 CPU)
Result: FAIL
Failed 5/8 test programs. 8/28 subtests failed.
*** Error code 255
make: Fatal error: Command failed for target `test_dynamic'
bash-4.0#
n.t .. Failed 2/8 subtests
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.00 required for
testing POD coverage
t/pod.t ........... ok
Test Summary Report
-------------------
t/01ping.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 2
t/02reload.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 2
t/03quit.t (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 2
t/04scan.t (Wstat: 0 Tests: 8 Failed: 3)
Failed tests: 4-6
t/05streamscan.t (Wstat: 0 Tests: 8 Failed: 2)
Failed tests: 5-6
Files=8, Tests=28, 64 wallclock secs ( 0.48 usr 0.56 sys + 48.57 cusr
12.33 csys = 61.94 CPU)
Result: FAIL
Failed 5/8 test programs. 8/28 subtests failed.
*** Error code 255
make: Fatal error: Command failed for target `test_dynamic'
bash-4.0#
--- System info ---
bash-4.0# uname -a
SunOS badboy.dsk-syd.se 5.11 snv_129 sun4u sparc sun4u
bash-4.0#
--- Perl -V ---
bash-4.0# perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.11, archname=sun4-solaris-64int
uname='sunos localhost 5.11 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R
/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the ops ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a PV ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned garbage
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on assign ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in perl_clone: ...
22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
22850 [PATCH] 'perl -v' fails if local_patches contains code
snippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses of ...
23320 [perl #30066] Memory leak in nested shared data structures ...
23321 [perl #31459] Bug in read()
27722 perlio.c breaks on Solaris/gcc when > 256 FDs are available
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
6663288 Upgrade to CGI.pm 3.33
REGEXP0 - fix for UTF-8 recoding in regexps - CVE-2007-5116
6758953 Perl Sys::Syslog can log messages with wrong severity
Built under solaris
Compiled at Nov 26 2009 14:27:10
@INC:
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
.