Skip Menu |

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

Report information
The Basics
Id: 71970
Status: resolved
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 4.053
Fixed in: (no value)



Subject: test failures on Perl 5.14.2, Math::BigInt 1.997
The newest version still fails for me. Installing NetAddr::IP (4.053) Running [/home/ahartmai/perl5/perlbrew/perls/perl-5.14.2/bin/perl /usr/bin/cpanp-run-perl /home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Makefile.PL]... This build requires a C compiler by default except on Windows where the Pure Perl version is mandatory. The Pure Perl version does not require compilation of XS code can be used by invoking this as: perl Makefile.PL -noxs ====================================================================== W A R N I N G - Please do read below if you have legacy code ====================================================================== Versions 3.21 and above of NetAddr::IP, include hooks for the Storable class that are incompatible with the old (automatic) method of storing data. To regain backwards compatibility, the module must be use()d as use NetAddr::IP ':old_storable'; Which will disable the new hooks and revert back to the old ways. If you do not use Storable along NetAddr::IP or just don't know what this all means, most likely you're safe to go along. Versions before 3.25 recognized by default IP addresses as returned by inet_aton. This is no longer the default. To enable this behavior again, the module must be use()d as use NetAddr::IP ':aton'; Versions before 4.008 recognized the above syntax. This behavior is fundamentally broken, is DEPRECATED and WILL BE REMOVED in version 5.0 Use this method to create new objects from 'aton's $ip = new_from_aton NetAddr::IP(inet_aton('1.2.3.4')) Checking if your kit is complete... Looks good Checking if your kit is complete... Looks good Testing if you have a C compiler and the needed header files.... gcc compile.c -o compile.output You have a working compiler. checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for an ANSI C-conforming const... yes checking for int32_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint8_t... yes checking whether gcc needs -traditional... no checking for library containing gethostbyname... none required checking for library containing inet_aton... none required checking for library containing inet_pton... none required checking for library containing inet_addr... none required checking whether byte ordering is bigendian... no checking for uint8_t... yes checking size of uint8_t... 1 checking for uint16_t... yes checking size of uint16_t... 2 checking for uint32_t... yes checking size of uint32_t... 4 checking for u_int8_t... yes checking size of u_int8_t... 1 checking for u_int16_t... yes checking size of u_int16_t... 2 checking for u_int32_t... yes checking size of u_int32_t... 4 configure: creating ./config.status config.status: creating config.h Checking if your kit is complete... Looks good Writing Makefile for NetAddr::IP::Util Writing MYMETA.yml and MYMETA.json Writing Makefile for NetAddr::IP::Lite Writing MYMETA.yml and MYMETA.json Writing Makefile for NetAddr::IP Writing MYMETA.yml and MYMETA.json Running [/usr/bin/make test]... make[1]: Betrete Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite' make[2]: Betrete Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite/Util' make[2]: Verlasse Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite/Util' make[1]: Verlasse Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite' PERL_DL_NONLAZY=1 /home/ahartmai/perl5/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/constants.t ...... ok t/full.t ........... ok t/full6.t .......... ok t/imhoff.t ......... ok t/loops.t .......... ok t/lower.t .......... ok t/masklen.t ........ ok t/new-store.t ...... ok t/old-store.t ...... ok t/over-arr.t ....... ok t/over-qq.t ........ ok t/relops.t ......... ok t/short.t .......... ok t/splitref.t ....... ok t/v4-coalesce.t .... ok t/v4-compact.t ..... ok t/v4-compplus.t .... ok t/v4-hostenum.t .... ok t/v4-re.t .......... ok t/v4-split-bulk.t .. ok t/v4-split-list.t .. ok t/v4-splitplan.t ... ok t/v4-sprefix.t ..... ok t/v4-xprefix.t ..... ok t/v6-re.t .......... ok t/v6-split-bulk.t .. ok t/v6-splitplan.t ... ok t/wildcard.t ....... ok All tests successful. Files=28, Tests=9523, 8 wallclock secs ( 1.08 usr 0.09 sys + 6.75 cusr 0.33 csys = 8.25 CPU) Result: PASS make[1]: Betrete Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite' make[2]: Betrete Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite/Util' make[2]: Verlasse Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite/Util' PERL_DL_NONLAZY=1 /home/ahartmai/perl5/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/addr.t .............. ok t/aton.t .............. ok # Failed test at t/bigint.t line 625. # got: '28344049' # expected: '4294967294' # Failed test at t/bigint.t line 627. # got: '1.176.126.241/32' # expected: '255.255.255.254/32' # Failed test at t/bigint.t line 625. # got: '28345009' # expected: '4294967295' # Failed test at t/bigint.t line 627. # got: '1.176.130.177/32' # expected: '255.255.255.255/32' # Failed test at t/bigint.t line 625. # got: '28345273' # expected: '4294967296' # Failed test at t/bigint.t line 627. # got: '1.176.131.185/32' # expected: '0:0:0:0:0:1:0:0/128' # Failed test at t/bigint.t line 625. # got: '28344649' # expected: '4294967297' # Failed test at t/bigint.t line 627. # got: '1.176.129.73/32' # expected: '0:0:0:0:0:1:0:1/128' # Failed test at t/bigint.t line 625. # got: '28344553' # expected: '4294967298' # Failed test at t/bigint.t line 627. # got: '1.176.128.233/32' # expected: '0:0:0:0:0:1:0:2/128' # Failed test at t/bigint.t line 625. # got: '28344553' # expected: '340282366920938463463374607431768211454' # Failed test at t/bigint.t line 627. # got: '1.176.128.233/32' # expected: 'FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFE/128' # Failed test at t/bigint.t line 625. # got: '28345153' # expected: '340282366920938463463374607431768211455' # Failed test at t/bigint.t line 627. # got: '1.176.131.65/32' # expected: 'FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/128' # Failed test at t/bigint.t line 625. # got: '28345081' # expected: '340282366920938463463374607431768211456' # Failed test at t/bigint.t line 627. # got: '1.176.130.249/32' # expected: '0.0.0.0/32' # Failed test at t/bigint.t line 625. # got: '28344937' # expected: '1' # Failed test at t/bigint.t line 627. # got: '1.176.130.105/32' # expected: '0.0.0.1/32' # Failed test at t/bigint.t line 625. # got: '28439345' # expected: '2' # Failed test at t/bigint.t line 627. # got: '1.177.243.49/32' # expected: '0.0.0.2/32' Can't call method "bigint" on an undefined value at t/bigint.t line 646. # Looks like you planned 146 tests but ran 20. # Looks like you failed 20 tests of 20 run. # Looks like your test exited with 255 just after 20. t/bigint.t ............ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 146/146 subtests t/bignums.t ........... ok t/bin_ips.t ........... ok t/bits.t .............. ok t/broadcast.t ......... ok t/bug62521.t .......... ok t/cidr.t .............. ok t/constants.t ......... ok t/contains.t .......... ok t/copy.t .............. ok t/firstlast.t ......... ok t/lemasklen.t ......... ok t/loops.t ............. ok t/lower.t ............. ok t/mask.t .............. ok t/masklen.t ........... ok t/netaddr.t ........... ok t/network.t ........... ok t/new-nth.t ........... ok t/new-num.t ........... ok t/numeric.t ........... ok t/old-nth.t ........... ok t/old-num.t ........... ok t/over-qq.t ........... ok t/over_comp.t ......... ok t/over_copy.t ......... ok t/over_equal.t ........ ok t/over_math.t ......... ok t/overminus.t ......... ok t/pathological.t ...... ok t/range.t ............. ok t/relops.t ............ ok t/v4-aton.t ........... ok t/v4-badnm.t .......... ok t/v4-base.t ........... ok t/v4-basem.t .......... ok t/v4-cidr.t ........... ok t/v4-cnew.t ........... ok t/v4-contains.t ....... ok t/v4-last.t ........... ok t/v4-new-first.t ...... ok t/v4-new.t ............ ok t/v4-new_from_aton.t .. ok t/v4-no_octal.t ....... ok t/v4-num.t ............ ok t/v4-numeric.t ........ ok t/v4-old-first.t ...... ok t/v4-range.t .......... ok t/v4-snew.t ........... ok # # The following 8 tests involve resolving (hopefully) # non-existant names. This may take a while. t/v4-wnew.t ........... ok t/v4_new_cis.t ........ ok t/v6-cnew.t ........... ok t/v6-contains.t ....... ok t/v6-inc.t ............ ok t/v6-new-base.t ....... ok t/v6-new_cis6_base.t .. ok t/v6-new_cis_base.t ... ok t/v6-num.t ............ ok t/v6-numeric.t ........ ok t/v6-old-base.t ....... ok t/version.t ........... ok t/within.t ............ ok Test Summary Report ------------------- t/bigint.t (Wstat: 65280 Tests: 20 Failed: 20) Failed tests: 1-20 Non-zero exit status: 255 Parse errors: Bad plan. You planned 146 tests but ran 20. Files=64, Tests=2701, 3 wallclock secs ( 0.50 usr 0.10 sys + 2.40 cusr 0.45 csys = 3.45 CPU) Result: FAIL Failed 1/64 test programs. 20/2701 subtests failed. make[1]: *** [test_dynamic] Fehler 255 make[1]: Verlasse Verzeichnis '/home/ahartmai/.cpanplus/5.14.2/build/NetAddr-IP-4.053/Lite' make: *** [subdirs-test] Fehler 2

Message body is not shown because it is too large.

From: paul [...] city-fan.org
On Thu Oct 27 03:45:37 2011, ABRAXXA wrote: Show quoted text
> The newest version still fails for me.
... Reverting Lite/t/bigint.t to the version from 4.052 fixes this for me.
On Thu Oct 27 07:19:00 2011, paul@city-fan.org wrote: Show quoted text
> On Thu Oct 27 03:45:37 2011, ABRAXXA wrote:
> > The newest version still fails for me.
> > ... > > Reverting Lite/t/bigint.t to the version from 4.052 fixes this for me.
There were some issues with early versions of Math::BigInt i.e. v0.01 and t/bigint.t has a flaw with versions of Math::BigInt prior to 1.70. Both of those issue have been addressed in NetAddr::IP 4.054 Please discard versions 4.045 - 4.053, they are DEPRECATED