Skip Menu |
 

This queue is for tickets about the IO-Socket-IP CPAN distribution.

Report information
The Basics
Id: 84172
Status: resolved
Priority: 0/
Queue: IO-Socket-IP

People
Owner: Nobody in particular
Requestors: chen.yack [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.19
Fixed in: 0.20



Subject: failure test at perlbrew of perl 5.16.3
Download (untitled) / with headers
text/plain 2.9k
i try install it via cpanm , then the test failure, the build log is following : cpanm (App::cpanminus) 1.6008 on perl 5.016003 built for x86_64-linux Work directory is /home/admin/.cpanm/work/1364098000.13303 You have make /usr/bin/make You have /usr/bin/wget You have /bin/tar: tar (GNU tar) 1.15.1 You have /usr/bin/unzip Searching IO::Socket::IP on cpanmetadb ... -> FAIL Finding IO::Socket::IP on cpanmetadb failed. Searching IO::Socket::IP () on metacpan ... --> Working on IO::Socket::IP Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.19.tar.gz -> OK Unpacking IO-Socket-IP-0.19.tar.gz Entering IO-Socket-IP-0.19 Checking configure dependencies from META.json Configuring IO-Socket-IP-0.19 Running Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'IO-Socket-IP' version '0.19' -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have IO::Socket 0 ... Yes (1.34) Checking if you have Socket 1.97 ... Yes (2.001) Building and testing IO-Socket-IP-0.19 Building IO-Socket-IP t/00use.t ........................... ok t/01local-client-v4.t ............... ok t/02local-server-v4.t ............... ok t/03local-cross-v4.t ................ ok t/04local-client-v6.t ............... skipped: Unable to bind to ::1 t/05local-server-v6.t ............... skipped: Unable to bind to ::1 t/06local-cross-v6.t ................ skipped: Unable to bind to ::1 t/10args.t .......................... ok t/11sockopts.t ...................... ok t/12port-fallback.t ................. ok t/13addrinfo.t ...................... ok t/14fileno.t ........................ ok t/15io-socket.t ..................... ok t/16v6only.t ........................ skipped: Unable to bind to ::1 t/17gai-flags.t ..................... ok t/18fdopen.t ........................ ok Can't call method "fileno" on an undefined value at t/19no-addrs.t line 28. # Tests were run but no plan was declared and done_testing() was not seen. t/19no-addrs.t ...................... Dubious, test returned 97 (wstat 24832, 0x6100) All 3 subtests passed t/20nonblocking-connect.t ........... ok t/21nonblocking-connect-internet.t .. ok t/99pod.t ........................... ok Test Summary Report ------------------- t/19no-addrs.t (Wstat: 24832 Tests: 3 Failed: 0) Non-zero exit status: 97 Parse errors: No plan found in TAP output Files=20, Tests=123, 7 wallclock secs ( 0.03 usr 0.05 sys + 1.22 cusr 0.24 csys = 1.54 CPU) Result: FAIL Failed 1/20 test programs. 0/123 subtests failed. -> FAIL Installing IO::Socket::IP failed. See /home/admin/.cpanm/build.log for details. My OS: Linux pesystem160148.pre.cm3 2.6.18-164.el5xen #1 SMP Tue Aug 18 15:59:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux My Perl: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux Copyright 1987-2012, Larry Wall i install perl via perlbrew . hope you can fix this :)
From: d.thomas [...] its.uq.edu.au
Download (untitled) / with headers
text/plain 338b
Show quoted text
> Can't call method "fileno" on an undefined value at t/19no-addrs.t line 28. > # Tests were run but no plan was declared and done_testing() was not seen. > t/19no-addrs.t ......................
I just built 0.19 with perl 5.16.3 on RHEL5: the test passes on RHEL6: the test fails as above It looks like 0.19 has been removed from CPAN.
From: d.thomas [...] its.uq.edu.au
Download (untitled) / with headers
text/plain 215b
On Sun Mar 24 00:46:40 2013, d.thomas@its.uq.edu.au wrote: Show quoted text
> on RHEL5: the test passes > on RHEL6: the test fails as above
after submitting my reply I remembered that the RHEL5 box has v6 while the RHEL6 is V4 only.
Subject: Re: [rt.cpan.org #84172] failure test at perlbrew of perl 5.16.3
Date: Mon, 25 Mar 2013 12:09:06 +0800
To: "bug-IO-Socket-IP [...] rt.cpan.org" <bug-IO-Socket-IP [...] rt.cpan.org>
From: 陈云星 <chen.yack [...] gmail.com>
Download (untitled) / with headers
text/plain 555b
if rel6 have v6,please test it btw,if v6 unexist ,should not failure ! 在 2013年3月24日星期日,d.thomas@its.uq.edu.au via RT 写道: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=84172 > > > On Sun Mar 24 00:46:40 2013, d.thomas@its.uq.edu.au <javascript:;> wrote:
> > on RHEL5: the test passes > > on RHEL6: the test fails as above
> after submitting my reply I remembered that the RHEL5 box > has v6 while the RHEL6 is V4 only. >
-- ---------------------------------------------- Best Regards ! 陈云星 Tel : 1866122992
From: d.thomas [...] its.uq.edu.au
Download (untitled) / with headers
text/plain 296b
On Mon Mar 25 00:09:34 2013, chinaxing wrote: Show quoted text
> btw,if v6 unexist ,should not failure !
t/19no-addrs.t first appeared in 0.19 and I believe it is faulty. My mention of 0.19 disappearing from CPAN was I think a problem with CPAN as some other recently released distros also seemed missing.
Download (untitled) / with headers
text/plain 336b
On Sun Mar 24 00:18:57 2013, chinaxing wrote: Show quoted text
> Can't call method "fileno" on an undefined value at t/19no-addrs.t > line 28. > # Tests were run but no plan was declared and done_testing() was not > seen. > t/19no-addrs.t ......................
Oh oops, this is just again the machine's failure to bind IPv6 addresses. -- Paul Evans
Attached patch should fix it. -- Paul Evans
Subject: rt84172.patch
Download rt84172.patch
text/x-diff 479b
=== modified file 't/19no-addrs.t' --- t/19no-addrs.t 2013-03-11 23:06:15 +0000 +++ t/19no-addrs.t 2013-03-31 20:40:52 +0000 @@ -23,6 +23,9 @@ my $AF_INET6 = eval { require Socket and Socket::AF_INET6() } or skip "No AF_INET6", 3; + eval { IO::Socket::IP->new( LocalHost => "::1" ) } or + skip "Unable to bind to ::1", 3; + my $sock = IO::Socket::IP->new( Family => $AF_INET6 ); ok( defined $sock->fileno, '$sock->fileno for Family => AF_INET6' );
This was released some time ago in 0.20 - I forgot to close the ticket. -- Paul Evans


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.