Broken ClamAV module after 0.66 upgrade?

Rick Cooper rcooper at DIMENSION-FLM.COM
Thu Feb 12 15:09:34 GMT 2004


There is a couple of lines in the ClamAV.pm module that were to
be removed upon install that are not:

# removed on install
BEGIN {
 require "./config.pl";
 }
# end removed on install

the patch below will fix this by commenting them out. After
installing the patch:

Feb 12 10:02:47 srv2 MailScanner[588]: Virus and Content
Scanning: Starting
Feb 12 10:02:47 srv2 MailScanner[588]: Commencing scanning by
f-prot...
Feb 12 10:02:47 srv2 MailScanner[588]: Completed scanning by
f-prot
Feb 12 10:02:48 srv2 MailScanner[588]: Commencing scanning by
clamavmodule...
Feb 12 10:02:48 srv2 MailScanner[588]: Completed scanning by
clamavmodule
Feb 12 10:02:48 srv2 MailScanner[588]: Completed checking by
/usr/bin/file
Feb 12 10:02:48 srv2 MailScanner[588]: About to deliver 1
messages

========== Begin patch ============================

*** ClamAV.pm   Tue Feb 10 13:38:15 2004
--- ClamAV.pm.new       Thu Feb 12 09:59:44 2004
***************
*** 141,147 ****
      LIBS     => "-lclamav";
  # removed on install
! BEGIN {
! require "./config.pl";
! }
  # end removed on install
  use Inline C => <<'END_OF_C';
--- 141,147 ----
      LIBS     => "-lclamav";
  # removed on install
! #BEGIN {
! #require "./config.pl";
! #}
  # end removed on install
  use Inline C => <<'END_OF_C';

================= end patch


> -----Original Message-----
> From: MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Julian Field
> Sent: Thursday, February 12, 2004 9:39 AM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Broken ClamAV module after 0.66 upgrade?
>
>
> It is actually a problem in the Mail::ClamAV perl
> module, latest version
> (0.05).
>
> If you switch back to Mail::ClamAV 0.04 (which you can
> download from the
> same address as 0.05, just change the number in the
> filename), then it works.
>
> I have filed a bug report with the author.
>
> At 13:55 12/02/2004, you wrote:
> >hi,
> >    I am successfully running clamav 0.66 with
> clamavmodule, perl 5.8.2,
> >MS 4.26.8, Solaris 9.
> >
> >Jeff
> >
> >On Thu, 12 Feb 2004, Ugo Bellavance wrote:
> >
> > > Date: Thu, 12 Feb 2004 07:28:50 -0500
> > > From: Ugo Bellavance <ugob at CAMO-ROUTE.COM>
> > > Reply-To: MailScanner mailing list
> <MAILSCANNER at JISCMAIL.AC.UK>
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Re: Broken ClamAV module after 0.66 upgrade?
> > >
> > > Julian Field wrote:
> > >
> > > > At 11:35 12/02/2004, you wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >>        I read the INSTALL, README and NEWS
> files before installing,
> > but I
> > > >> didn't find anything about that.
> > > >>
> > > >>        Anyone else got their "clamavmodule"
> broken after upgrading to
> > > >> 0.66?
> > > >> Hi had to fall back to "clamav" only to make
> MailScanner restart, else I
> > > >> got this message:
> > > >>
> > > >> In Debugging mode, not forking...
> > > >> Can't locate ./config.pl in @INC (@INC
> contains: /usr/sbin
> > > >
> > > >
> > > > That's an error in the ClamAV perl code, not in
> my code. They are
> > > > "requiring" a perl file and have got the code wrong.
> > > >
> > > > Thanks for posting the error message, saved me a
> whole load of time
> > > > downloading it all and digging through it myself.
> > >
> > > No problem.  Tell me if you need anything else.
> > > >
> > > > Please report this error to the Clam folks and
> they should be able to
> > > > produce a fix pretty quickly.
> > >
> > > Ok, but I won't have time untill this afternoon,
> which comes after yours :)
> > >
> > > If I'm not too busy this afternoon I'll try
> > > > to work one out for you.
> > > Ok, please let me know if you do.
> > > >
> > > >> /usr/sbin/MailScanner /usr/lib/MailScanner
> > > >> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0
> > > >> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> > > >> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> > > >> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> > > >> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl
> > > >> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0 .
> > > >> /usr/lib/MailScanner) at
> > > >>
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/
> Mail/ClamAV.pm
> > > >> line 144.
> > > >> BEGIN failed--compilation aborted at
> > > >>
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/
> Mail/ClamAV.pm
> > > >> line 145.
> > > >> Compilation failed in require at
> > > >>
> /usr/lib/MailScanner/MailScanner/SweepViruses.pm line 369.
> > > >>
> > > >>
> > > >> Thanks for your help.
> > >
> > > I do thank you.... ;)
> > > >
> > > >
> > > > --
> > > > Julian Field
> > > > www.MailScanner.info
> > > > MailScanner thanks transtec Computers for their support
> > > >
> > > > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222
> 11F6 5947 1415 B654
> > >
>
> --
> Julian Field
> www.MailScanner.info
> MailScanner thanks transtec Computers for their support
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947
> 1415 B654
>
> --
> 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