Ticket #140 (closed)
automake + libtool + AIX patch
|Reported by:||anonymous||Owned by:|
attached is a (large) patch to enable the use of
libtool and automake. I needed to compile & install
libssh2 on AIX, HP-UX and Solaris, all of them as
shared libraries. Automake + libtool made that
relatively easy. It now compiles and runs on all of
these - ssh2_sample.c (with a valid username and
password obviously) runs through successfull completion
on all of them.
I've updated the README as follows:
Fix bug on AIX 5.3 where including sys/poll.h after
the definition of struct LIBSSH2_POLLFD causes compile
errors because events and revents are redefined by
Converted to automake and libtool - libssh2 now
builds static and shared libraries HP-UX (32+64bit),
AIX 5.3 (32+64bit), Sun Solaris 8.0. Linux builds
tested on Suse ES 9.2, Gentoo, Debian 3.1.
I've also added a small note in INSTALL on the versions
and commands used to generate configure & the various
We use libssh2 in our product, Symantec PureDisk? Remote
Office Edition, a backup product. You might want to add
it to your list of projects using libssh2 :-)
You can apply the patch on a checked out source tree
using zcat <patch> | -p1 (if you're in the root of the
source tree), or zcat <patch> | -p0 if you're one level up.
I hope you find the patch usefull.
Kind regards & thanks for a neat piece of software!