Re: Net::SSH2 v0.18

2008-11-05 Thread listmail
Sisyphus wrote:

 - Original Message - From: listmail [EMAIL PROTECTED]
 To: perl-win32-users@listserv.ActiveState.com
 Sent: Wednesday, November 05, 2008 4:43 AM
 Subject: Net::SSH2 v0.18


 I can't get Net::SSH2 0.18 working.  I had Net::SSH2 0.09 working
 without having to do any extra steps, but I never migrated my programs
 over from using the old Net::SSH::W32Perl.

 I installed 0.18 via the default repo, it failed the test, removed it
 and installed from ppm install
 http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd which is the same
 version, and it failed with the same error.

 (Aside: I'm finding that ppm installs from uwinnipeg are very slow 
 these days. Is that just low bandwidth being provided by the server ? 
 ... or something else. It took me about 30 minutes to install 
 Net-SSH2-0.18, and I've noticed slow downloads with all of the other 
 modules I've recently installed from that repo. Anyone else noticed 
 the same ? Downloads from the ActiveState repo still proceed quite 
 quickly for me.)

 To test i simply create a perl script with a use Net::SSH2; call and
 then run it and I immediately get this error:

 Can't load 'C:\perl\site\lib/auto/Net/SSH2/SSH2.dll' for module
 Net::SSH2: load_file:The specified procedure could not be found at
 C:\perl\site\lib/XSLoader.pm line 64.
 at C:\perl\site\lib/Net/SSH2.pm line 466
 Compilation failed in require at C:\testing\ssh2.pl line 5.
 BEGIN failed--compilation aborted at C:ssh2.pl line 5.

 Presumably you get the same behaviour with:
 perl -MNet::SSH2 -e print $Net::SSH2::VERSION


 The file C:\perl\site\lib\auto\Net\SSH2\SSH2.dll does exist (path
 delimeters corrected vs. what is above) but this error sounds like
 (speculation on my part) either that SSH2.dll doesn't contain code that
 it should have or some other dependency is missing, but I thought that
 would should have been handled by the ppm install process.

 I think that's all fairly accurate - though there is no other 
 dependency for that SSH2.dll.
 Term::ReadKey is needed (and should have been installed if missing), 
 but I think that has no bearing on this particular problem.

 ActivePerl 5.8.8 820
 Windows XP SP2

 I have ActivePerl 5.8.8 824. I ran:

 

 C:\_32ppm remove Net-SSH2
 Net-SSH2: uninstalled

 C:\_32ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
 Downloading Net-SSH2-0.18...done
 Unpacking Net-SSH2-0.18...done
 Generating HTML for Net-SSH2-0.18...done
 Updating files in site area...done
  13 files installed
   7 files updated

 C:\_32perl -MNet::SSH2 -e print $Net::SSH2::VERSION
 0.18
 C:\_32
 

 As you can see, it all seems to be working fine for me. I don't think 
 your problem has anything to do with the ppm package itself.
 Could you run through that same procedure I used - making sure that 
 the SSH2.pm and SSH2.dll are, in fact, being removed by the 'ppm 
 remove Net-SSH2' command.

 Cheers,
 Rob
Hey guy thanks for the response.

I had already uninstalled it, so I verified files the were removed 
manual and then ran the remove again for kicks:

C: ppm remove Net-SSH2
Net-SSH2: not installed
ppm remove failed: No packages uninstalled

C:ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
Downloading Net-SSH2-0.18...done
Unpacking Net-SSH2-0.18...done
Generating HTML for Net-SSH2-0.18...done
Updating files in site area...done
  20 files installed

C:perl -MNet::SSH2 -e print $Net::SSH2::VERSION
Can't load 'C:\perl\site\lib/auto/Net/SSH2/SSH2.dll' for module 
Net::SSH2: load_file:The specified procedure could not be found at 
C:\Perl\lib/XSLoade
r.pm line 70.
 at C:\perl\site\lib/Net/SSH2.pm line 466
Compilation failed in require.
BEGIN failed--compilation aborted.


Here's the twist this time around , using the command line call to perl 
(as per above) an additional dialog box appeared.  Before, I was running 
it  from Komodo so this was probably getting masked.  Here is the dialog 
info:

