ClamAV module
Peter C. Ndikuwera
pndiku at DSMAGIC.COM
Tue Dec 2 14:37:19 GMT 2003
You need to install ClamAV first.
On Tue, 2003-12-02 at 15:32, Ulysees wrote:
> anybody else had trouble getting this working ?
> when I grab the module from cpan it seems to grumble about not being able to
> find clamav.h
>
> Should I be using a tarball of ClamAV instead of the RPM ?
>
> Uly
>
>
> cpan> install Mail::ClamAV
> Running install for module Mail::ClamAV
> Running make for S/SA/SABECK/Mail-ClamAV-0.04.tar.gz
> CPAN: Digest::MD5 loaded ok
> Checksum for
> /root/.cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.04.tar.gz ok
> Scanning cache /root/.cpan/build for sizes
> Mail-ClamAV-0.04/
> Mail-ClamAV-0.04/t/
> Mail-ClamAV-0.04/t/virus.eml
> Mail-ClamAV-0.04/t/Mail-ClamAV.t
> Mail-ClamAV-0.04/README
> Mail-ClamAV-0.04/ClamAV.pm
> Mail-ClamAV-0.04/Changes
> Mail-ClamAV-0.04/Makefile.PL
> Mail-ClamAV-0.04/ppport.h
> Mail-ClamAV-0.04/META.yml
> Mail-ClamAV-0.04/MANIFEST
> Removing previously used /root/.cpan/build/Mail-ClamAV-0.04
>
> CPAN.pm: Going to build S/SA/SABECK/Mail-ClamAV-0.04.tar.gz
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Mail::ClamAV
> cp ClamAV.pm blib/lib/Mail/ClamAV.pm
> /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.04
> 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/.cpan/build/Mail-ClamAV-0.04/_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
> gcc -c -I/root/.cpan/build/Mail-ClamAV-0.04 -D_REENTRANT -D_GNU_SOURCE -DTH
> READS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LAR
> GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march
> =i386 -mcpu=i686 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC
> "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" ClamAV.c
> ClamAV.xs:11:20: clamav.h: No such file or directory
> ClamAV.xs:19: error: field `limits' has incomplete type
> ClamAV.xs: In function `clamav_perl_retdbdir':
> ClamAV.xs:59: warning: return makes pointer from integer without a cast
> ClamAV.xs: In function `clamav_perl__scanbuff':
> ClamAV.xs:122: error: `CL_VIRUS' undeclared (first use in this function)
> ClamAV.xs:122: error: (Each undeclared identifier is reported only once
> ClamAV.xs:122: error: for each function it appears in.)
> ClamAV.xs:124: error: `CL_CLEAN' undeclared (first use in this function)
> ClamAV.xs:127: warning: passing arg 2 of `Perl_newSVpv' makes pointer from
> integer without a cast
> ClamAV.xs: In function `clamav_perl__scanfd':
> ClamAV.xs:163: error: `CL_VIRUS' undeclared (first use in this function)
> ClamAV.xs:165: error: `CL_CLEAN' undeclared (first use in this function)
> ClamAV.xs:168: warning: passing arg 3 of `Perl_sv_setpv' makes pointer from
> integer without a cast
> ClamAV.xs: In function `clamav_perl__scanfile':
> ClamAV.xs:199: error: `CL_VIRUS' undeclared (first use in this function)
> ClamAV.xs:201: error: `CL_CLEAN' undeclared (first use in this function)
> ClamAV.xs:204: warning: passing arg 3 of `Perl_sv_setpv' makes pointer from
> integer without a cast
> ClamAV.xs: In function `error':
> ClamAV.xs:219: warning: assignment makes pointer from integer without a cast
> ClamAV.xs: In function `clamav_perl_constant':
> ClamAV.xs:226: error: `CL_EACCES' undeclared (first use in this function)
> ClamAV.xs:227: error: `CL_EBZIP' undeclared (first use in this function)
> ClamAV.xs:228: error: `CL_EFSYNC' undeclared (first use in this function)
> ClamAV.xs:229: error: `CL_EGZIP' undeclared (first use in this function)
> ClamAV.xs:230: error: `CL_EMALFDB' undeclared (first use in this function)
> ClamAV.xs:231: error: `CL_EMALFZIP' undeclared (first use in this function)
> ClamAV.xs:232: error: `CL_EMAXFILES' undeclared (first use in this function)
> ClamAV.xs:233: error: `CL_EMAXREC' undeclared (first use in this function)
> ClamAV.xs:234: error: `CL_EMAXSIZE' undeclared (first use in this function)
> ClamAV.xs:235: error: `CL_EMEM' undeclared (first use in this function)
> ClamAV.xs:236: error: `CL_ENULLARG' undeclared (first use in this function)
> ClamAV.xs:237: error: `CL_EOPEN' undeclared (first use in this function)
> ClamAV.xs:238: error: `CL_EPATSHORT' undeclared (first use in this function)
> ClamAV.xs:239: error: `CL_ERAR' undeclared (first use in this function)
> ClamAV.xs:240: error: `CL_ETMPDIR' undeclared (first use in this function)
> ClamAV.xs:241: error: `CL_ETMPFILE' undeclared (first use in this function)
> ClamAV.xs:242: error: `CL_EZIP' undeclared (first use in this function)
> ClamAV.xs:243: error: `CL_MIN_LENGTH' undeclared (first use in this
> function)
> ClamAV.xs:244: error: `CL_NUM_CHILDS' undeclared (first use in this
> function)
> ClamAV.xs:245: error: `CL_MAIL' undeclared (first use in this function)
> ClamAV.xs:246: error: `CL_ARCHIVE' undeclared (first use in this function)
> ClamAV.xs:247: error: `CL_RAW' undeclared (first use in this function)
> ClamAV.xs:248: error: `CL_VIRUS' undeclared (first use in this function)
> ClamAV.xs:249: error: `CL_CLEAN' undeclared (first use in this function)
> make[1]: *** [ClamAV.o] Error 1
> make[1]: Leaving directory
> `/root/.cpan/build/Mail-ClamAV-0.04/_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/.cpan/build/Mail-ClamAV-0.04/_Inline/build/Mail/ClamAV
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at /root/.cpan/build/Mail-ClamAV-0.04/blib/lib/Mail/ClamAV.pm line 141
> BEGIN failed--compilation aborted at
> /root/.cpan/build/Mail-ClamAV-0.04/blib/lib/Mail/ClamAV.pm line 390.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> make: *** [ClamAV.inl] Error 2
> /usr/bin/make -- NOT OK
> Running make test
> Can't test without successful make
> Running make install
> make had returned bad status, install seems impossible
>
More information about the MailScanner
mailing list