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

I am building Net::SSH2 and get a clean compile but when I go to do the test it fails. It fails when it tries to bring data back across the secure connection. The libssl2 is linked to open ssl. I tried to build this on both CentOS 4.4 and RH9 and got the same result. Here is the test's output:
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 61/72# Failed test (t/Net-SSH2.t at line 190) + # Failed test (t/Net-SSH2.t at line 191) Use of uninitialized value in concatenation (.) or string at t/Net-SSH +2.t line 193. Use of uninitialized value in scalar chomp at t/Net-SSH2.t line 194. # Failed test (t/Net-SSH2.t at line 195) # got: undef # expected: '/' t/Net-SSH2....ok 72/72# Looks like you failed 3 tests of 72. + t/Net-SSH2....dubious + Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 63-65 Failed 3/72 tests, 95.83% okay (less 6 skipped tests: 63 okay, + 87.50%) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/Net-SSH2.t 3 768 72 3 4.17% 63-65 6 subtests skipped. Failed 1/1 test scripts, 0.00% okay. 3/72 subtests failed, 95.83% okay +. make: *** [test_dynamic] Error 2


Any Ideas?

Replies are listed 'Best First'.
Re: Net::SSH2 Compile Issues
by zentara (Cardinal) on Feb 22, 2007 at 21:45 UTC
    As always, install the latest versions of the software listed in the dependencies. Its best to compile them yourself. The linux distributions sometimes patch the heck out of things so they won't work with other vanilla code, from outside their distro.
    This module requires these other modules and libraries: libSSH2 (http://www.libssh2.org; tested with 0.11 and 0.12) + OpenSSL (http://www.openssl.org) + zlib (optional; http://www.zlib.net)

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Net::SSH2 Compile Issues
by Herkum (Parson) on Feb 22, 2007 at 20:37 UTC

    It might be a system incompatible test. You can do a 'force install Net::SSH2' which will make it install anyways but it might be buggy, but then again, it might not.

    Your other option is to take a look at the tests and see if it is doing something strange in the test. You can ask the maintainer for help and see if they know if it is just a false positive.

Re: Net::SSH2 Compile Issues
by xorl (Deacon) on Feb 22, 2007 at 20:29 UTC
    Not sure if this will be of any help. But you could try to install from an RPM or other package: http://rpm.pbone.net/index.php3?stat=3&search=perl-Net-SSH2&srodzaj=3 (yeah I don't see a CentOS or RH9 package)

    There's a google groups discussion at: http://groups.google.com/group/comp.lang.perl.modules/browse_frm/thread/f779828508698541/5d51b5dc2a5598e2?lnk=raot&hl=en# (not exactly it either)

    I'd do a "make clean" then maybe reinstall libssh2 (not libssl2 like you said) http://www.libssh2.org/ After that I'd start from "perl Makefile.PL" with the install of Net::SSH2.