Subject: | cpan -a barfs on AnyEvent::TLS |
Date: | Thu, 9 Jan 2014 10:56:51 +0000 |
To: | bug-CPAN [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
With AnyEvent::TLS installed:
$ /opt/perl-5.18.1/bin/cpan -a
Creating autobundle in /opt/perl-5.18.1/cpan/Bundle
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
BEGIN { eval {
# Ensure any version() routine which might have leaked
# into this package has been deleted. Interferes with
# version->import()
undef *version;
require version;
"version"->import;
} }
local $Net::SSLeay::VERSION;
$Net::SSLeay::VERSION=undef;
do {
. (($Net::SSLeay::VERSION >= 1.55 && Net::SSLeay::OPENSSL_VERSION_NUMBER() >= 0x1000100f) * 1)
};
$Net::SSLeay::VERSION;
' in /opt/perl-5.18.1/lib/site_perl/5.18.1/x86_64-linux-ld/AnyEvent/TLS.pm: syntax error at (eval 732) line 16, near "{
."
$
The line beginning with "." is line 577 of AnyEvent/TLS.pm, taken out of
context. It looks like this is an attempt to determine AnyEvent::TLS's
version number, by the heuristic of executing the first line of the
module to mention a $VERSION. But this is not the first line to mention
$VERSION; that would be line 17:
our $VERSION = $AnyEvent::VERSION;
-zefram