Hi all,
i'm trying to install Mail::ClamAV perl module which is needed by MailScanner. i'm trying to do all of this on CentOS final release 4.4. here is what i'm doing:
Code:
perl -MCPAN -e shell
install Mail::ClamA
and it's coming back with this output:
Code:
cpan> install Mail::ClamAV
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 15 Feb 2007 10:08:42 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://cpan.llarian.net/pub/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
ftp://cpan.llarian.net/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 19 Feb 2007 11:09:10 GMT
There's a new CPAN.pm version (v1.8802) available!
[Current version is v1.7601]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://cpan.llarian.net/pub/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Mail::ClamAV
Running make for S/SA/SABECK/Mail-ClamAV-0.17.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.17.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Mail-ClamAV-0.17/
Mail-ClamAV-0.17/Inline/
Mail-ClamAV-0.17/Inline/MakeMaker.pm
Mail-ClamAV-0.17/Makefile.PL
Mail-ClamAV-0.17/README
Mail-ClamAV-0.17/t/
Mail-ClamAV-0.17/t/Mail-ClamAV.t
Mail-ClamAV-0.17/t/eicarcom2.zip
Mail-ClamAV-0.17/t/virus.eml
Mail-ClamAV-0.17/config.pl
Mail-ClamAV-0.17/MANIFEST
Mail-ClamAV-0.17/INSTALL
Mail-ClamAV-0.17/ClamAV.pm
Mail-ClamAV-0.17/META.yml
Mail-ClamAV-0.17/Changes
Removing previously used /root/.cpan/build/Mail-ClamAV-0.17
CPAN.pm: Going to build S/SA/SABECK/Mail-ClamAV-0.17.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.17 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.17/_Inline/build/Mail/ClamAV'
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
gcc -c -I/root/.cpan/build/Mail-ClamAV-0.17 -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -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.17\" -DXS_VERSION=\"0.17\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" ClamAV.cClamAV.xs: In function `clamav_perl__scanbuff':
ClamAV.xs:185: warning: passing arg 3 of `Perl_sv_setpv' makes pointer from integer without a cast
ClamAV.xs: In function `clamav_perl__scanfd':
ClamAV.xs:229: warning: passing arg 3 of `Perl_sv_setpv' makes pointer from integer without a cast
ClamAV.xs: In function `clamav_perl__scanfile':
ClamAV.xs:270: warning: passing arg 3 of `Perl_sv_setpv' makes pointer from integer without a cast
ClamAV.xs: In function `error':
ClamAV.xs:293: warning: assignment makes pointer from integer without a cast
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:308: error: `CL_EMALFZIP' undeclared (first use in this function)
ClamAV.xs:308: error: (Each undeclared identifier is reported only once
ClamAV.xs:308: error: for each function it appears in.)
ClamAV.xs:334: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/Mail-ClamAV-0.17/_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.17/_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.17/blib/lib/Mail/ClamAV.pm line 193
BEGIN failed--compilation aborted at /root/.cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 537.
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
i also downloaded Mail::ClamAV tar and tried to install it offline but it's coming back with the same output. as far as the INSTALL file, the only requirement is libclamav which is installed already since i compiled clamav-0.90 from source. i've been searching for two days with no results on the issue. any ideas?
thank you.