Dialog title: perl.exe - Entry Point Not Found
Dialog text : The procedure entry point Perl_sv_2uv_flags could not be 
located in the dynamic link library perl58.dll.

Maybe I need to jump to build 824?  I have to be careful here because I 
don't necessarily want to blow up my Net::SSH::W32Perl setup as I don't 
know the status of the soulcage repo that I used to quite some time ago 
to get that installed.

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Net::SSH2 v0.18

2008-11-05 Thread listmail
listmail wrote:
 Sisyphus wrote:

 - Original Message - From: listmail [EMAIL PROTECTED]
 To: perl-win32-users@listserv.ActiveState.com
 Sent: Wednesday, November 05, 2008 4:43 AM
 Subject: Net::SSH2 v0.18


 I can't get Net::SSH2 0.18 working.  I had Net::SSH2 0.09 working
 without having to do any extra steps, but I never migrated my programs
 over from using the old Net::SSH::W32Perl.

 I installed 0.18 via the default repo, it failed the test, removed it
 and installed from ppm install
 http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd which is the same
 version, and it failed with the same error.

 (Aside: I'm finding that ppm installs from uwinnipeg are very slow 
 these days. Is that just low bandwidth being provided by the server ? 
 ... or something else. It took me about 30 minutes to install 
 Net-SSH2-0.18, and I've noticed slow downloads with all of the other 
 modules I've recently installed from that repo. Anyone else noticed 
 the same ? Downloads from the ActiveState repo still proceed quite 
 quickly for me.)

 To test i simply create a perl script with a use Net::SSH2; call and
 then run it and I immediately get this error:

 Can't load 'C:\perl\site\lib/auto/Net/SSH2/SSH2.dll' for module
 Net::SSH2: load_file:The specified procedure could not be found at
 C:\perl\site\lib/XSLoader.pm line 64.
 at C:\perl\site\lib/Net/SSH2.pm line 466
 Compilation failed in require at C:\testing\ssh2.pl line 5.
 BEGIN failed--compilation aborted at C:ssh2.pl line 5.

 Presumably you get the same behaviour with:
 perl -MNet::SSH2 -e print $Net::SSH2::VERSION


 The file C:\perl\site\lib\auto\Net\SSH2\SSH2.dll does exist (path
 delimeters corrected vs. what is above) but this error sounds like
 (speculation on my part) either that SSH2.dll doesn't contain code that
 it should have or some other dependency is missing, but I thought that
 would should have been handled by the ppm install process.

 I think that's all fairly accurate - though there is no other 
 dependency for that SSH2.dll.
 Term::ReadKey is needed (and should have been installed if missing), 
 but I think that has no bearing on this particular problem.

 ActivePerl 5.8.8 820
 Windows XP SP2

 I have ActivePerl 5.8.8 824. I ran:

 

 C:\_32ppm remove Net-SSH2
 Net-SSH2: uninstalled

 C:\_32ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
 Downloading Net-SSH2-0.18...done
 Unpacking Net-SSH2-0.18...done
 Generating HTML for Net-SSH2-0.18...done
 Updating files in site area...done
  13 files installed
   7 files updated

 C:\_32perl -MNet::SSH2 -e print $Net::SSH2::VERSION
 0.18
 C:\_32
 

 As you can see, it all seems to be working fine for me. I don't think 
 your problem has anything to do with the ppm package itself.
 Could you run through that same procedure I used - making sure that 
 the SSH2.pm and SSH2.dll are, in fact, being removed by the 'ppm 
 remove Net-SSH2' command.

 Cheers,
 Rob
 Hey guy thanks for the response.

 I had already uninstalled it, so I verified files the were removed 
 manual and then ran the remove again for kicks:

 C: ppm remove Net-SSH2
 Net-SSH2: not installed
 ppm remove failed: No packages uninstalled

 C:ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
 Downloading Net-SSH2-0.18...done
 Unpacking Net-SSH2-0.18...done
 Generating HTML for Net-SSH2-0.18...done
 Updating files in site area...done
  20 files installed

 C:perl -MNet::SSH2 -e print $Net::SSH2::VERSION
 Can't load 'C:\perl\site\lib/auto/Net/SSH2/SSH2.dll' for module 
 Net::SSH2: load_file:The specified procedure could not be found at 
 C:\Perl\lib/XSLoade
 r.pm line 70.
 at C:\perl\site\lib/Net/SSH2.pm line 466
 Compilation failed in require.
 BEGIN failed--compilation aborted.


 Here's the twist this time around , using the command line call to 
 perl (as per above) an additional dialog box appeared.  Before, I was 
 running it  from Komodo so this was probably getting masked.  Here is 
 the dialog info:

 Dialog title: perl.exe - Entry Point Not Found
 Dialog text : The procedure entry point Perl_sv_2uv_flags could not be 
 located in the dynamic link library perl58.dll.

 Maybe I need to jump to build 824?  I have to be careful here because 
 I don't necessarily want to blow up my Net::SSH::W32Perl setup as I 
 don't know the status of the soulcage repo that I used to quite some 
 time ago to get that installed.

