Mail-ClamAV-0.22 won't build
Julian Field
MailScanner at ecs.soton.ac.uk
Sun May 17 11:06:48 IST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have just upgraded the ClamAV+SpamAssassin package to include
Mail::ClamAV 0.29 for you.
On 17/05/2009 09:13, Remco Barendse wrote:
> My yesterdays' mail was more a Mail-ClamAV bug rather than
> install-clamav-spamassassin problem.
>
> When trying to compile the package :
> [root Mail-ClamAV-0.22]# perl Makefile.PL ; make ; make test ; make
> install
>
> i get this as output on the make command :
> 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
> `/tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
>
> /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.8/ExtUtils/typemap ClamAV.xs > ClamAV.xsc && mv
> ClamAV.xsc ClamAV.c
> gcc -c -I/tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22
> -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32
> -march=i386 -mtune=pentium4 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\"
> -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" ClamAV.c
> ClamAV.xs:33: error: field `limits' has incomplete type
> ClamAV.xs: In function `clamav_perl__scanfd':
> ClamAV.xs:206: error: too many arguments to function `cl_scandesc'
> ClamAV.xs: In function `clamav_perl__scanfile':
> ClamAV.xs:247: error: too many arguments to function `cl_scanfile'
> ClamAV.xs: In function `clamav_perl_constant':
> ClamAV.xs:298: error: `CL_ERAR' undeclared (first use in this function)
> ClamAV.xs:298: error: (Each undeclared identifier is reported only once
> ClamAV.xs:298: error: for each function it appears in.)
> ClamAV.xs:299: error: `CL_EZIP' undeclared (first use in this function)
> ClamAV.xs:300: error: `CL_EGZIP' undeclared (first use in this function)
> ClamAV.xs:301: error: `CL_EBZIP' undeclared (first use in this function)
> ClamAV.xs:302: error: `CL_EOLE2' undeclared (first use in this function)
> ClamAV.xs:303: error: `CL_EMSCOMP' undeclared (first use in this
> function)
> ClamAV.xs:304: error: `CL_EMSCAB' undeclared (first use in this function)
> ClamAV.xs:311: error: `CL_EPATSHORT' undeclared (first use in this
> function)
> ClamAV.xs:314: error: `CL_ECVDEXTR' undeclared (first use in this
> function)
> ClamAV.xs:315: error: `CL_EMD5' undeclared (first use in this function)
> ClamAV.xs:316: error: `CL_EDSIG' undeclared (first use in this function)
> ClamAV.xs:317: error: `CL_EIO' undeclared (first use in this function)
> ClamAV.xs:319: error: `CL_ESUPPORT' undeclared (first use in this
> function)
> ClamAV.xs:329: error: `CL_DB_ACONLY' undeclared (first use in this
> function)
> ClamAV.xs:354: error: `CL_RAW' undeclared (first use in this function)
> ClamAV.xs:355: error: `CL_ARCHIVE' undeclared (first use in this
> function)
> ClamAV.xs:356: error: `CL_MAIL' undeclared (first use in this function)
> ClamAV.xs:357: error: `CL_OLE2' undeclared (first use in this function)
> ClamAV.xs:358: error: `CL_ENCRYPTED' undeclared (first use in this
> function)
> make[1]: *** [ClamAV.o] Error 1
> make[1]: Leaving directory
> `/tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_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:
> /tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV
>
>
> To debug the problem, cd to the build directory, and inspect the
> output files.
>
> at
> /tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm
> line 175
> BEGIN failed--compilation aborted at
> /tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm
> line 534.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> make: *** [ClamAV.inl] Error 25
>
>
>
> I checked if the patch included is the tarball was applied, so from
> /tmp/install-Clam-0.95.1-SA-3.2.5/perl-tar/Mail-ClamAV-0.22
>
> i tried :
> [root Mail-ClamAV-0.22]# patch -p0 < ../Mail-ClamAV-0.22.patch
> patching file ./t/Mail-ClamAV.t
> Reversed (or previously applied) patch detected! Assume -R? [n]
>
> so i just left things as they are.
>
> Google revealed that there are newer packages of Mail-ClamAV available
> however i guess there is a reason for including 0.22 in the
> mailscanner package rather than the latest version so i'm hesitating
> to go down that path.
>
> Any hints / pointers / tips on how to get Mail-ClamAV-0.22 to compile?
>
> Thanks!
Jules
- --
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Follow me at twitter.com/JulesFM
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.10.0 (Build 500)
Comment: Use PGP or Thunderbird Enigmail to verify this message
Charset: ISO-8859-1
wj8DBQFKD+G5EfZZRxQVtlQRAtkhAJwMDk+S0qrp2ao644jh9Ev4oh49pQCfX3Jl
urY5/CqttMh1lMOWOo8Uw9w=
=9Lbi
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list