Subject: | Mail::ClamAV doesn't compile with ClamAV 0.80.0 |
Hi,
Mail::ClamAV compiles fine with 0.75.1 of ClamAV but fails with 0.80.0 on RHE3 (only OS tested):
root@homer [~]# clamscan -V
ClamAV 0.80/540/Tue Oct 19 13:59:23 2004
root@homer [~/rpms]# tar -xzf Mail-ClamAV*.tar.gz
root@homer [~/rpms]# cd Mail-ClamAV*
root@homer [~/rpms/Mail-ClamAV-0.11]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::ClamAV
root@homer [~/rpms/Mail-ClamAV-0.11]# make
cp ClamAV.pm blib/lib/Mail/ClamAV.pm
/usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.11 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 `/root/rpms/Mail-ClamAV-0.11/_Inline/build/Mail/ClamAV'
/usr/bin/perl /usr/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.4/ExtUtils/typemap ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c -I/root/rpms/Mail-ClamAV-0.11 -I/usr/local/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -fpic "-I/usr/lib/perl5/5.8.4/i686-linux/CORE" ClamAV.c
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:282: `CL_SCAN_ENCRYPTED' undeclared (first use in this function)
ClamAV.xs:282: (Each undeclared identifier is reported only once
ClamAV.xs:282: for each function it appears in.)
ClamAV.xs:284: `CL_NUM_CHILDS' undeclared (first use in this function)
ClamAV.xs:285: `CL_MIN_LENGTH' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/root/rpms/Mail-ClamAV-0.11/_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:
/root/rpms/Mail-ClamAV-0.11/_Inline/build/Mail/ClamAV
To debug the problem, cd to the build directory, and inspect the output files.
at /root/rpms/Mail-ClamAV-0.11/blib/lib/Mail/ClamAV.pm line 159
BEGIN failed--compilation aborted at /root/rpms/Mail-ClamAV-0.11/blib/lib/Mail/ClamAV.pm line 447.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 2
At present, the way around this is to:
Install 0.75.1
Install Mail::ClamAV
Install 0.80.0
Regards,
Jonathan Michaelson