Mail::ClamAV compilation problem with perl

kfliong kfliong at WOFS.COM
Thu Oct 21 05:19:55 IST 2004


<x-flowed>
Hi,

I am getting this error trying to install Mail::ClamAV with perl CPAN
shell. When i go into shell, I get this error :

perl -MCPAN -e shell
Undefined value assigned to typeglob at (eval 16) line 15, <RC> line 11.
Warning [/etc/inputrc line 11]:
   Invalid variable `mark-symlinked-directories'

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

-----------------------------------
the in type : install Mail::ClamAV

..
..
..
..
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.12/_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.12 -I/usr/local/include
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386
-mcpu=i686   -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -fPIC
"-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE"   ClamAV.c
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:324: error: `CL_EFORMAT' undeclared (first use in this function)
ClamAV.xs:324: error: (Each undeclared identifier is reported only once
ClamAV.xs:324: error: for each function it appears in.)
ClamAV.xs:326: error: `CL_SCAN_RAW' undeclared (first use in this function)
ClamAV.xs:327: error: `CL_SCAN_ARCHIVE' undeclared (first use in this function)
ClamAV.xs:328: error: `CL_SCAN_MAIL' undeclared (first use in this function)
ClamAV.xs:329: error: `CL_SCAN_DISABLERAR' undeclared (first use in this
function)
ClamAV.xs:330: error: `CL_SCAN_OLE2' undeclared (first use in this function)
ClamAV.xs:331: error: `CL_SCAN_BLOCKENCRYPTED' undeclared (first use in
this function)
ClamAV.xs:332: error: `CL_SCAN_HTML' undeclared (first use in this function)
ClamAV.xs:333: error: `CL_SCAN_PE' undeclared (first use in this function)
ClamAV.xs:334: error: `CL_SCAN_BLOCKBROKEN' undeclared (first use in this
function)
ClamAV.xs:335: error: `CL_SCAN_MAILURL' undeclared (first use in this function)
ClamAV.xs:336: error: `CL_SCAN_BLOCKMAX' undeclared (first use in this
function)
ClamAV.xs:338: error: `CL_SCAN_STDOPT' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory
`/root/.cpan/build/Mail-ClamAV-0.12/_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.12/_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.12/blib/lib/Mail/ClamAV.pm line 164
BEGIN failed--compilation aborted at
/root/.cpan/build/Mail-ClamAV-0.12/blib/lib/Mail/ClamAV.pm line 503.
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 already tried install Bundle::CPAN and all is up-to-date.

Could it be related to the first error when i go into shell?

Using perl 5.8.1 and fedora1. Kernel 2.4.20-24.7

Thanks in advance.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>



More information about the MailScanner mailing list