Perl error

Kevin Jaspers

Verified User
Joined
Jan 23, 2012
Messages
64
Hello,

Since the last days i've got the error *While updating
Code:
Subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
 at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm line 66
Latest version of SpamAssassin: 3.4.0
Installed version of SpamAssassin: 3.4.0

What can i do about this.
I've searched everywhere but nothing seems to work.

Already thanks.
 
Hello,

try to update all perl modules installed with CPAN and your OS packages.

I've met and fixed the issue you are facing now some time ago. But I haven't noted how to solve it unfortunately.
 
hm. not seems to work.
I try'd:
Code:
cpan install Bundle::CPAN

Also i try'd
Code:
[root@server custombuild]# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.arbitrary.nl
 * extras: mirror.colocenter.nl
 * updates: mirror.colocenter.nl
Excluding Packages in global exclude list
Finished
[root@server custombuild]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.arbitrary.nl
 * extras: mirror.colocenter.nl
 * updates: mirror.colocenter.nl
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update
 
Last edited:
it's look like cpan modules are missing,
so please provide the lines 63-66
from /usr/lib/perl5/5.8.8/Exporter.pm
 
Okay, here it is.

Code:
      foreach (@$exports, @{"$pkg\::EXPORT_OK"});
  }
  my $heavy;
  # Try very hard not to use {} and hence have to  enter scope on the foreach
  # We bomb out of the loop with last as soon as heavy is set.
  if ($args or $fail) {
    ($heavy = (/\W/ or $args and not exists $export_cache->{$_}
               or @$fail and $_ eq $fail->[0])) and last
                 foreach (@_);
  } else {
    ($heavy = /\W/) and last
      foreach (@_);
  }
  return export $pkg, $callpkg, ($args ? @_ : ()) if $heavy;
  local $SIG{__WARN__} =
[B]==> this is line 63[/B]        sub {require Carp; &Carp::carp};
  # shortcut for the common case of no type character
  *{"$callpkg\::$_"} = \&{"$pkg\::$_"} foreach @_;
}
 
I recently updated the perls, but since i've updated it, it went wrong i think.
Is there someting that i can do about this.
 
No, I tried other things but not that.
It says
Code:
[root@server custombuild]# yum install perl-NetAddr-IP
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.arbitrary.nl
 * extras: mirror.arbitrary.nl
 * updates: mirror.i3d.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-NetAddr-IP-4.027-5.el5_6.i386 already installed and latest version
Nothing to do
 
Last edited:
Now it says,
Code:
Can't locate NetAddr/IP.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Util.pm line 75.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Util.pm line 75.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Conf.pm line 85.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Conf.pm line 85.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 71.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 71.
Compilation failed in require at /usr/bin/spamd line 241.
BEGIN failed--compilation aborted at /usr/bin/spamd line 241.

I've installed it again and the massage is back.
No change.
Damn..
 
You probably need to install it from original repo of your OS, not 3rd party's (disable exra, forge, epel repos temporary). The error might appear when you install perl packages from different repos.
 
I've tryd someting and now its gone.
Code:
yum remove perl-Net-DNS-0.59-3.el5.i386

Great thanks for helping me a bit.!
 
Back
Top