ClamAV 0.95.1 and Mail::ClamAV-0.22

Mogens Melander mogens at fumlersoft.dk
Thu Apr 9 15:24:36 IST 2009


Hi list

I'm trying to set up a new mail server, using sendmail, Cyrus-imap and hopefully
MailScanner, SpamAssassin and friends, and hopefully, turning this install into
a set of zenwalk install packages (netpkg).

Before installing MailScanner i want all dependencies to be up to date (latest).

When trying to build Mail::ClamAV, i'm having big problems trying to "make" the
module from install-Clam-0.95-SA-3.2.5.tar.gz

I've tried to install from CPAN too, same result.

Google didn't provide any hints.

Clues to what i'm missing are more than welcome :)

My environment is:

Zenwalk 5.4 (slackware)
Linux faust 2.6.26 #1 SMP PREEMPT Mon Jul 14 22:56:25 CEST 2008
  i686 Pentium III (Katmai) GenuineIntel GNU/Linux

gcc version 4.3.3 (GCC)
This is perl, v5.10.0 built for i486-linux-thread-multi

I believe i got all perl dependencies installed:
Module                Installed       CPAN
Digest                     1.15       1.15
Text::Balanced            2.0.0   2.000000
Digest::MD5                2.38       2.38
Parse::RecDescent          1.94       1.94
Inline                     0.45       0.45
Test::Harness              3.16       3.16
Test::Simple               0.86       0.86
Mail::ClamAV                  -       0.22 *
DB_File                   1.820      1.820
Digest::SHA1               2.11       2.11
Net::CIDR::Lite            0.20       0.20
Test::Manifest             1.22       1.22
HTML::Parser               3.60       3.60
Business::ISBN::Data   20081208   20081208
Business::ISBN             2.05       2.05
Sys::Hostname::Long         1.4        1.4
Digest::HMAC               1.01       1.01
Net::IP                    1.25       1.25
YAML                       0.68       0.68
ExtUtils::CBuilder         0.24       0.24
ExtUtils::ParseXS          2.19       2.19
version                    0.76       0.76
Module::Build              0.32       0.32
Net::DNS                   0.65       0.65
Net::DNS::Resolver::Programmable     v0.003      0.003
Error                   0.17015    0.17015
NetAddr::IP               4.026      4.026
URI                        1.37       1.37
Mail::SPF::Test          v1.001      1.001
Mail::SPF::Query        1.999.1   1.999001
IP::Country                2.26       2.26
IO::Zlib                   1.09       1.09
IO::String                 1.08       1.08
Archive::Tar               1.46       1.46
Data::Dump                 1.14       1.14
Encode::Detect             1.00       1.01 *
Mail::SPF                v2.006      2.006
Net::Ident                 1.20       1.20
IO::Socket::INET6             -       2.56 *
IO::Socket::SSL            1.24       1.24
Mail::DomainKeys            1.0        1.0
Mail::DKIM                 0.33       0.33
Encode::Detect             1.00       1.01 *
Mail::SpamAssassin     3.002005   3.002005

And the errors i get during make:

Mail-ClamAV-0.22]# make
/usr/bin/perl5.10.0 -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.22 blib/arch
Starting Build Preprocess Stage
Finished Build Preprocess 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
`~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
/usr/bin/perl5.10.0 /usr/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.10.0/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c  -I~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22 -I/usr/include -D_REENTRANT
-D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mtune=i686   -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\"
-fPIC "-I/usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE"   ClamAV.c
ClamAV.xs:33: error: field 'limits' has incomplete type
ClamAV.xs: In function 'clamav_perl__scanfd':
ClamAV.xs:206: error: too many arguments to function 'cl_scandesc'
ClamAV.xs: In function 'clamav_perl__scanfile':
ClamAV.xs:247: error: too many arguments to function 'cl_scanfile'
ClamAV.xs: In function 'clamav_perl_constant':
ClamAV.xs:298: error: 'CL_ERAR' undeclared (first use in this function)
ClamAV.xs:298: error: (Each undeclared identifier is reported only once
ClamAV.xs:298: error: for each function it appears in.)
ClamAV.xs:299: error: 'CL_EZIP' undeclared (first use in this function)
ClamAV.xs:300: error: 'CL_EGZIP' undeclared (first use in this function)
ClamAV.xs:301: error: 'CL_EBZIP' undeclared (first use in this function)
ClamAV.xs:302: error: 'CL_EOLE2' undeclared (first use in this function)
ClamAV.xs:303: error: 'CL_EMSCOMP' undeclared (first use in this function)
ClamAV.xs:304: error: 'CL_EMSCAB' undeclared (first use in this function)
ClamAV.xs:311: error: 'CL_EPATSHORT' undeclared (first use in this function)
ClamAV.xs:314: error: 'CL_ECVDEXTR' undeclared (first use in this function)
ClamAV.xs:315: error: 'CL_EMD5' undeclared (first use in this function)
ClamAV.xs:316: error: 'CL_EDSIG' undeclared (first use in this function)
ClamAV.xs:317: error: 'CL_EIO' undeclared (first use in this function)
ClamAV.xs:319: error: 'CL_ESUPPORT' undeclared (first use in this function)
ClamAV.xs:329: error: 'CL_DB_ACONLY' undeclared (first use in this function)
ClamAV.xs:354: error: 'CL_RAW' undeclared (first use in this function)
ClamAV.xs:355: error: 'CL_ARCHIVE' undeclared (first use in this function)
ClamAV.xs:356: error: 'CL_MAIL' undeclared (first use in this function)
ClamAV.xs:357: error: 'CL_OLE2' undeclared (first use in this function)
ClamAV.xs:358: error: 'CL_ENCRYPTED' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory
`~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_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:
~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV

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

 at ~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 175
BEGIN failed--compilation aborted at
~/install-Clam-0.95-SA-3.2.5/perl-tar/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 534.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 25


-- 
Later

Mogens Melander



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list