For now I'm compiling libssh2 by using Gcc and when running the sftp example I 
get the error LIBSSH2_ERROR_KEX_FAILURE=-5.
I found this link very useful: 
http://daniel.haxx.se/projects/libssh2/mail/libssh2-devel-archive-2007-03/0008.shtml
(Compiling and executinh error of libssh2 library in AIXUnix Version
4.3 and 5.1).

But unfortunately I have no idea where to add the proposed code.

It seems that another option could be to install 
http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=KRNG11I
but I'd prefer to avoid any installation.

Any suggestion?

Thanks in advance,
Roberto



----- Messaggio originale -----
Da: Daniel Stenberg <[EMAIL PROTECTED]>
A: roberto pulvirenti <[EMAIL PROTECTED]>
Cc: libssh2-devel@lists.sourceforge.net
Inviato: Giovedì 19 luglio 2007, 17:01:56
Oggetto: Re: [libssh2] compilation in HP-UX

On Thu, 19 Jul 2007, roberto pulvirenti wrote:

> Warning 942: "session.c", line 442 # Types 'void *' and 'void 
> (*)(_LIBSSH2_SESSION *,const char
>    *,int,void **)' are not assignment-compatible.
>                oldcb = session->ssh_msg_ignore;
>                ^^^^^^^^^^^^^^^^^^^^^^^

While not errors, these are bad assignments that we should fix...

> Error 176: "session.c", line 1134 # Size of array must be an integral 
> constant expression of value
>    greater than 0.
>        struct pollfd sockets[nfds];
>                              ^^^^

Oh right, this is a C99'ism that we must fix in the code. I believe I added a 
comment in the code around that since the fix isn't obvious as we don't have 
the 'session' pointer in that function and thus cannot access the malloc 
function pointer.

I think we should add an argument to the function prototype, alternatively 
use plain malloc() (ignoring the possibly "custom" malloc function).

Another work-around for you (besides setting a larger fixed number) would be 
to install gcc or similar C99 aware compiler, and build libssh2 with that.







      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to