You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris <cp...@earthlink.net> on 2006/09/18 04:24:13 UTC

Problem after upgrade to Net::DNS 0.58

I'm running SA 3.1.5 and this evening upgraded to the above version of 
Net::DNS. Since then periodically I've been seeing this in my syslog:

Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 
Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 
Sep 17 20:27:04 localhost spamd[1126]: plugin: eval failed: Can't use string 
("Net::DNS::RR::MX") as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 

I upgraded via CPAN and there were no errors noted during the upgrade and 
according to the output the install was successfull.  All the required 
modules are already installed also. Ideas anyone?

-- 
Chris

Re: Problem after upgrade to Net::DNS 0.58

Posted by Chris <cp...@earthlink.net>.
On Sunday 17 September 2006 9:24 pm, Chris wrote:
> I'm running SA 3.1.5 and this evening upgraded to the above version of
> Net::DNS. Since then periodically I've been seeing this in my syslog:

As another question to this, I did an upgrade to the module instead a 
removing the older version and then installing the newer. Should I have 
removed the 0.53 version first?

-- 
Chris

Re: Problem after upgrade to Net::DNS 0.58

Posted by Chris <cp...@earthlink.net>.
On Monday 18 September 2006 8:13 am, Sietse van Zanen wrote:
> Probably the writers of the module have decided to use strict references
> in their programming.
>
> You can do 1 of 2 things:
> 1. donwgrade back to 0.53.
> 2. edit the perl source for the new module and disable strict references.
> There should be a line that says 'use strict;'. Add a line 'no strict
> 'refs'; under that. Or something down that road. Look at
> http://perldoc.perl.org/strict.html for more information.
>
> -Sietse
>
I restarted SA last night on the off chance that may fix the problem and it 
appears that it has, I've not seen the error in my syslog for the past 
20hrs or so. I'll keep a watch out and if it comes back give your 
suggestion #2 a try.

Thanks again
Chris

-- 
Chris

RE: Problem after upgrade to Net::DNS 0.58

Posted by Sietse van Zanen <si...@wizdom.nu>.
Probably the writers of the module have decided to use strict references in their programming.

You can do 1 of 2 things:
1. donwgrade back to 0.53. 
2. edit the perl source for the new module and disable strict references. There should be a line that says 'use strict;'. Add a line 'no strict 'refs'; under that. Or something down that road. Look at http://perldoc.perl.org/strict.html for more information.

-Sietse



From: Chris
Sent: Mon 18-Sep-06 4:24
To: users@spamassassin.apache.org
Subject: Problem after upgrade to Net::DNS 0.58


I'm running SA 3.1.5 and this evening upgraded to the above version of 
Net::DNS. Since then periodically I've been seeing this in my syslog:

Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 
Sep 17 20:27:04 localhost spamd[1126]: Can't use string ("Net::DNS::RR::MX") 
as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 
Sep 17 20:27:04 localhost spamd[1126]: plugin: eval failed: Can't use string 
("Net::DNS::RR::MX") as a HASH ref while "strict refs" in use 
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/DNS/RR.pm 
line 724. 
Sep 17 20:27:04 localhost spamd[1126]: Compilation failed in require at 
(eval 1009) line 3. 

I upgraded via CPAN and there were no errors noted during the upgrade and 
according to the output the install was successfull.  All the required 
modules are already installed also. Ideas anyone?

-- 
Chris