I said the hell with it and installed build 824 over top of my existing 
820 install and voila, it's working:

C:\perl -MNet::SSH2 -e print $Net::SSH2::VERSION
0.18
C:\perl -v

This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 12 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 824 [287188] provided by ActiveState http://www.ActiveState.com
Built Sep  3 2008 11:14:55
snip

The Net::SSH:W32Perl functionality is still working as well so maybe now 
I can 

Re: Net::SSH2 v0.18

2008-11-05 Thread Serguei Trouchelle
listmail wrote:

 Dialog title: perl.exe - Entry Point Not Found
 Dialog text : The procedure entry point Perl_sv_2uv_flags could not be 
 located in the dynamic link library perl58.dll.

 Maybe I need to jump to build 824?  I have to be careful here because 
 I don't necessarily want to blow up my Net::SSH::W32Perl setup as I 
 don't know the status of the soulcage repo that I used to quite some 
 time ago to get that installed.

I googled a thread from this mailing list about this issue:
http://www.mail-archive.com/perl-win32-users@listserv.activestate.com/msg36994.html

It looks like builds prior to 822 are not fully binary-compatible with recent 
versions.

 The Net::SSH:W32Perl functionality is still working as well so maybe now 
 I can finally
 get things switched over.

-- 
Serguei Trouchelle
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Net::SSH2 v0.18

2008-11-05 Thread Jan Dubois
On Wed, 05 Nov 2008, Serguei Trouchelle wrote:
 listmail wrote:

 Dialog title: perl.exe - Entry Point Not Found Dialog text : The
 procedure entry point Perl_sv_2uv_flags could not be located in the
 dynamic link library perl58.dll. Maybe I need to jump to build 824?
 I have to be careful here because I don't necessarily want to blow
 up my Net::SSH::W32Perl setup as I don't know the status of the
 soulcage repo that I used to quite some time ago to get that
 installed.

 I googled a thread from this mailing list about this issue:
 http://www.mail-archive.com/perl-win32-users@listserv.activestate.com/msg36994.html

 It looks like builds prior to 822 are not fully binary-compatible with
 recent versions.

Binary compatibility is a one-way street: Module compiled with an
earlier version of ActivePerl should always be compatible with later
releases of ActivePerl (as long as you stay within the same major
version; 5.8 modules are not compatible with
5.10).

The reverse however is not true: In general you can not assume that a
module compiled with a later version of ActivePerl will work with and
older installation.

This is the reason why the old ActiveState PPM repository was always
building with ActivePerl 806 for 5.8: The modules can be loaded into any
later ActivePerl release. If you build with 824, then you can only load
them into 824. You may be lucky and be able to load them into 822, but
that isn't guaranteed either.

Note that this limitation is not specific to ActivePerl; it applies to
all Perl releases.  There are 2 types of changes that can be made to
Perl maintenance releases: Additional data fields are added to the end
of internal data structures and/or additional external API are being
defined.

A module compiled with an older version of Perl will not access these
additional data members and not call the new APIs, therefore it can
be used by a later Perl version.  A module compiled with the later
Perl however will use the header files from this Perl version and
may both access the additional structure members or call the new APIs.
This typically happens because the Perl header files will change
some of the macros that are being used to access the Perl internals.

If you call a new API function, then the module will simply not load
when you run it with an older Perl because that version doesn't export
the new symbol.  But when you only access the new data members, then
you won't get any warnings but may still run into data corruption
because you are now accessing memory that has not been allocated by
the older Perl interpreter.

Cheers,
-Jan

