cURL / Mailing Lists / curl-library / Single Mail


Problem with libssh2 and missing libz in the configure

From: James Housley <>
Date: Sun, 8 Apr 2007 15:58:42 -0400

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.


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