Skip Menu |

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

Report information
The Basics
Id: 19918
Status: resolved
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: jlong [...] messiah.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.25
Fixed in: (no value)



Subject: make test fails on Perl 5.6.1
The following error occurs when running 'make test' on Net-IP-0.25. The error did not occur on Net-IP-0.24. My Perl is v5.6.1, on RedHat Enterprise Linux 2.1. Feel free to email me for more information. $ make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/ipv4..............int=3279048704 Can't call method "as_hex" without a package or object reference at blib/lib/Net/IP.pm line 433. t/ipv4..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-27 Failed 23/27 tests, 14.81% okay t/ipv6..............int=295990755014133383690938178081940045824 Can't call method "as_hex" without a package or object reference at blib/lib/Net/IP.pm line 433. t/ipv6..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-21 Failed 17/21 tests, 19.05% okay
From: ly
you must install Math::BigInt first. On 2006-06-15 09:05:49 星期四, guest wrote: Show quoted text
> The following error occurs when running 'make test' on Net-IP-0.25.
The Show quoted text
> error did not occur on Net-IP-0.24. > > My Perl is v5.6.1, on RedHat Enterprise Linux 2.1. Feel free to
email me Show quoted text
> for more information. > > $ make test > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib > -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use > Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t Show quoted text
> t/ipv4..............int=3279048704 > Can't call method "as_hex" without a package or object reference at > blib/lib/Net/IP.pm line 433. > t/ipv4..............dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 5-27 > Failed 23/27 tests, 14.81% okay > t/ipv6..............int=295990755014133383690938178081940045824 > Can't call method "as_hex" without a package or object reference at > blib/lib/Net/IP.pm line 433. > t/ipv6..............dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 5-21 > Failed 17/21 tests, 19.05% okay
Subject: Re: [rt.cpan.org #19918] make test fails on Perl 5.6.1
Date: Wed, 05 Jul 2006 08:55:04 -0400
To: <bug-Net-IP [...] rt.cpan.org>
From: "Jason Long" <JLong [...] messiah.edu>
Show quoted text
>>>> "Guest via RT" <bug-Net-IP@rt.cpan.org> 7/2/06 12:25:32 PM >>>
> ><URL: http://rt.cpan.org/Ticket/Display.html?id=19918 > > >you must install Math::BigInt first. >
Actually, Math::BigInt is installed, but it looks like "make test" isn't using the one it should be using. Math::BigInt version 0.01 is installed in /usr/lib/perl5/5.6.1 and Math::BigInt version 1.77 is installed in ~/myperl/lib I am executing the following steps: $ export PERL5LIB=~/myperl/lib $ cd Net-IP-1.25 $ perl Makefile.PL LIB=~/myperl/lib INSTALLMAN1DIR=~/myperl/man/man1 INSTALLMAN3DIR=~/myperl/man/man3 $ make test It appears from the output of 'make test' (included earlier in the ticket) that /usr/lib/perl5/5.6.1 might be getting included before ~/myperl/lib. This means version 0.01 of Math::BigInt is loaded instead of version 1.77. I'm guessing this is a MakeMaker problem, not a Net-IP problem. Jason
Subject: Re: [rt.cpan.org #19918] make test fails on Perl 5.6.1
Date: Wed, 05 Jul 2006 09:00:12 -0400
To: <bug-Net-IP [...] rt.cpan.org>
From: "Jason Long" <JLong [...] messiah.edu>
Well, I installed the latest version of ExtUtils::MakeMaker, repeated the steps I mentioned, and this time it worked just fine. Sorry to bother you! Jason
Subject: make test fails on Perl 5.6.x
confirmed in both perl 5.6.1 and 5.6.2 on Ubuntu feisty. Net::IP's Makefile.PL should declare Math::BigInt as a PREREQ. In current release (1.25) it does not. I'm not sure the bug is simply an issue with ExtUtils::MakeMaker; if I install Math::BigInt from CPAN, Net::IP works fine. so the simplest fix for Net::IP is probably to add the PREREQ.
updated "Fixed In" field; this is still an issue with 1.25
As I understand, the remaining issue here was lack of hard pre-requirement of Math::BigInt. This is added in 1.27 version. Thanks for the report!