cURL / Mailing Lists / curl-library / Single Mail


Re: Problem with libssh2 and missing libz in the configure

From: Guenter Knauf <>
Date: Sun, 8 Apr 2007 22:29:10 +0200

Hi Jim,
you should checkout libssh from CVS, the release 0.14 is way outdated, and a new version is on the way;
also recently there was a commit to CVS that zlib is no longer mandatory, so I think there is no reason to require zlib linkage with libssh2 in future.


> libssh2, the last released version at least, commonly it linked
> against libz. This is to allow compressing data during the
> transmission. If libssh2 is built with libz, then libcurl fails to
> successfully detect libssh2.

> The change needed in is beyond my capabilities. What is
> needed is to use "-lz" while testing for libssh2_channel_open_ex().
> Ideally libz would be automatically added to libcurl if libssh2 was
> built with libz, but that is likely not possible. At the very least
> I think -lz should be added to the libraries if libcurl uses libz.

> Jim

> --

> /"\ ASCII Ribbon Campaign .
> \ / - NO HTML/RTF in e-mail .
> X - NO Word docs in e-mail .
> / \ -----------------------------------------------------------------
> The Power to Serve
> jim@TheHousleys.Net
> ---------------------------------------------------------------------
> "Eagles may soar, but weasels don't get sucked into jet engines"
> -- Anon
Received on 2007-04-08