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

Reply via email to