Skip Menu |

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

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

People
Owner: luismunoz [...] cpan.org
Requestors: m.romani [...] spinsoft.it
Cc:
AdminCc:

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



Subject: test #17 (v4-aton line 39) fails on Windows box
nmake test reports: got: '<ip address of machine's lan card>' expected: '0.0.0.0' It seems 'default' resolves to the machine's ip address rather than to 0.0.0.0 OS = Windowx XP / SP2 Perl: ActiveState 5.8.7 build 813 (6 June 2005) MSWin32-x86-multi-thread Build command = make_ppm -z --ppd c:\TEMP NetAddr::IP The same module installed just fine under Linux: OS = Mandrake 10.1 Perl 5.8.7 for i386-linux (perl-5.8.7-3mdk) Build command: perl -MCPAN -e 'install NetAddr::IP'
[guest - Wed Sep 28 09:44:00 2005]: Ciao! Can you tell me what version of NetAddr::IP are you using? I'll try to locate a Wintel box to perform testing there. This problem seems very weird! Please send also the output of: perl -Mblib t/v4-aton.t Grazie e Saluti. -lem
[LUISMUNOZ - Wed Sep 28 14:03:48 2005]: Show quoted text
> [guest - Wed Sep 28 09:44:00 2005]: > > Ciao!
Ciao! Show quoted text
> > Can you tell me what version of NetAddr::IP are you using? I'll try to > locate a Wintel box to > perform testing there. This problem seems very weird!
NetAddr::IP version 3.25 Show quoted text
> > Please send also the output of: > > perl -Mblib t/v4-aton.t
Please see attached file At the end of the message you'll find the output of perl -V. Also note that the machine has an IP address of 192.168.181.83/255 Show quoted text
> > Grazie e Saluti.
Prego :-) Show quoted text
> > -lem
Marcello Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=MSWin32, osvers=5.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DBUILT_BY_ACTIVESTATE -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX', optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='12.00.8804', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib gnulibc_version='undef' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES USE_SITECUSTOMIZE PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 813 [148120] Iin_load_module moved for compatibility with build 806 PerlEx hacks for CGI::Carp Less verbose ExtUtils::Install and Pod::Find instmodsh upgraded from ExtUtils-MakeMaker-6.25 24699 ICMP_UNREACHABLE handling in Net::Ping 21540 Fix backward-compatibility issues in if.pm Built under MSWin32 Compiled at Jun 6 2005 13:36:37 @INC: C:/Perl/lib C:/Perl/site/lib .
1..18 ok 1 - use NetAddr::IP; ok 2 - binary unrecognized by default... ok 3 - ...but can be recognized ok 4 - ->aton(localhost) ok 5 - ->aton(broadcast) ok 6 - ->aton(254.254.0.1) ok 7 - ->aton(default) ok 8 - ->aton(10.0.0.1) ok 9 - ->new aton(127.0.0.1) ok 10 - ->new aton(255.255.255.255) ok 11 - ->new aton(254.254.0.1) ok 12 - ->new aton(0.0.0.0) ok 13 - ->new aton(10.0.0.1) ok 14 - ->new aton(127.0.0.1) ok 15 - ->new aton(255.255.255.255) ok 16 - ->new aton(254.254.0.1) not ok 17 - ->new aton(0.0.0.0) # Failed test (t/v4-aton.t at line 39) # got: '192.168.181.83' # expected: '0.0.0.0' ok 18 - ->new aton(10.0.0.1) # Looks like you failed 1 test of 18.
From: Alex
[guest - Sat Oct 29 03:43:38 2005]: Show quoted text
> same with NetAddr-IP-3.028 > > http://ppm.activestate.com/BuildStatus/5.8-windows/windows- > 5.8/NetAddr- > IP-3.028.txt
Please do a ping default on a command prompt and see if this resolves. It appears than default in your machine has a hostname associated somewhere and NetAddr::IP is resolving it... Best regards. -lem
[LUISMUNOZ - Sat Oct 29 14:21:49 2005]: Show quoted text
> [guest - Sat Oct 29 03:43:38 2005]: >
> > same with NetAddr-IP-3.028 > > > > http://ppm.activestate.com/BuildStatus/5.8-windows/windows- > > 5.8/NetAddr- > > IP-3.028.txt
> > Please do a ping default on a command prompt and see if this resolves. > It appears than > default in your machine has a hostname associated somewhere and > NetAddr::IP is resolving > it... >
[winbox]# ping default Error message similar to: 'unable to find host "default"' but the test still fails... Marcello Show quoted text
> Best regards. > > -lem >