cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with libssh2 and missing libz in the configure

From: James Housley <jim_at_thehousleys.net>
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 configure.ac 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 .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
"Eagles may soar, but weasels don't get sucked into jet engines"
     -- Anon
Received on 2007-04-08