You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/01/06 06:17:29 UTC

[Bug 2872] 2.61 won't compile its own default rules.

http://bugzilla.spamassassin.org/show_bug.cgi?id=2872





------- Additional Comments From felicity@kluge.net  2004-01-05 20:22 -------
Subject: Re:  New: 2.61 won't compile with its default rules.

On Mon, Dec 29, 2003 at 11:13:38AM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> root@agentsmith:/etc/mail/spamassassin# spamassassin --lint
> Failed to compile body SpamAssassin tests, skipping:
>         (Illegal declaration of anonymous subroutine 
> at /usr/local/share/spamassassin/20_phrases.cf, rule WHILE_SUPPLIES, line 8.
> 
> Commenting out that particular rule in the file mentioned only causes it to 
> complain about a different rule in the same file.
> 
> Version of perl is 5.8.2

Yeah, it's some Perl 5.8.1 thing:

Illegal declaration of anonymous subroutine:
(F) When using the sub keyword to construct an anonymous subroutine, you must always specify a block of
code. See perlsub.

<grrr>

I don't have a 5.8.1 or later install to test out what exactly is
going on.  It looks like there's something in do_body_tests and/or
do_rawbody_tests.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.