kraas has asked for the wisdom of the Perl Monks concerning the following question:

I'm rather new at this. I am trying to install the Net::SSH2 module but my 'make test' is failing. Here are the results:
hostname#make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/Net-SSH2....ok 1/72 # Failed test 'API date yyyymmddhhmm' # in t/Net-SSH2.t at line 33. # 'LIBSSH2_APINO' # doesn't match '(?-xism:^\d{12}$)' t/Net-SSH2....NOK 8# Looks like you failed 1 test of 72. t/Net-SSH2....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 8 Failed 1/72 tests, 98.61% okay (less 61 skipped tests: 10 okay, 13.89% +) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/Net-SSH2.t 1 256 72 1 1.39% 8 61 subtests skipped. Failed 1/1 test scripts, 0.00% okay. 1/72 subtests failed, 98.61% okay +. *** Error code 1 make: Fatal error: Command failed for target `test_dynamic'
I'm totally stumped on this one.

Replies are listed 'Best First'.
Re: 'make test' for Net::SSH2 failed
by almut (Canon) on Sep 04, 2007 at 20:04 UTC
    # 'LIBSSH2_APINO' # doesn't match '(?-xism:^\d{12}$)'

    I'd suspect this has to do with LIBSSH2_APINO recently having been removed from the public header file of the underlying library libssh2. (If it's not there, it cannot match \d{12}.) In other words, your library might be too new (>= v0.16).

    This could be a harmless problem (not sure though)... in any case, if no bug report has been filed already (I haven't checked), it's probably worth telling the author of Net::SSH2 about the modified header file...

Re: 'make test' for Net::SSH2 failed
by zentara (Cardinal) on Sep 04, 2007 at 19:56 UTC
    I confirm this "make test" error on linux, but if you install the module, it will still run. (At least it does for me, see A little demo for Net::SSH2, I just tested it.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      Thanks!