You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "sebastian@debianfan.de" <se...@debianfan.de> on 2010/07/03 12:03:25 UTC

Problems with File::Scan::ClamAV

Hello,

i have a debian Lenny system with SpamAssassin version 3.3.1
   running on Perl version 5.10.0.

I had installed clamav and i got a problem by installing file::scan::clamav.

At first i tried to install it in the mcpan-shell - many errors at the 
tests.

Now i tried to install it in a different way - i want to build a debian 
package and then install by paket manager.

What is wrong?

*******
creating a debian package:

# dh-make-perl --cpan File::Scan::ClamAV --build
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
Going to read '/root/.cpan/Metadata'
   Database was generated on Thu, 01 Jul 2010 23:27:05 GMT
CPAN: Time::HiRes loaded ok (v1.9721)
Fetching with LWP:
   ftp://ftp.fu-berlin.de/unix/languages/perl/authors/01mailrc.txt.gz
Going to read '/root/.cpan/source/authors/01mailrc.txt.gz'
Going to read 1 yaml file from /root/.cpan/build/
DONE
Restored the state of none (in 0.0301 secs)
............................................................................DONE
Fetching with LWP:
 
ftp://ftp.fu-berlin.de/unix/languages/perl/modules/02packages.details.txt.gz
Going to read '/root/.cpan/source/modules/02packages.details.txt.gz'
   Database was generated on Sat, 03 Jul 2010 00:27:33 GMT
............................................................................DONE
Fetching with LWP:
   ftp://ftp.fu-berlin.de/unix/languages/perl/modules/03modlist.data.gz
Going to read '/root/.cpan/source/modules/03modlist.data.gz'
............................................................................DONE
Going to write /root/.cpan/Metadata
Fetching with LWP:
 
ftp://ftp.fu-berlin.de/unix/languages/perl/authors/id/J/JA/JAMTUR/File-Scan-Cl 
 
      amAV-1.91.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
   Checksum was ok
CPAN: Archive::Tar loaded ok (v1.62)
File-Scan-ClamAV-1.91/
File-Scan-ClamAV-1.91/META.yml
File-Scan-ClamAV-1.91/README
File-Scan-ClamAV-1.91/testfiles/
File-Scan-ClamAV-1.91/testfiles/innocent
File-Scan-ClamAV-1.91/testfiles/clamavtest.gz
File-Scan-ClamAV-1.91/testfiles/clamavtest
File-Scan-ClamAV-1.91/testfiles/clamavtest.zip
File-Scan-ClamAV-1.91/t/
File-Scan-ClamAV-1.91/t/pod.t
File-Scan-ClamAV-1.91/t/01ping.t
File-Scan-ClamAV-1.91/t/04scan.t
File-Scan-ClamAV-1.91/t/05streamscan.t
File-Scan-ClamAV-1.91/t/02reload.t
File-Scan-ClamAV-1.91/t/03quit.t
File-Scan-ClamAV-1.91/t/00basic.t
File-Scan-ClamAV-1.91/t/pod-coverage.t
File-Scan-ClamAV-1.91/t/mkconf.pl
File-Scan-ClamAV-1.91/Makefile.PL
File-Scan-ClamAV-1.91/Changes
File-Scan-ClamAV-1.91/lib/
File-Scan-ClamAV-1.91/lib/File/
File-Scan-ClamAV-1.91/lib/File/Scan/
File-Scan-ClamAV-1.91/lib/File/Scan/ClamAV.pm
File-Scan-ClamAV-1.91/MANIFEST.SKIP
File-Scan-ClamAV-1.91/MANIFEST
CPAN: File::Temp loaded ok (v0.22)
Found: File-Scan-ClamAV 1.91 (libfile-scan-clamav-perl arch=all)

Using maintainer: root <ro...@consultingparadise.de>
Found changelog: Changes
Found docs: README
Using rules: /usr/share/dh-make-perl/rules.MakeMaker.noxs
**********
Copyright information incomplete!

Upstream copyright information could not be automatically determined.

If you are building this package for your personal use, you might disregard
this information; however, if you intend to upload this package to Debian
(or in general, if you plan on distributing it), you must look into the
complete copyright information.

