Skip Menu |

This queue is for tickets about the Authen-SASL CPAN distribution.

Report information
The Basics
Id: 4346
Status: resolved
Priority: 0/
Queue: Authen-SASL

People
Owner: Nobody in particular
Requestors: dan [...] weboutcome.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.06
Fixed in: (no value)



Subject: Missing dependancy prevents compilation
Debian 3.0 (stable) Perl 5.8.1 (with iThreads) - compiled into /opt Perl 5.6.1 (shipped with Debian) If the "Digest::HMAC_MD5" module is not installed, then "make test" fails with the following error message:- t/order.........Can't locate object method "_secflags" via package "Authen::SASL::Perl::CRAM_MD5" at /root/PERL/Authen-SASL-2.06/blib/lib/Authen/SASL/Perl.pm line 31. Installing Digest::HMAC_MD5 solves this problem. Can this be added to the list of prerequisites, so that CPAN downloads it automatically when Authen::SASL is installed?
From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #4346] Missing dependancy prevents compilation
Date: Mon, 10 Nov 2003 14:16:52 +0000
To: bug-Authen-SASL [...] rt.cpan.org
RT-Send-Cc:
On Nov 10, 2003, at 10:35, Guest via RT wrote: Show quoted text
> Debian 3.0 (stable) > Perl 5.8.1 (with iThreads) - compiled into /opt > Perl 5.6.1 (shipped with Debian) > > If the "Digest::HMAC_MD5" module is not installed, then "make test" > fails with the following error message:- > > t/order.........Can't locate object method "_secflags" via package > "Authen::SASL::Perl::CRAM_MD5" at > /root/PERL/Authen-SASL-2.06/blib/lib/Authen/SASL/Perl.pm line 31. > > Installing Digest::HMAC_MD5 solves this problem. Can this be added to > the list of prerequisites, so that CPAN downloads it automatically > when Authen::SASL is installed?
No. If a module cannot be loaded then that mechanism should be skipped. The line in question is eval "require $_;" && $_->_secflags(@sec) == @sec Which should only call the method if the module loaded. So I would consider this a bug somewhere. And I have a nasty feeling its actually in perls require caching mechanism. There was a thread related to this on perl5-porters recently I need to investigate more to be sure. Graham.