Problems with latest Mail::ClamAV

Michael Keightley mk at quadstone.com
Wed Oct 20 15:40:28 IST 2004


Has anyone managed to get Mail-ClamAV-0.12 to work yet?
I can't get it to compile on Linux (SuSE 9.0 and 9.1, see error below).
Compiles OK on Solaris 8, but get this message from MailScanner in syslog:

Oct 20 11:18:22 mailhost MailScanner[21205]: Commercial virus checker failed with real error: Invalid function CL_ARCHIVE at /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Mail/ClamAV.pm line 83.

I had to revert to 0.11, which meant downgrading clamav to 0.75.1 from 0.80.

Error when compiling on Linux:


% make
/usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.12 blib/arch
Starting Build Prepocess Stage
Finished Build Prepocess Stage

Starting Build Parse Stage
Finished Build Parse Stage

Starting Build Glue 1 Stage
Finished Build Glue 1 Stage

Starting Build Glue 2 Stage
Finished Build Glue 2 Stage

Starting Build Glue 3 Stage
Finished Build Glue 3 Stage

Starting Build Compile Stage
  Starting "perl Makefile.PL" Stage
Writing Makefile for Mail::ClamAV
  Finished "perl Makefile.PL" Stage

  Starting "make" Stage
make[1]: Entering directory `/usr/local/src/Mail-ClamAV-0.12/_Inline/build/Mail/ClamAV'
/usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c  -I/usr/local/src/Mail-ClamAV-0.12 -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -pipe   -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -fPIC "-I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE"   ClamAV.c
ClamAV.xs: In function `clamav_perl__scanbuff':
ClamAV.xs:166: warning: unused variable `ax'
ClamAV.xs:166: warning: unused variable `items'
ClamAV.xs:182: warning: statement with no effect
ClamAV.xs: In function `clamav_perl__scanfd':
ClamAV.xs:200: warning: unused variable `len'
ClamAV.xs:205: warning: unused variable `ax'
ClamAV.xs:205: warning: unused variable `items'
ClamAV.xs: In function `clamav_perl__scanfile':
ClamAV.xs:236: warning: unused variable `len'
ClamAV.xs:242: warning: unused variable `ax'
ClamAV.xs:242: warning: unused variable `items'
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:324: error: `CL_EFORMAT' undeclared (first use in this function)
ClamAV.xs:324: error: (Each undeclared identifier is reported only once
ClamAV.xs:324: error: for each function it appears in.)
ClamAV.xs:326: error: `CL_SCAN_RAW' undeclared (first use in this function)
ClamAV.xs:327: error: `CL_SCAN_ARCHIVE' undeclared (first use in this function)
ClamAV.xs:328: error: `CL_SCAN_MAIL' undeclared (first use in this function)
ClamAV.xs:329: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
ClamAV.xs:330: error: `CL_SCAN_OLE2' undeclared (first use in this function)
ClamAV.xs:331: error: `CL_SCAN_BLOCKENCRYPTED' undeclared (first use in this function)
ClamAV.xs:332: error: `CL_SCAN_HTML' undeclared (first use in this function)
ClamAV.xs:333: error: `CL_SCAN_PE' undeclared (first use in this function)
ClamAV.xs:334: error: `CL_SCAN_BLOCKBROKEN' undeclared (first use in this function)
ClamAV.xs:335: error: `CL_SCAN_MAILURL' undeclared (first use in this function)
ClamAV.xs:336: error: `CL_SCAN_BLOCKMAX' undeclared (first use in this function)
ClamAV.xs:338: error: `CL_SCAN_STDOPT' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/usr/local/src/Mail-ClamAV-0.12/_Inline/build/Mail/ClamAV'

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
  make

The build directory was:
/usr/local/src/Mail-ClamAV-0.12/_Inline/build/Mail/ClamAV

To debug the problem, cd to the build directory, and inspect the output files.

 at /usr/local/src/Mail-ClamAV-0.12/blib/lib/Mail/ClamAV.pm line 164
BEGIN failed--compilation aborted at /usr/local/src/Mail-ClamAV-0.12/blib/lib/Mail/ClamAV.pm line 503.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 2
--
Michael Keightley <Michael.Keightley at quadstone.com>    Tel: +44 131 240 3137
Systems Manager, Quadstone Limited,                    Fax: +44 131 220 4492
16 Chester Street, Edinburgh EH3 7RA, Scotland         http://www.quadstone.com

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).



More information about the MailScanner mailing list