Skip Menu |

This queue is for tickets about the Unix-Lsof CPAN distribution.

Report information
The Basics
Id: 49591
Status: resolved
Priority: 0/
Queue: Unix-Lsof

People
Owner: Nobody in particular
Requestors: rmurri [...] cscs.ch
Cc:
AdminCc:

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



Subject: Unix::Lsof 0.0.9 failing installation on Solaris
Date: Thu, 10 Sep 2009 12:40:26 +0200
To: bug-Unix-Lsof [...] rt.cpan.org
From: Riccardo Murri <rmurri [...] cscs.ch>
I cannot install Unix::Lsof on Solaris 10; please find a full transcript of a "cpan -i" session attached; perl and lsof versions are at the bottom. -- Riccardo Murri CSCS - Swiss National Centre for Supercomputing Galleria 2, via Cantonale CH-6928 Manno (Switzerland) tel.: +41 91 610 8234 Fax: +41 91 610 8282

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Thu, 10 Sep 2009 15:07:40 +0200
To: Bugs in Unix-Lsof via RT <bug-Unix-Lsof [...] rt.cpan.org>
From: Riccardo Murri <rmurri [...] cscs.ch>
Show quoted text
> I cannot install Unix::Lsof on Solaris 10
After forcing the installation, the module seems to work fine however. (But of course I've only tested the local perl scripts which make use of Unix::Lsof, so it may be that I have not exercised the features that fail some test in the suite.) Cheers, Riccardo
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Thu, 10 Sep 2009 15:23:29 +0200
To: bug-Unix-Lsof [...] rt.cpan.org
From: Marc Beyer <japh [...] tirwhan.org>
Hi Riccardo, thank you for your bug report. By way of helping me to analyse this further, could you insert the following on line 68 of t/10.procedural.t use Data::Dumper; warn "my PID: $mypid"; warn Dumper $result; warn Dumper $err; , then run prove -vl t/10.procedural.t and send me the resulting output please? Cheers, Marc
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Thu, 10 Sep 2009 16:12:34 +0200
To: Marc Beyer via RT <bug-Unix-Lsof [...] rt.cpan.org>
From: Riccardo Murri <rmurri [...] cscs.ch>
[Marc Beyer via RT, Thu, Sep 10, 2009 at 09:23:51AM -0400] Show quoted text
> thank you for your bug report. By way of helping me to analyse this > further, could you insert the following on line 68 of t/10.procedural.t > > use Data::Dumper; > warn "my PID: $mypid"; > warn Dumper $result; > warn Dumper $err; > > , then run > > prove -vl t/10.procedural.t > > and send me the resulting output please? >
here it is: # prove -vl t/10.procedural.t t/10.procedural....1..19 ok 1 - use Unix::Lsof; ok 2 - Unix::Lsof->can(...) ok 3 # skip Test::Exception not installed ok 4 # skip Test::Exception not installed ok 5 # skip Test::Exception not installed ok 6 # skip Test::Exception not installed ok 7 # skip Test::Exception not installed ok 8 # skip Test::Exception not installed ok 9 # skip Test::Exception not installed ok 10 # skip Test::Exception not installed ok 11 # skip Test::Exception not installed ok 12 - returns when run with a manually supplied binary ok 13 - Returns correct version information when called with manually supplied binary my PID: 21754 at t/10.procedural.t line 69. ok 14 - returns ok on examining open file $VAR1 = {}; $VAR1 = ''; # Failed test 'A record with the current PID exists' not ok 15 - A record with the current PID exists # at t/10.procedural.t line 72. # Failed test 'Correct inode reported' # at t/10.procedural.t line 75. not ok 16 - Correct inode reported # got: undef # expected: '262134' ok 17 - returns ok on examining a process ok 18 - Found open network socket ok 19 # skip Test::NoWarnings not installed # Looks like you failed 2 tests of 19. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 15-16 Failed 2/19 tests, 89.47% okay (less 10 skipped tests: 7 okay, 36.84%) Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/10.procedural.t 2 512 19 2 10.53% 15-16 10 subtests skipped. Failed 1/1 test scripts, 0.00% okay. 2/19 subtests failed, 89.47% okay. Cheers, Riccardo
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Thu, 10 Sep 2009 17:51:32 +0200
To: bug-Unix-Lsof [...] rt.cpan.org
From: Marc Beyer <japh [...] tirwhan.org>
Hi Riccardo, thank you for this. Could you tell me which version of IPC::Run3 you have installed on your machine? Also, could you try downloading version 0.0.7 of Unix::Lsof (http://search.cpan.org/~marcb/Unix-Lsof-0.0.7/) and see whether that passes all tests? Cheers, Marc
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Fri, 11 Sep 2009 11:09:14 +0200
To: Marc Beyer via RT <bug-Unix-Lsof [...] rt.cpan.org>
From: Riccardo Murri <rmurri [...] cscs.ch>
Hi Marc, [Marc Beyer via RT, Thu, Sep 10, 2009 at 11:51:57AM -0400] Show quoted text
> Could you tell me which version of IPC::Run3 you > have installed on your machine?
$ /usr/bin/perl -e 'use IPC::Run3; print $IPC::Run3::VERSION;' 0.043 Show quoted text
> Also, could you try downloading version > 0.0.7 of Unix::Lsof (http://search.cpan.org/~marcb/Unix-Lsof-0.0.7/) and > see whether that passes all tests? >
Fails -- see log below; I have also tried 0.0.6, with no success. On older Solaris machines I have 0.0.5 installed, so I guess that was the last version to install without problems. # perl -MCPAN -e shell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN') Show quoted text
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 09 Sep 2009 10:27:06 GMT LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://mirror.switch.ch/mirror/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok LWP not available Fetching with Net::FTP: ftp://mirror.switch.ch/mirror/CPAN/modules/02packages.details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Fri, 11 Sep 2009 04:27:17 GMT HTTP::Date not available There's a new CPAN.pm version (v1.9402) available! [Current version is v1.7601] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrade while we are running... LWP not available Fetching with Net::FTP: ftp://mirror.switch.ch/mirror/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata Running make for http://search.cpan.org/CPAN/authors/id/M/MA/MARCB/Unix-Lsof/Unix-Lsof-0.0.7.tar.gz CPAN: Digest::MD5 loaded ok Checksum for /root/.cpan/sources/authors/id/http:/search.cpan.org/CPAN/authors/id/M/MA/MARCB/Unix-Lsof/Unix-Lsof-0.0.7.tar.gz ok Scanning cache /root/.cpan/build for sizes Deleting from cache: /root/.cpan/build/version-0.7701 (10.1>10.0 MB) x Unix-Lsof-0.0.7, 0 bytes, 0 tape blocks x Unix-Lsof-0.0.7/Makefile.PL, 760 bytes, 2 tape blocks x Unix-Lsof-0.0.7/MANIFEST, 182 bytes, 1 tape blocks x Unix-Lsof-0.0.7/Changes, 1002 bytes, 2 tape blocks x Unix-Lsof-0.0.7/t, 0 bytes, 0 tape blocks x Unix-Lsof-0.0.7/t/20.lsof-result.t, 7874 bytes, 16 tape blocks x Unix-Lsof-0.0.7/t/10.procedural.t, 3147 bytes, 7 tape blocks x Unix-Lsof-0.0.7/t/pod-coverage.t, 173 bytes, 1 tape blocks x Unix-Lsof-0.0.7/t/30.parse_lsof_output.t, 3294 bytes, 7 tape blocks x Unix-Lsof-0.0.7/t/pod.t, 140 bytes, 1 tape blocks x Unix-Lsof-0.0.7/README, 677 bytes, 2 tape blocks x Unix-Lsof-0.0.7/META.yml, 512 bytes, 1 tape blocks x Unix-Lsof-0.0.7/Build.PL, 683 bytes, 2 tape blocks x Unix-Lsof-0.0.7/lib, 0 bytes, 0 tape blocks x Unix-Lsof-0.0.7/lib/Unix, 0 bytes, 0 tape blocks x Unix-Lsof-0.0.7/lib/Unix/Lsof.pm, 18265 bytes, 36 tape blocks x Unix-Lsof-0.0.7/lib/Unix/Lsof, 0 bytes, 0 tape blocks x Unix-Lsof-0.0.7/lib/Unix/Lsof/Result.pm, 20636 bytes, 41 tape blocks Removing previously used /root/.cpan/build/Unix-Lsof-0.0.7 CPAN.pm: Going to build http://search.cpan.org/CPAN/authors/id/M/MA/MARCB/Unix-Lsof/Unix-Lsof-0.0.7.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Unix::Lsof cp lib/Unix/Lsof/Result.pm blib/lib/Unix/Lsof/Result.pm cp lib/Unix/Lsof.pm blib/lib/Unix/Lsof.pm Manifying blib/man3/Unix::Lsof::Result.3 Manifying blib/man3/Unix::Lsof.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/10.procedural...........NOK 15 # Failed test 'A record with the current PID exists' # at t/10.procedural.t line 68. t/10.procedural...........NOK 16# Failed test 'Correct inode reported' # at t/10.procedural.t line 71. # got: undef # expected: '259105' t/10.procedural...........ok 19/19# Looks like you failed 2 tests of 19. t/10.procedural...........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 15-16 Failed 2/19 tests, 89.47% okay (less 10 skipped tests: 7 okay, 36.84%) t/20.lsof-result..........ok 16/62process id is not in the list of fields returned by lsof at /root/.cpan/build/Unix-Lsof-0.0.7/blib/lib/Unix/Lsof/Result.pm line 285. t/20.lsof-result..........NOK 18 # Failed test 'Correct process number reported' # at t/20.lsof-result.t line 78. # got: undef # expected: '6950' t/20.lsof-result..........ok 19/62 t/20.lsof-result..........NOK 20# Failed test 'returns true when it has any output' # at t/20.lsof-result.t line 81. process id is not in the list of fields returned by lsof at /root/.cpan/build/Unix-Lsof-0.0.7/blib/lib/Unix/Lsof/Result.pm line 285. t/20.lsof-result..........NOK 21# Failed test 'Correct process number reported' # at t/20.lsof-result.t line 82. # got: undef # expected: '6950' t/20.lsof-result..........ok 24/62 t/20.lsof-result..........NOK 25# Failed test 'Correct file name in the list' # at t/20.lsof-result.t line 94. t/20.lsof-result..........ok 27/62 t/20.lsof-result..........NOK 28# Failed test 'Got correct file name with get_arrayof_rows' # at t/20.lsof-result.t line 101. Use of uninitialized value in array element at t/20.lsof-result.t line 104. t/20.lsof-result..........NOK 29# Failed test 'Correct inode for file name' # at t/20.lsof-result.t line 104. # got: '259105' # expected: '0' t/20.lsof-result..........ok 30/62 t/20.lsof-result..........NOK 31# Failed test 'Second file handle shown when file descriptor output required' # at t/20.lsof-result.t line 111. # got: undef # expected: anything else Use of uninitialized value in array element at t/20.lsof-result.t line 112. t/20.lsof-result..........NOK 32# Failed test 'Dual file handle is reported twice with same inode' # at t/20.lsof-result.t line 112. # got: '259105' # expected: '0' Use of uninitialized value in array element at t/20.lsof-result.t line 117. t/20.lsof-result..........ok 33/62 t/20.lsof-result..........NOK 34# Failed test 'correct inode in the same row as file name' # at t/20.lsof-result.t line 117. # got: '259105' # expected: '0' Use of uninitialized value in array element at t/20.lsof-result.t line 122. t/20.lsof-result..........ok 35/62 t/20.lsof-result..........NOK 36# Failed test 'correct inode in the same row as file name' # at t/20.lsof-result.t line 122. # got: '259105' # expected: '0' Use of uninitialized value in array element at t/20.lsof-result.t line 123. t/20.lsof-result..........ok 37/62 t/20.lsof-result..........NOK 38# Failed test 'Specified number filter' # at t/20.lsof-result.t line 131. t/20.lsof-result..........NOK 39# Failed test 'Correct array returned' # at t/20.lsof-result.t line 133. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = ARRAY(0x83aa070) t/20.lsof-result..........NOK 40# Failed test 'Specified regex filter' # at t/20.lsof-result.t line 131. t/20.lsof-result..........NOK 41# Failed test 'Correct array returned' # at t/20.lsof-result.t line 133. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = ARRAY(0x83afbb8) t/20.lsof-result..........NOK 42# Failed test 'Specified string filter' # at t/20.lsof-result.t line 131. t/20.lsof-result..........NOK 43# Failed test 'Correct array returned' # at t/20.lsof-result.t line 133. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = ARRAY(0x83afb64) t/20.lsof-result..........NOK 44# Failed test 'Specified anonymous sub filter' # at t/20.lsof-result.t line 131. t/20.lsof-result..........NOK 45# Failed test 'Correct array returned' # at t/20.lsof-result.t line 133. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = ARRAY(0x83b1ce0) t/20.lsof-result..........ok 47/62 t/20.lsof-result..........NOK 48# Failed test 'Returned correct file name' # at t/20.lsof-result.t line 141. # got: undef # expected: '/root/.cpan/build/Unix-Lsof-0.0.7/README' t/20.lsof-result..........NOK 49# Failed test 'Filtered hash of rows' # at t/20.lsof-result.t line 143. t/20.lsof-result..........NOK 50# Failed test 'Only one value with correct ppid returned' # at t/20.lsof-result.t line 144. # Structures begin differing at: # $got->{/root/.cpan/build/Unix-Lsof-0.0.7/README} = Does not exist # $expected->{/root/.cpan/build/Unix-Lsof-0.0.7/README} = ARRAY(0x83aa118) t/20.lsof-result..........NOK 51# Failed test 'Returned something on get_values' # at t/20.lsof-result.t line 146. t/20.lsof-result..........NOK 52# Failed test 'Array with single correct inode returned' # at t/20.lsof-result.t line 147. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '259105' t/20.lsof-result..........ok 53/62 t/20.lsof-result..........NOK 54# Failed test 'Returned ok with filter and garbage added' # at t/20.lsof-result.t line 151. t/20.lsof-result..........NOK 55# Failed test 'Array with single correct pid returned' # at t/20.lsof-result.t line 152. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '6950' t/20.lsof-result..........ok 56/62 t/20.lsof-result..........NOK 57# Failed test 'Array with single correct filename returned' # at t/20.lsof-result.t line 154. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '/root/.cpan/build/Unix-Lsof-0.0.7/README' t/20.lsof-result..........ok 62/62# Looks like you failed 26 tests of 62. t/20.lsof-result..........dubious Test returned status 26 (wstat 6656, 0x1a00) DIED. FAILED tests 18, 20-21, 25, 28-29, 31-32, 34, 36, 38-45, 48-52, 54-55, 57 Failed 26/62 tests, 58.06% okay (less 6 skipped tests: 30 okay, 48.39%) t/30.parse_lsof_output....ok 7/10 skipped: various reasons t/pod-coverage............skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.....................skipped all skipped: Test::Pod 1.14 required for testing POD Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/10.procedural.t 2 512 19 2 10.53% 15-16 t/20.lsof-result.t 26 6656 62 26 41.94% 18 20-21 25 28-29 31-32 34 36 38-45 48-52 54-55 57 2 tests and 23 subtests skipped. Failed 2/5 test scripts, 60.00% okay. 28/91 subtests failed, 69.23% okay. make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Kind regards, Riccardo
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Fri, 11 Sep 2009 13:43:12 +0200
To: bug-Unix-Lsof [...] rt.cpan.org
From: Marc Beyer <japh [...] tirwhan.org>
Hi Riccardo, once again, thanks for your current efforts and reports. Show quoted text
> Fails -- see log below; I have also tried 0.0.6, with no success. On > older Solaris machines I have 0.0.5 installed, so I guess that was the > last version to install without problems.
Hmm, that is _very_ curious, because I can't see any changes between 0.0.5 and 0.0.6 that could cause such an error. Would you mind trying the tests for 0.0.5 on this specific machine as well, to see whether they pass? I suppose there's no chance I could get a login to the box in question to try out things for myself? Cheers, Marc
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Fri, 11 Sep 2009 13:54:45 +0200
To: Marc Beyer via RT <bug-Unix-Lsof [...] rt.cpan.org>
From: Riccardo Murri <rmurri [...] cscs.ch>
Hi Marc, first of all: thenk you for writing Unix::Lsof and the continued support! [Marc Beyer via RT, Fri, Sep 11, 2009 at 07:43:39AM -0400] Show quoted text
> > Fails -- see log below; I have also tried 0.0.6, with no success. On > > older Solaris machines I have 0.0.5 installed, so I guess that was the > > last version to install without problems.
> > Hmm, that is _very_ curious, because I can't see any changes between > 0.0.5 and 0.0.6 that could cause such an error. Would you mind trying > the tests for 0.0.5 on this specific machine as well, to see whether > they pass? >
Unfortunately, I cannot find any .tar.gz of 0.0.5 lying around -- can you please point me to one? Show quoted text
> I suppose there's no chance I could get a login to the box in question > to try out things for myself? >
Should be possible :-) how can I send you the details? Kind regards, Riccardo
Subject: Re: [rt.cpan.org #49591] Unix::Lsof 0.0.9 failing installation on Solaris
Date: Fri, 11 Sep 2009 14:03:30 +0200
To: bug-Unix-Lsof [...] rt.cpan.org
From: Marc Beyer <japh [...] tirwhan.org>
Hi Riccardo, Show quoted text
> Unfortunately, I cannot find any .tar.gz of 0.0.5 lying around -- can > you please point me to one?
Ah, sorry, you can find older versions of Unix::Lsof on backpan, e.g. http://backpan.perl.org/authors/id/M/MA/MARCB/Unix-Lsof/Unix-Lsof-v0.0.5.tar.gz Show quoted text
> Should be possible :-) how can I send you the details?
Just sent you a direct email, cheers, Marc
Turns out to be a problem specific to user's machine.