Plugin: eval failed: Can't find label NO at /usr/lib/perl5/site perl/5.8.8/Mail/S pamAssassin/Plugin/BodyRuleBaseExtractor.pm line 164

From CPanelDirect
Jump to: navigation, search

This is a spamassassin error running sa-compile on cpanel.

The Error

\-> sa-compile
[10741] info: generic: base extraction starting. this can take a while...
[10741] info: generic: extracting from rules of type body_0
  6% [===                                        ]  63.60 rules/sec 00m06s LEFTplugin: eval failed: Can't find label NO at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 164.
cd /
rm -rf /tmp/.spamassassin10741kTNkG8tmp

The fix

Patch source

--- /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm    (revision 610205)
+++ /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm    (working copy)
@@ -207,6 +207,7 @@
       $yes++;
     }
     else {
+NO:
       dbg("zoom: NO $rule");
       push @failed, { orig => $rule };
       $cached->{rule_bases}->{$cachekey} = { };

=Command to run

 patch -p0 < patch
patching file /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
<pre>

==Expected Run After Patch==
<pre>
\-> sa-compile
[10807] info: generic: base extraction starting. this can take a while...
[10807] info: generic: extracting from rules of type body_0
100% [===========================================]  57.84 rules/sec 00m07s DONE
100% [==========================================================================
[10807] info: body_0: 679 base strings extracted in 15 seconds
cd /tmp/.spamassassin10807gG2nfctmp
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
/usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin10807gG2nfctmp/ignored INSTAL
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
make
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.
cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/in/lib/perl5/5.8.8/i686-linux/CORE"   body_0.c
cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/in/lib/perl5/5.8.8/i686-linux/CORE"   scanner1.c
cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/in/lib/perl5/5.8.8/i686-linux/CORE"   scanner2.c
cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/in/lib/perl5/5.8.8/i686-linux/CORE"   scanner3.c
cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/in/lib/perl5/5.8.8/i686-linux/CORE"   scanner4.c
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 body_0.bs
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cc  -shared -L/usr/local/lib body_0.o scanner1.o scanner2.o scanner3.o scanner4.
        \

chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cp body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs
chmod 644 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs
Manifying blib/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
make install
Files found in blib/arch: installing files in blib/lib into architecture depende
Installing /var/lib/spamassassin/compiled/3.002004/auto/Mail/SpamAssassin/Compil
Installing /var/lib/spamassassin/compiled/3.002004/auto/Mail/SpamAssassin/Compil
Installing /var/lib/spamassassin/compiled/3.002004/Mail/SpamAssassin/CompiledReg
Installing /tmp/.spamassassin10807gG2nfctmp/ignored/share/man/man3/Mail::SpamAss
Appending installation info to /tmp/.spamassassin10807gG2nfctmp/ignored/lib/perl
cp /tmp/.spamassassin10807gG2nfctmp/bases_body_0.pl /var/lib/spamassassin/compil
cd /
rm -rf /tmp/.spamassassin10807gG2nfctmp


Notes

http://www.mail-archive.com/dev@spamassassin.apache.org/msg23458.html