You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2007/04/24 21:14:46 UTC

Re: ANNOUNCE: Apache SpamAssassin 3.2.0-rc3 PRERELEASE available!

Rosenbaum, Larry M. writes:
> 1) Now that spamc is linked with zlib, it doesn't link correctly on
> Solaris 8 where libz.so is in /usr/local/lib.  Attempting to run spamc
> gives the following error:
> 
> ld.so.1: ../spamc/spamc: fatal: libz.so: open failed: No such file or
> directory
> 
> A workaround is to use the following "make" command
> 
> # LD_RUN_PATH=/usr/local/lib make
> 
> but it would be better if the configuration code supplied the right link
> options.

Right -- sounds like we need some kind of smarts in our spamc/configure
and spamc/Makefile.in to deal with adding the "-R" switch for the
compiler?  pretty tricky :(

> 2) I tried to compile the rules to see how much speed increase I could
> get, but it didn't work.  After running sa-compile and uncommenting the
> Rule2XSBody plugin, I got the following error:
> 
> # spamassassin --lint
> ld.so.1: /usr/local/bin/spamassassin: fatal: relocation error: file
> /var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/CompiledR
> egexps/body_0/body_0.so: symbol
> Mail_SpamAssassin_CompiledRegexps_body_0_scan17: referenced symbol not
> found
> Killed
> 
> This is with rc2 on Solaris 8.  I haven't tried it with rc3 yet because
> it takes about 3 hours to compile on our development system.

Again, sounds like some kind of -R related issue.  However, this *should*
work since this module is simply built using the ExtUtils::MakeMaker
support for building XS modules.  Are you able to build XS modules
(e.g. HTML::Parser) from source ok on that system?

> 3) I noticed the following rules were removed:
> 
> SUBJECT_DRUG_GAP_P
> HTML_NONELEMENT_50_60
> HTML_NONELEMENT_70_80
> HTML_NONELEMENT_90_100
> HTML_FONT_INVISIBLE
> HTML_BACKHAIR_8
> RISK_FREE
> PORN_URL_SEX
> 
> I was wondering why some of the HTML_NONELEMENT_nn_nn rules were removed
> and some were not.

Basically- some of them were still useful against spam, some were not ;)
The ones that were not were removed, iirc.

> >  * bug 5236: Support Mail::SPF replacement for Mail::SPF::Query.
> 
> Makefile.PL complains if Mail::SPF::Query is missing, even though it
> knows that Mail::SPF is preferred.

So you *have* Mail::SPF installed, but not Mail::SPF::Query?
True; I don't think we yet have code to figure out that situation
automatically.  However the INSTALL doc is pretty clear about that...

--j.

Re: ANNOUNCE: Apache SpamAssassin 3.2.0-rc3 PRERELEASE available!

Posted by Justin Mason <jm...@jmason.org>.
Rosenbaum, Larry M. writes:
> > > 2) I tried to compile the rules to see how much speed increase I
> could
> > > get, but it didn't work.  After running sa-compile and uncommenting
> the
> > > Rule2XSBody plugin, I got the following error:
> > >
> > > # spamassassin --lint
> > > ld.so.1: /usr/local/bin/spamassassin: fatal: relocation error: file
> > >
> /var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/CompiledR
> > > egexps/body_0/body_0.so: symbol
> > > Mail_SpamAssassin_CompiledRegexps_body_0_scan17: referenced symbol
> not
> > > found
> > > Killed
> > >
> > > This is with rc2 on Solaris 8.  I haven't tried it with rc3 yet
> because
> > > it takes about 3 hours to compile on our development system.
> > 
> > Again, sounds like some kind of -R related issue.  However, this
> *should*
> > work since this module is simply built using the ExtUtils::MakeMaker
> > support for building XS modules.  Are you able to build XS modules
> > (e.g. HTML::Parser) from source ok on that system?
> 
> I have no trouble compiling other XS Perl modules.
> 
> It doesn't seem to be a problem finding the dynamic libraries:
> 
> # ldd /var/lib/spamassassin/compiled/3.002000/auto/Mail/
> SpamAssassin/CompiledRegexps/body_0/body_0.so
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> 
> It's more a matter of finding the symbols:
> 
> # ldd -r /var/lib/spamassassin/compiled/3.002000/auto/Mail/
> SpamAssassin/CompiledRegexps/body_0/body_0.so
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
>         symbol not found: main
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: PL_markstack_ptr
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: PL_stack_sp
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: PL_sv_yes
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: PL_stack_base
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_newSVpvn_share
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_av_push
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_sv_2pvutf8
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_newAV
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_sv_2mortal
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found:
> Mail_SpamAssassin_CompiledRegexps_body_0_scan17
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_croak
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_newRV
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_form
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_get_sv
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_sv_2pv_flags
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)
>         symbol not found: Perl_newXS
> (/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
> Regexps/body_0/body_0.so)

Those Perl_* symbols are because you're not linking against libperl.so.
but Mail_SpamAssassin_CompiledRegexps_body_0_scan17 should be appearing.
could you open a bug about this -- and about the spamc LD_RUN_PATH build
issue?

--j.

RE: ANNOUNCE: Apache SpamAssassin 3.2.0-rc3 PRERELEASE available!

Posted by "Rosenbaum, Larry M." <ro...@ornl.gov>.
> > 2) I tried to compile the rules to see how much speed increase I
could
> > get, but it didn't work.  After running sa-compile and uncommenting
the
> > Rule2XSBody plugin, I got the following error:
> >
> > # spamassassin --lint
> > ld.so.1: /usr/local/bin/spamassassin: fatal: relocation error: file
> >
/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/CompiledR
> > egexps/body_0/body_0.so: symbol
> > Mail_SpamAssassin_CompiledRegexps_body_0_scan17: referenced symbol
not
> > found
> > Killed
> >
> > This is with rc2 on Solaris 8.  I haven't tried it with rc3 yet
because
> > it takes about 3 hours to compile on our development system.
> 
> Again, sounds like some kind of -R related issue.  However, this
*should*
> work since this module is simply built using the ExtUtils::MakeMaker
> support for building XS modules.  Are you able to build XS modules
> (e.g. HTML::Parser) from source ok on that system?

I have no trouble compiling other XS Perl modules.

It doesn't seem to be a problem finding the dynamic libraries:

# ldd /var/lib/spamassassin/compiled/3.002000/auto/Mail/
SpamAssassin/CompiledRegexps/body_0/body_0.so
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

It's more a matter of finding the symbols:

# ldd -r /var/lib/spamassassin/compiled/3.002000/auto/Mail/
SpamAssassin/CompiledRegexps/body_0/body_0.so
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
        symbol not found: main
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: PL_markstack_ptr
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: PL_stack_sp
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: PL_sv_yes
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: PL_stack_base
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_newSVpvn_share
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_av_push
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_sv_2pvutf8
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_newAV
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_sv_2mortal
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found:
Mail_SpamAssassin_CompiledRegexps_body_0_scan17
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_croak
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_newRV
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_form
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_get_sv
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_sv_2pv_flags
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)
        symbol not found: Perl_newXS
(/var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/Compiled
Regexps/body_0/body_0.so)