The causes for this warning are:
No licensing information
make: Entering directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
# Add commands to clean up after the build process here
[ ! -f Makefile ] || make realclean
make: Leaving directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
make: Entering directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
dh_testdir
# Add commands to compile the package here
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Writing Makefile for File::Scan::ClamAV
make
make[1]: Entering directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
cp lib/File/Scan/ClamAV.pm blib/lib/File/Scan/ClamAV.pm
Manifying blib/man3/File::Scan::ClamAV.3pm
make[1]: Leaving directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
make test
make[1]: Entering directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
PERL_DL_NONLAZY=1 CLAMD_PATH=/usr/sbin /usr/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/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/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/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 .. ok
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=29, 59 wallclock secs ( 0.09 usr  0.17 sys + 23.19 cusr 
34.28 csys = 57.73 CPU)
Result: FAIL
Failed 5/8 test programs. 8/29 subtests failed.
make[1]: *** [test_dynamic] Fehler 255
make[1]: Leaving directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
make: *** [build-stamp] Fehler 2
make: Leaving directory `/root/.cpan/build/File-Scan-ClamAV-1.91'
Cannot create deb package
debian:~#

**********************+

using perl -MCPAN -e shell:


cpan[1]> install File::Scan::ClamAV
CPAN: Storable loaded ok (v2.21)
Going to read '/root/.cpan/Metadata'

   Database was generated on Sat, 03 Jul 2010 00:27:33 GMT
CPAN: YAML loaded ok (v0.71)
Running install for module 'File::Scan::ClamAV'
Running make for J/JA/JAMTUR/File-Scan-ClamAV-1.91.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.835)
CPAN: Time::HiRes loaded ok (v1.9721)
Fetching with LWP:
 
ftp://ftp.fu-berlin.de/unix/languages/perl/authors/id/J/JA/JAMTUR/File-Scan-ClamAV-1.91.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
Fetching with LWP:
 
ftp://ftp.fu-berlin.de/unix/languages/perl/authors/id/J/JA/JAMTUR/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.027)
Checksum for 
/root/.cpan/sources/authors/id/J/JA/JAMTUR/File-Scan-ClamAV-1.91.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DONE
CPAN: Archive::Tar loaded ok (v1.62)
File-Scan-ClamAV-1.91/
File-Scan-ClamAV-1.91/META.yml
File-Scan-ClamAV-1.91/README
File-Scan-ClamAV-1.91/testfiles/
File-Scan-ClamAV-1.91/testfiles/innocent
File-Scan-ClamAV-1.91/testfiles/clamavtest.gz
File-Scan-ClamAV-1.91/testfiles/clamavtest
File-Scan-ClamAV-1.91/testfiles/clamavtest.zip
File-Scan-ClamAV-1.91/t/
File-Scan-ClamAV-1.91/t/pod.t
File-Scan-ClamAV-1.91/t/01ping.t
File-Scan-ClamAV-1.91/t/04scan.t
File-Scan-ClamAV-1.91/t/05streamscan.t
File-Scan-ClamAV-1.91/t/02reload.t
File-Scan-ClamAV-1.91/t/03quit.t
File-Scan-ClamAV-1.91/t/00basic.t
File-Scan-ClamAV-1.91/t/pod-coverage.t
File-Scan-ClamAV-1.91/t/mkconf.pl
File-Scan-ClamAV-1.91/Makefile.PL
File-Scan-ClamAV-1.91/Changes
File-Scan-ClamAV-1.91/lib/
File-Scan-ClamAV-1.91/lib/File/
File-Scan-ClamAV-1.91/lib/File/Scan/
File-Scan-ClamAV-1.91/lib/File/Scan/ClamAV.pm
File-Scan-ClamAV-1.91/MANIFEST.SKIP
File-Scan-ClamAV-1.91/MANIFEST
CPAN: File::Temp loaded ok (v0.22)

   CPAN.pm: Going to build J/JA/JAMTUR/File-Scan-ClamAV-1.91.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for File::Scan::ClamAV
cp lib/File/Scan/ClamAV.pm blib/lib/File/Scan/ClamAV.pm
Manifying blib/man3/File::Scan::ClamAV.3pm
   JAMTUR/File-Scan-ClamAV-1.91.tar.gz
   /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 CLAMD_PATH=/usr/sbin /usr/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-izZMPr/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-izZMPr/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-izZMPr/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 .. 2/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 .. ok
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=29, 58 wallclock secs ( 0.07 usr  0.17 sys + 23.48 cusr 
33.56 csys = 57.28 CPU)
Result: FAIL
Failed 5/8 test programs. 8/29 subtests failed.
make: *** [test_dynamic] Fehler 255
   JAMTUR/File-Scan-ClamAV-1.91.tar.gz
   /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
   reports JAMTUR/File-Scan-ClamAV-1.91.tar.gz
Running make install
   make test had returned bad status, won't install without force
Failed during this command:
  JAMTUR/File-Scan-ClamAV-1.91.tar.gz          : make_test NO



*************************************************

http://www.deiszner.de

http://www.mister-wong.de/user/deiszner/

http://www.mister-wong.de/user/wohnheim/

Re: Problems with File::Scan::ClamAV

Posted by Charles Gregory <cg...@hwcn.org>.
On Sat, 3 Jul 2010, sebastian@debianfan.de wrote:
> i have a debian Lenny system with SpamAssassin version 3.3.1
>   running on Perl version 5.10.0.

Is it running properly?

> I had installed clamav and i got a problem by installing 
> file::scan::clamav.

How is this connected to spamassassin? My first feeling on this is that 
you would have better luck posting this to the Debian lists. Or perhaps 
contact the author....

I presume you have already googled for your errors.... :)

- C