Manolo Díaz wrote:
> El Mon, 19 May 2008 00:53:20 +0800
> Thomas Goirand <[EMAIL PROTECTED]> escribió:
>>> dkim=invalid (public key: Can't locate object method "new" via
>>> package "Net::DNS::RR::TXT" at /usr/lib/perl5/Net/DNS/RR.pm line
>>> 305, <_GEN_3> line 30.) [EMAIL PROTECTED]; dkim=invalid (public
>>> key: Can't locate object method "new" via package
>>> "Net::DNS::RR::TXT" at /usr/lib/perl5/Net/DNS/RR.pm line 305,
>>> <_GEN_3> line 30.) [EMAIL PROTECTED]
>
> Well, all those bugs are older than two months and dkimproxy worked
> perfectly to me till yesterday, when I did a package upgrade.
Ok, but look at the error message. It's saying that there is an error in
line 305 file /usr/lib/perl5/Net/DNS/RR.pm. apt-file confirms this file
is in the package libnet-dns-perl. Here's the source cut/past:
sub new_from_data {
my $class = shift;
my ($name, $rrtype, $rrclass, $ttl, $rdlength, $data, $offset) = @_;
my $self = { name => $name,
type => $rrtype,
class => $rrclass,
ttl => $ttl,
rdlength => $rdlength,
rdata => substr($$data, $offset,
$rdlength)
};
if ($RR{$rrtype}) {
my $subclass = $class->_get_subclass($rrtype);
return $subclass->new($self, $data, $offset);
} else {
return Net::DNS::RR::Unknown->new($self, $data, $offset);
}
}
It fails at the following call:
return $subclass->new($self, $data, $offset);
How it works is that new_from_string calls new_from_data. rrclass is
defined in new_from_string.
I'm all but a perl specialist, but this really sound like a problem in
libnet-dns-perl, and a side effect of an already existing bug in it. I
hope that Florian will be able to tell more about it, I'd like to have
his opinion: we shall try to be 100% sure of the location ofthe problem.
In the hope for help, I've also added the upstream author of dkimproxy
to this thread, and the user mailing list of the project:
[EMAIL PROTECTED] For them who might not know about
it, I'm the maintainer of DKIMproxy in Debian, and there's a bug report
sent against the dkimproxy package. Here is the link to the package QA URL:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=dkimproxy
The new bug appears because Lenny & SID are now using Perl 5.10, it was
not causing any trouble before.
I hope this can be fixed really quick and that the upstream author will
help (he didn't respond to my previous messages), I hate to leave bugs
open for too longs, and I'll do what I can to have it solved. Is there
any debugger for perl that is able to trace such SMTP proxy?
Thomas Goirand
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]