Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem installing Clamav Perl Module

Posted on 2006-10-21
3
Medium Priority
?
828 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
collins23 earned 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

722 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