(this seems to be exactly the same issue as reported by Max Caines on 9/5/02)

this has been driving me batty for two solid days now.

in spamd, I get the following;

razor2 check skipped: Illegal seek Can't locate object method "new" via \
  package "Razor2::Client::Agent" at \
  /usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Dns.pm line 382.

and in spamassassin;

razor2 check skipped:  Can't locate object method "new" via \
  package "Razor2::Client::Agent" at \
  /usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Dns.pm line 382.

---

I downloaded, compiled, and installed both SA 2.55 and VR 2.36 and all
of the relevant CPAN packages on Yellowdog Linux 2.3.

although I agree that Max's fix (adding "use Mail::SpamAssassin::Dns;"
to the top of spamassassin) only masks the problem, it does seem to
work.  however, I'm /really/ trying to get SA working under spamd, and
nothing I do so far is working.  I just don't understand it.

I've stepped through spamd in the perl debugger;

(in 
Mail::SpamAssassin::PerMsgStatus::razor2_lookup(/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Dns.pm):

374:        eval {
375:          local ($^W) = 0;    # argh, warnings in Razor
377:          require Razor2::Client::Agent;
379:          local $SIG{ALRM} = sub { die "alarm\n" };
380:          alarm $timeout;
382:          my $rc =
383:            Razor2::Client::Agent->new('razor-check')

479:        alarm 0;    # just in case
481:        if ($@) {
482:          if ( $@ =~ /alarm/ ) {
490:              warn("razor2 check skipped: $! $@");
razor2 check skipped: Illegal seek Can't locate object method "new" via
package "Razor2::Client::Agent" at
/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Dns.pm line 382.

  DB<6> p $INC{"Razor2/Client/Agent.pm"}
/usr/lib/perl5/site_perl/5.6.0/ppc-linux/Razor2/Client/Agent.pm

---

Razor2::Client::Agent is most definitely loaded; I checked %INC and it's
there.  so why does this fail?  I checked the archive, and this thread
was the only one with any traffic on it, but it didn't look like there
was a resolution..

gah!  frustration!

         --ted



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to