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 2007/01/07 00:27:25 UTC

[Bug 5281] New: Plugin loader does not observe PERL5LIB, Mail::SpamAssassin::Plugin::DomainKeys fails to load

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5281

           Summary: Plugin loader does not observe PERL5LIB,
                    Mail::SpamAssassin::Plugin::DomainKeys fails to load
           Product: Spamassassin
           Version: 3.1.7
          Platform: Other
               URL: http://tongodeon.livejournal.com/578257.html
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Plugins
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: apache-org@monkeydyne.com


I'm doing my own spamassassin install on Dreamhost, in my $HOME directory inside
a chrooted jail on a non-root account.  

I've installed DomainKeys inside ~/usr/local/lib/perl5:

> [skybar]$ find /home/mailfilter/ -name Message.pm
> /home/mailfilter/usr/local/lib/perl5/Mail/DomainKeys/Message.pm

I've set my PERL5LIB to point to the correct directories:

> [skybar]$ echo $PERL5LIB
/home/mailfilter/usr/local/lib/perl5:/home/mailfilter/usr/local/share/perl/5.8/:/home/mailfilter/usr/local/share/perl/:/home/mailfilter/usr/local/lib/perl/5.8/:/home/mailfilter/usr/local/lib/perl:

This installation is successful:

> [skybar]$ perl -w -e 'use strict; require Mail::DomainKeys::Message;'
> [skybar]$ echo $?
> 0

I can also load the SpamAssassin module without problems:

> [skybar]$ perl -w -e 'use strict; require Mail::DomainKeys::Message;'
> [skybar]$ echo $?
> 0

When I add "loadplugin Mail::SpamAssassin::Plugin::DomainKeys" to my init.pre
file, spamassassin cannot not load the module:

> [skybar]$ spamassassin test.txt 
> [30201] warn: plugin: failed to parse plugin (from @INC): Can't locate
Mail/DomainKeys/Message.pm in @INC (@INC contains:
/home/mailfilter/usr/local/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4
/usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8
/usr/share/perl/5.8 /usr/local/lib/site_perl) at
/home/mailfilter/usr/local/share/perl/5.8.4/Mail/SpamAssassin/Plugin/DomainKeys.pm
line 45.
> [30201] warn: BEGIN failed--compilation aborted at
/home/mailfilter/usr/local/share/perl/5.8.4/Mail/SpamAssassin/Plugin/DomainKeys.pm
line 45.
> [30201] warn: Compilation failed in require at (eval 14) line 1.
> [30201] warn: plugin: failed to create instance of plugin
Mail::SpamAssassin::Plugin::DomainKeys: Can't locate object method "new" via
package "Mail::SpamAssassin::Plugin::DomainKeys" at (eval 15) line 1.



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

[Bug 5281] Plugin loader does not observe PERL5LIB, Mail::SpamAssassin::Plugin::DomainKeys fails to load

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5281


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From jm@jmason.org  2007-01-06 15:46 -------
heh.  merging the two bugs...

*** This bug has been marked as a duplicate of 5282 ***



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