Hi, Thanks for the bug report and the patch. I'll try to get something
out soon, I'm very busy atm. Maybe someone can convince the clamav
developers that needlessly breaking backwards compatibility on minor
release of a virus scanner is not such a great idea.
Scott
On Sat Apr 19 11:31:06 2008, PJS wrote:
Show quoted text> If it weren't for Clam's incessant griping to upgrade whenever a new
> version comes out this wouldn't be such a big problem...
>
> [root@tweety Mail-ClamAV-0.21-PE2n1S]# make
> cp ClamAV.pm blib/lib/Mail/ClamAV.pm
> /usr/local/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1
> 0.21 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
> `/root/.cpan/build/Mail-ClamAV-0.21-PE2n1S/_Inline/build/Mail/ClamAV'
> /usr/local/bin/perl /usr/local/lib/perl5/5.10.0/ExtUtils/xsubpp
> -typemap /usr/local/lib/perl5/5.10.0/ExtUtils/typemap ClamAV.xs >
> ClamAV.xsc && mv ClamAV.xsc ClamAV.c
> cc -c -I/root/.cpan/build/Mail-ClamAV-0.21-PE2n1S -I/usr/local/include
> -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g
> -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC
> "-I/usr/local/lib/perl5/5.10.0/i686-linux/CORE" ClamAV.c
> ClamAV.xs: In function 'clamav_perl_new':
> ClamAV.xs:53: error: 'struct cl_limits' has no member named 'maxmailrec'
> ClamAV.xs:58: error: 'struct cl_limits' has no member named 'maxratio'
> ClamAV.xs: In function 'clamav_perl_maxmailrec':
> ClamAV.xs:141: error: 'struct cl_limits' has no member named 'maxmailrec'
> ClamAV.xs:143: error: 'struct cl_limits' has no member named 'maxmailrec'
> ClamAV.xs: In function 'clamav_perl_maxratio':
> ClamAV.xs:180: error: 'struct cl_limits' has no member named 'maxratio'
> ClamAV.xs:182: error: 'struct cl_limits' has no member named 'maxratio'
> ClamAV.xs: In function 'clamav_perl_constant':
> ClamAV.xs:365: error: 'CL_SCAN_PHISHING_DOMAINLIST' undeclared (first
> use in this function)
> ClamAV.xs:365: error: (Each undeclared identifier is reported only once
> ClamAV.xs:365: error: for each function it appears in.)
> make[1]: *** [ClamAV.o] Error 1
> make[1]: Leaving directory
> `/root/.cpan/build/Mail-ClamAV-0.21-PE2n1S/_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.21-PE2n1S/_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.21-PE2n1S/blib/lib/Mail/ClamAV.pm
> line 178
> BEGIN failed--compilation aborted at
> /root/.cpan/build/Mail-ClamAV-0.21-PE2n1S/blib/lib/Mail/ClamAV.pm line
556.
Show quoted text> Compilation failed in require.
> BEGIN failed--compilation aborted.
> make: *** [ClamAV.inl] Error 25
>
>
> AFAICT 0.93 just gets rid of maxmailrec and maxratio and
> CL_SCAN_PHISHING_DOMAINLIST. They're not even mentioned in the
> changelog. The attached patch removes them and passes its tests and
> appears to work in my apps.
>
>