PS: The new PPM repositories from ActiveState are being built using
ActivePerl 818 for 5.8 and will therefore be compatible with all
ActivePerl 5.8.8 builds.  These repositories are currently only
enabled for the new 824 builds, but we'll add server redirects for
818..823 probably later today.  By moving the baseline to 5.8.8
we can now build a lot of modules that before couldn't be built
because they required 5.8.1 or later and therefore failed under
5.8.0.806.

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Net::SSH2 v0.18

2008-11-05 Thread Sisyphus

- Original Message - 
From: listmail [EMAIL PROTECTED]
.
.

 Dialog title: perl.exe - Entry Point Not Found
 Dialog text : The procedure entry point Perl_sv_2uv_flags could not be 
 located in the dynamic link library perl58.dll.

Damn - looks like I built that ppm using 5.8.8. It should have been built 
using 5.8.0 - in which case you wouldn't be having this trouble.

I'll send you (offlist) a SSH2.dll built with 5.8.0. If you replace your 
existing auto/Net/SSH2/SSH2.dll with it, then all should be fine.

If you could then confirm that fixes the problem, I'll send Randy a 
corrected (5.8.0-built) binary for inclusion on the Uwinnipeg rep so that 
others don't strike the same problem.

Cheers,
Rob 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Net::SSH2 v0.18

2008-11-04 Thread Sisyphus

- Original Message - 
From: listmail [EMAIL PROTECTED]
To: perl-win32-users@listserv.ActiveState.com
Sent: Wednesday, November 05, 2008 4:43 AM
Subject: Net::SSH2 v0.18


I can't get Net::SSH2 0.18 working.  I had Net::SSH2 0.09 working
 without having to do any extra steps, but I never migrated my programs
 over from using the old Net::SSH::W32Perl.

 I installed 0.18 via the default repo, it failed the test, removed it
 and installed from ppm install
 http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd which is the same
 version, and it failed with the same error.

(Aside: I'm finding that ppm installs from uwinnipeg are very slow these 
days. Is that just low bandwidth being provided by the server ? ... or 
something else. It took me about 30 minutes to install Net-SSH2-0.18, and 
I've noticed slow downloads with all of the other modules I've recently 
installed from that repo. Anyone else noticed the same ? Downloads from the 
ActiveState repo still proceed quite quickly for me.)

 To test i simply create a perl script with a use Net::SSH2; call and
 then run it and I immediately get this error:

 Can't load 'C:\perl\site\lib/auto/Net/SSH2/SSH2.dll' for module
 Net::SSH2: load_file:The specified procedure could not be found at
 C:\perl\site\lib/XSLoader.pm line 64.
 at C:\perl\site\lib/Net/SSH2.pm line 466
 Compilation failed in require at C:\testing\ssh2.pl line 5.
 BEGIN failed--compilation aborted at C:ssh2.pl line 5.

Presumably you get the same behaviour with:
perl -MNet::SSH2 -e print $Net::SSH2::VERSION


 The file C:\perl\site\lib\auto\Net\SSH2\SSH2.dll does exist (path
 delimeters corrected vs. what is above) but this error sounds like
 (speculation on my part) either that SSH2.dll doesn't contain code that
 it should have or some other dependency is missing, but I thought that
 would should have been handled by the ppm install process.

I think that's all fairly accurate - though there is no other dependency for 
that SSH2.dll.
Term::ReadKey is needed (and should have been installed if missing), but I 
think that has no bearing on this particular problem.

 ActivePerl 5.8.8 820
 Windows XP SP2

I have ActivePerl 5.8.8 824. I ran:



C:\_32ppm remove Net-SSH2
Net-SSH2: uninstalled

C:\_32ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
Downloading Net-SSH2-0.18...done
Unpacking Net-SSH2-0.18...done
Generating HTML for Net-SSH2-0.18...done
Updating files in site area...done
  13 files installed
   7 files updated

C:\_32perl -MNet::SSH2 -e print $Net::SSH2::VERSION
0.18
C:\_32


As you can see, it all seems to be working fine for me. I don't think your 
problem has anything to do with the ppm package itself.
Could you run through that same procedure I used - making sure that the 
SSH2.pm and SSH2.dll are, in fact, being removed by the 'ppm remove 
Net-SSH2' command.

Cheers,
Rob 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs