[Ssh-sftp-perl-users] Net::SSH2 on perl 5.6
Brought to you by:
dbrobins
From: hugues <Hug...@af...> - 2006-02-03 08:51:20
|
Hello David, I've been having a look at your new Net::SSH2 module and would very much like to use that in place of Net::SSH::Perl in my application. My problem is that the production servers that will ultimately have to run the application still run under perl 5.6.0, and that probably won't change in the near future :-(( I just wanted to know if there were some fundamental reason why your module actually requires perl 5.8 or if there might be some hope to make it run under perl 5.6 too ? I've been trying just the obvious things, i.e removing all 'use 5.008' in Makefile.PL and all the .pm files, and adding a typemap entry for 'const char *' as it is defined in the default one for perl5.8 but not for perl5.6. With that mods, i managed to compile the stuff, but got stuck there: root-w2# prove -v -b t/Net-SSH2.t t/Net-SSH2....1..72 ok 1 - use Net::SSH2; ok 2 - new session isa Net::SSH2 ok 3 - error state clear ok 4 - set banner ok 5 - LIBSSH2_* constants ok 6 - libSSH2 version 0.12 > 0.11 ok 7 - list version match ok 8 - API date yyyymmddhhmm event is not of type AVPtr at blib/lib/Net/SSH2.pm line 396. ok 9 - banner is SSH-2.0-libssh2_0.12 # Looks like you planned 72 tests but only ran 9. # Looks like your test died just after 9. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 10-72 Failed 63/72 tests, 12.50% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- t/Net-SSH2.t 255 65280 72 126 175.00% 10-72 Failed 1/1 test scripts, 0.00% okay. 63/72 subtests failed, 12.50% okay. Before diving any further, i thought i might ask you if there was hope along that path, or if i'd better put all my strength in getting perl 5.8 installed on my productions servers ... Thanks anyway for both maintaining Net::SSH::Perl and providing us with that new shiny Net::SSH2 module ! -- Hugues Lafarge || Email: Hug...@af... Agence France Presse || Phone: +33 1 40 41 77 15 4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. For more information on Agence France-Presse, please visit our web site at http://www.afp.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |