Re: [Ssh-sftp-perl-users] Net::SSH2 on perl 5.6
Brought to you by:
dbrobins
From: David R. <dbr...@cp...> - 2006-02-03 09:44:30
|
On Friday February 3, 2006 00:51, hugues wrote: > 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 ? Nothing particular, just the convenience of not having to jump through hoops and include cruft for compatibility. However, I am aware there are a lot of perl 5.6 installations out there (the last place I worked still used it; they brought in a contractor to help with upgrading to 5.8 but I don't think they actually did upgrade), and I'm willing to make Net::SSH2 work with 5.6, especially if met halfway by someone such as yourself helping with testing/changes. > 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 ... > ok 8 - API date yyyymmddhhmm > event is not of type AVPtr at blib/lib/Net/SSH2.pm line 396. I searched and found something that looks relevant: http://www.mail-archive.com/pe...@pe.../msg00982.html Looks like 5.6 doesn't like "AV *" in an XS signature and requires it be typed as an SV * and then checked/cast (a typemap entry might work there too; it would be nice if the entries added can be 5.6-only (to keep the 5.8 path cleaner), which will probably require two typemap files). > 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 Looks like it crashed there; if you check the core file you can probably determine what happened using a debugger such as gdb or dbx by looking at the stack trace and variables. > 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 ... Sure, there is hope. I don't have any 5.6 installations myself, though, so I'll need you (and any others on the list that are interested) to test and provide patches for 5.6 compatibility. If you're able to do that, great, if not, go with the upgrade if you can :). > Thanks anyway for both maintaining Net::SSH::Perl and providing us > with that new shiny Net::SSH2 module ! Glad to contribute, thanks for the feedback. -- Dave Isa. 40:31 |