Solved

Problem installing Clamav Perl Module

Posted on 2006-10-21
3
803 Views
Last Modified: 2008-01-09
Here is the output of the install:

Any help would be appreciated

Executing /usr/bin/perl Makefile.PL  && make ..
                                                                                                   
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::ClamAV
cp ClamAV.pm blib/lib/Mail/ClamAV.pm
/usr/bin/perl5.8.7 -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 `/tmp/.webmin/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV'
/usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.7/ExtUtils/type
map   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c  -I/tmp/.webmin/Mail-ClamAV-0.17 -I/usr/include -fno-strict-aliasing -pipe -I/usr/local/includ
e -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686   -DVERSION=\"0.17\" -DXS_VE
RSION=\"0.17\" -fPIC "-I/usr/lib/perl5/5.8.7/i486-linux/CORE"   ClamAV.c
ClamAV.xs: In function `clamav_perl__scanbuff':
ClamAV.xs:174: warning: passing arg 3 of `cl_scanbuff' from incompatible pointer type
ClamAV.xs: In function `clamav_perl__scanfd':
ClamAV.xs:216: warning: passing arg 2 of `cl_scandesc' from incompatible pointer type
ClamAV.xs: In function `clamav_perl__scanfile':
ClamAV.xs:257: warning: passing arg 2 of `cl_scanfile' from incompatible pointer type
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:311: error: `CL_EOLE2' undeclared (first use in this function)
ClamAV.xs:311: error: (Each undeclared identifier is reported only once
ClamAV.xs:311: error: for each function it appears in.)
ClamAV.xs:312: error: `CL_EMSCOMP' undeclared (first use in this function)
ClamAV.xs:313: error: `CL_EMSCAB' undeclared (first use in this function)
ClamAV.xs:328: error: `CL_EIO' undeclared (first use in this function)
ClamAV.xs:329: error: `CL_EFORMAT' undeclared (first use in this function)
ClamAV.xs:331: error: `CL_SCAN_RAW' undeclared (first use in this function)
ClamAV.xs:332: error: `CL_SCAN_ARCHIVE' undeclared (first use in this function)
ClamAV.xs:333: error: `CL_SCAN_MAIL' undeclared (first use in this function)
ClamAV.xs:334: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
ClamAV.xs:335: error: `CL_SCAN_OLE2' undeclared (first use in this function)
ClamAV.xs:336: error: `CL_SCAN_BLOCKENCRYPTED' undeclared (first use in this function)
ClamAV.xs:337: error: `CL_SCAN_HTML' undeclared (first use in this function)
ClamAV.xs:338: error: `CL_SCAN_PE' undeclared (first use in this function)
ClamAV.xs:339: error: `CL_SCAN_BLOCKBROKEN' undeclared (first use in this function)
ClamAV.xs:340: error: `CL_SCAN_MAILURL' undeclared (first use in this function)
ClamAV.xs:341: error: `CL_SCAN_BLOCKMAX' undeclared (first use in this function)
ClamAV.xs:343: error: `CL_SCAN_STDOPT' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/tmp/.webmin/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:
/tmp/.webmin/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV

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

 at /tmp/.webmin/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 193
BEGIN failed--compilation aborted at /tmp/.webmin/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 537.

Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 25

0
Comment
Question by:ITMiami
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
collins23 earned 500 total points
ID: 17787023
hav u read the INSTALL file where you extracted the sources to ?
it says something about needing libclamav from http://www.clamav.net/ and the Inline::C perl module

after downloading and installing libclamav

you can install the rest using (assuming you have perl installed on your box)

perl -MCPAN -e shell
install Parse::RecDescent
install Inline
install Mail::ClamAV
0
 

Author Comment

by:ITMiami
ID: 17791943
What do you mean by libclamav? I download the clamav version 0.90RC1.1 is that it?
The download url I used was http://www.clamav.net/stable.php#pagestart


That the output of the commands above
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


cpan> install Parse::RecDescent
CPAN: Storable loaded ok
Going to read /updates/cpan/Metadata
  Database was generated on Sun, 22 Oct 2006 08:24:56 GMT
Parse::RecDescent is up to date.

cpan> install Inline
Inline is up to date.

cpan> install Mail::ClamAV
Running install for module Mail::ClamAV
Running make for S/SA/SABECK/Mail-ClamAV-0.17.tar.gz
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
  ftp://ftp.wayne.edu/cpan/authors/id/S/SA/SABECK/Mail-ClamAV-0.17.tar.gz
CPAN: Digest::MD5 loaded ok
LWP not available
Fetching with Net::FTP:
  ftp://ftp.wayne.edu/cpan/authors/id/S/SA/SABECK/CHECKSUMS
CPAN: Compress::Zlib loaded ok
Checksum for /updates/cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.17.tar.gz ok
Scanning cache /updates/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

  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/perl5.8.7 -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 `/updates/cpan/build/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV'
/usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c  -I/updates/cpan/build/Mail-ClamAV-0.17 -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686   -DVERSION=\"0.17\" -DXS_VERSION=\"0.17\" -fPIC "-I/usr/lib/perl5/5.8.7/i486-linux/CORE"   ClamAV.c
ClamAV.xs: In function `clamav_perl__scanbuff':
ClamAV.xs:185: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast
ClamAV.xs: In function `clamav_perl__scanfd':
ClamAV.xs:229: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast
ClamAV.xs: In function `clamav_perl__scanfile':
ClamAV.xs:270: warning: passing arg 2 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:334: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
ClamAV.xs:334: error: (Each undeclared identifier is reported only once
ClamAV.xs:334: error: for each function it appears in.)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/updates/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:
/updates/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 /updates/cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 193
BEGIN failed--compilation aborted at /updates/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 25
  /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
0
 

Author Comment

by:ITMiami
ID: 17800942
I switched to clamassassin to link to procmail, it worked just fine now I have ClamAV scanning all messages on the server if anyone want to do the same here is a link to the clamassassin README file that I used...

http://drivel.com/clamassassin/clamassassin-1.2.3/README

Thanks for your help collins23.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question