Package: perl-base
Version: 5.14.2-5

A Perl-Subroutine gets double exported, when LWP::UserAgent / HTTP::Request is used on a HTTPS target.
Package libsocket6-perl 0.23-1+b2 is installed due to a dependancy chain.

sockaddr_in6 is exported by both modules
 /usr/lib/perl/5.14/Socket.pm
 /usr/lib/perl5/Socket6.pm

The attached example script should trigger this problem.
Regards, Alexander Kurz
#!/usr/bin/perl -w
# ---------
# example script to trigger a export-conflict
# between /usr/lib/perl/5.14/Socket.pm and /usr/lib/perl5/Socket6.pm
# Package libsocket6-perl 0.23-1+b2 is installed due to a dependancy chain.
#
# Subroutine IO::Socket::INET6::sockaddr_in6 redefined at
# /usr/share/perl/5.14/Exporter.pm line 67.
#  at /usr/share/perl5/IO/Socket/INET6.pm line 21
# ---------
use HTTP::Request;
use LWP::UserAgent;
use strict;

my $useragent = LWP::UserAgent->new ();
my $request = HTTP::Request->new ('GET' => 'https://www.ccc.de/');
my $response = $useragent->request ($request);

Reply via email to