Subject: Re: [libssh2] libssh2 compile success on AIX - needs patch

Re: [libssh2] libssh2 compile success on AIX - needs patch

From: Simon Josefsson <simon_at_josefsson.org>
Date: Thu, 05 Apr 2007 11:36:46 +0200

Michael Augustin <maugustin_at_gmx.net> writes:

> Hi libssh2-developers,
>
> I compiled libssh2 successfull after some days of try-and-error. I wasn't
> able to compile the examples, but the ssh2_sample.c from version 0.14 was
> build and runnable with version from 0.15pre (cvs-snapshot).
>
> The problem with AIX was also found and solved by this patch
> http://www.mail-archive.com/libssh2-devel%40lists.sourceforge.net/msg00003.html
> but the changes are to big - and not accepted yet.

Hi! I kind of prefer that patch, but when I noticed that it would
change the names of struct fields in the public API, I changed my
mind.

> Now I succeeded on AIX (5.2 in my case) with a small change in
> libssh2_priv.h .
>
> The problem is that libssh.h is included before sys/poll.h gets included,
> where the structure member "event" and "revent" are changed through
> preprocessor defines. So my change include sys/poll.h after libssh2_config.h
> but before libssh2.h in libssh2_priv.h - but only if needed (#ifdef
> HAVE_POLL).
>
> The second change include the file sys/ioctl.h which is needed for the define
> of FIONBIO on AIX.

Thanks for the explanation.

> I applied this patch after running configure-script. You could put it in the
> libssh2_priv.h file permanently - because I tested it with this patch also
> successfull on HP-UX 11i and Linux (SUSE Linux Enterprise Server 9).
>
> Would you include the patch in libssh2-0.15?

Applied.

Regards,
Simon

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-04-05