Error in install-Clam-SA

Denis Beauchemin Denis.Beauchemin at USherbrooke.ca
Mon May 15 21:11:14 IST 2006


Hello,

I just used the latest install-Clam-SA script on a brand new RHEL 4 
server and I got the following errors about Clam:
WARNING ------------------------------------------------
WARNING You have an older version of clamav or
WARNING clamav-config is not in your path
WARNING If you get compile errors you will either
WARNING need to upgrade clamav to atleast 0.73
WARNING or make sure clamav-config is in your path
WARNING ------------------------------------------------
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lclamav
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
Note (probably harmless): No library found for -lclamav
Writing Makefile for Mail::ClamAV
  Finished "perl Makefile.PL" Stage

  Starting "make" Stage
make[1]: Entering directory 
`/tmp/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/tmp/Mail-ClamAV-0.17 -I/usr/include -D_REENTRANT 
-D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/loca
l/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.c
ClamAV.xs:11:20: clamav.h: No such file or directory
ClamAV.xs:19: error: field `limits' has incomplete type
ClamAV.xs:20: error: field `st' has incomplete type
ClamAV.xs: In function `clamav_perl_new':
ClamAV.xs:48: error: invalid application of `sizeof' to incomplete type 
`cl_stat'
ClamAV.xs: In function `clamav_perl__scanbuff':
ClamAV.xs:180: error: `CL_VIRUS' undeclared (first use in this function)
ClamAV.xs:180: error: (Each undeclared identifier is reported only once
ClamAV.xs:180: error: for each function it appears in.)
ClamAV.xs:182: error: `CL_CLEAN' undeclared (first use in this function)
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:224: error: `CL_VIRUS' undeclared (first use in this function)
ClamAV.xs:226: error: `CL_CLEAN' undeclared (first use in this function)
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:265: error: `CL_VIRUS' undeclared (first use in this function)
ClamAV.xs:267: error: `CL_CLEAN' undeclared (first use in this function)
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:300: error: `CL_CLEAN' undeclared (first use in this function)
ClamAV.xs:301: error: `CL_VIRUS' undeclared (first use in this function)
ClamAV.xs:303: error: `CL_EMAXREC' undeclared (first use in this function)
ClamAV.xs:304: error: `CL_EMAXSIZE' undeclared (first use in this function)
ClamAV.xs:305: error: `CL_EMAXFILES' undeclared (first use in this function)
ClamAV.xs:306: error: `CL_ERAR' undeclared (first use in this function)
ClamAV.xs:307: error: `CL_EZIP' undeclared (first use in this function)
ClamAV.xs:308: error: `CL_EMALFZIP' undeclared (first use in this function)
ClamAV.xs:309: error: `CL_EGZIP' undeclared (first use in this function)
ClamAV.xs:310: error: `CL_EBZIP' undeclared (first use in this function)
ClamAV.xs:311: error: `CL_EOLE2' undeclared (first use in this function)
undeclared (first use in this function)
ClamAV.xs:313: error: `CL_EMSCAB' undeclared (first use in this function)
ClamAV.xs:314: error: `CL_EACCES' undeclared (first use in this function)
ClamAV.xs:315: error: `CL_ENULLARG' undeclared (first use in this function)
ClamAV.xs:317: error: `CL_ETMPFILE' undeclared (first use in this function)
ClamAV.xs:318: error: `CL_EFSYNC' undeclared (first use in this function)
ClamAV.xs:319: error: `CL_EMEM' undeclared (first use in this function)
ClamAV.xs:320: error: `CL_EOPEN' undeclared (first use in this function)
ClamAV.xs:321: error: `CL_EMALFDB' undeclared (first use in this function)
ClamAV.xs:322: error: `CL_EPATSHORT' undeclared (first use in this function)
ClamAV.xs:323: error: `CL_ETMPDIR' undeclared (first use in this function)
ClamAV.xs:324: error: `CL_ECVD' undeclared (first use in this function)
ClamAV.xs:325: error: `CL_ECVDEXTR' undeclared (first use in this function)
ClamAV.xs:326: error: `CL_EMD5' undeclared (first use in this function)
ClamAV.xs:327: error: `CL_EDSIG' 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/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/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV

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

 at /tmp/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 193
BEGIN failed--compilation aborted at 
/tmp/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 537.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 2

What's causing this and how can I fix it?

Thanks!

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x2252 F: 819.821.8045


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3226 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060515/ef57404f/smime.bin


More information about the MailScanner mailing list