You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Walter Hurry <wa...@gmail.com> on 2014/02/27 00:32:06 UTC

Can't get started with SpamAssassin

I'm trying to get started with SpamAssassin on FreeBSD 9.2. This is SpamAssassin 3.3.2, as that's the version in the FreeBSD ports.

SpamAssassin is installed with all its dependencies, but when I run sa-update (as root), I get the following output:

Can't load '/usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so' for module HTML::Parser: /usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so: Undefined symbol "PL_thr_key" at /usr/local/lib/perl5/5.16/XSLoader.pm line 68.
 at /usr/local/lib/perl5/site_perl/5.16/mach/HTML/Parser.pm line 17.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/HTML.pm line 27.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/HTML.pm line 27.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message/Node.pm line 43.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message/Node.pm line 43.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message.pm line 50.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message.pm line 50.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin.pm line 75.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin.pm line 75.
Compilation failed in require at /usr/local/bin/sa-update line 92.
BEGIN failed--compilation aborted at /usr/local/bin/sa-update line 92.

What have I done wrong?


Re: Can't get started with SpamAssassin

Posted by Walter Hurry <wa...@gmail.com>.
Mark Martinec wrote:

> Walter Hurry wrote:
>> I'm trying to get started with SpamAssassin on FreeBSD 9.2.
>> This is SpamAssassin 3.3.2, as that's the version in the FreeBSD ports.
>> 
>> SpamAssassin is installed with all its dependencies, but when I run 
>> sa-update (as root),
>> I get the following output:
>> 
>> Can't load 
>> '/usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so'
>>   for module HTML::Parser: 
>> /usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so:
>>   Undefined symbol "PL_thr_key" at 
>> /usr/local/lib/perl5/5.16/XSLoader.pm line 68.
>>     at /usr/local/lib/perl5/site_perl/5.16/mach/HTML/Parser.pm line 17.
>
>
> /usr/ports/UPDATING
>
> 20131120:
>    AFFECTS: users of lang/perl5.12 lang/perl5.14 lang/perl5.16 and 
> lang/perl5.18
>    AUTHOR: mat@FreeBSD.org
>
>    The THREADS option has been enabled by default in all Perl. If you're 
> using
>    binary packages you need to do :
>
>      # pkg install -Rf perl5
>
>    If you're not using binary packages, and want to switch from non 
> threaded
>    Perl to threaded Perl, you need to recompile and reinstall most ports
>    depending on Perl. Supposing you have Perl 5.16, you would do:
>
Thanks, Mark!

Swiched to threaded perl per the instructions and now all is well.


Re: Can't get started with SpamAssassin

Posted by Mark Martinec <Ma...@ijs.si>.
Walter Hurry wrote:
> I'm trying to get started with SpamAssassin on FreeBSD 9.2.
> This is SpamAssassin 3.3.2, as that's the version in the FreeBSD ports.
> 
> SpamAssassin is installed with all its dependencies, but when I run 
> sa-update (as root),
> I get the following output:
> 
> Can't load 
> '/usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so'
>   for module HTML::Parser: 
> /usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so:
>   Undefined symbol "PL_thr_key" at 
> /usr/local/lib/perl5/5.16/XSLoader.pm line 68.
>     at /usr/local/lib/perl5/site_perl/5.16/mach/HTML/Parser.pm line 17.


/usr/ports/UPDATING

20131120:
   AFFECTS: users of lang/perl5.12 lang/perl5.14 lang/perl5.16 and 
lang/perl5.18
   AUTHOR: mat@FreeBSD.org

   The THREADS option has been enabled by default in all Perl. If you're 
using
   binary packages you need to do :

     # pkg install -Rf perl5

   If you're not using binary packages, and want to switch from non 
threaded
   Perl to threaded Perl, you need to recompile and reinstall most ports
   depending on Perl. Supposing you have Perl 5.16, you would do:

   Portupgrade users:
     0) Fix pkgdb.db (for safety):
         pkgdb -Ff

     1) Change the option in lang/perl5.16:
         make -C /usr/ports/lang/perl5.16 config

     2) Reinstall everything that depends on Perl:
         portupgrade -fr lang/perl5.16

   Portmaster users:
     1) Change the option in lang/perl5.16:
         make -C /usr/ports/lang/perl5.16 config

     2) Reinstall everything that depends on Perl:
         portmaster -r perl5-

   Note: The installed Perl package was named perl and is now named 
perl5, if
         you have not updated your installation in a long time, you may 
need to
         use "perl-" here.


Mark


Re: Can't get started with SpamAssassin

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 2/26/2014 6:32 PM, Walter Hurry wrote:
> I'm trying to get started with SpamAssassin on FreeBSD 9.2. This is SpamAssassin 3.3.2, as that's the version in the FreeBSD ports.
>
> SpamAssassin is installed with all its dependencies, but when I run sa-update (as root), I get the following output:
>
> Can't load '/usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so' for module HTML::Parser: /usr/local/lib/perl5/site_perl/5.16/mach/auto/HTML/Parser/Parser.so: Undefined symbol "PL_thr_key" at /usr/local/lib/perl5/5.16/XSLoader.pm line 68.
>   at /usr/local/lib/perl5/site_perl/5.16/mach/HTML/Parser.pm line 17.
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/HTML.pm line 27.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/HTML.pm line 27.
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message/Node.pm line 43.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message/Node.pm line 43.
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message.pm line 50.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Message.pm line 50.
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin.pm line 75.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16/Mail/SpamAssassin.pm line 75.
> Compilation failed in require at /usr/local/bin/sa-update line 92.
> BEGIN failed--compilation aborted at /usr/local/bin/sa-update line 92.
>
> What have I done wrong?
Sounds like an issue with the HTML::Parser module or perl and linking.  
Looks like a bigger issue with perl than just SpamAssassin.