cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libssh2 >= 1.0 now mandatory?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 May 2009 18:44:12 +0200 (CEST)

On Tue, 19 May 2009, Guenter wrote:

> I've just tried to compile curl 7.19.5 against my distribution-provided
> libs, but get this:
> libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../include
> -I../lib -I../lib -I../ares -I../ares -g0 -O2 -Wno-system-headers -MT
> ssh.lo -MD -MP -MF .deps/ssh.Tpo -c ssh.c -fPIC -DPIC -o .libs/ssh.o
> ssh.c: In function ‘ssh_block2waitfor’:
> ssh.c:2154: error: ‘LIBSSH2_SESSION_BLOCK_INBOUND’ undeclared (first use
>
> libssh2 version is
> #define LIBSSH2_VERSION "0.19.0-20080814"
>
> if we really require a newer libssh2 version now shouldnt we then reject
> older versions at configure level already?

We don't require anything newer than libssh2 0.16, and lib/ssh.c has #ifdefs
for HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS for that reason.

I do think however that inofficial libssh2 builds like 0.19.0-20080814 could
be subject to some "between versions" problems and I really would recommend
against using such releases in a distro. The libssh2 project makes
"real" releases for such purposes and I don't think you'll experience these
problems with one of them...

-- 
  / daniel.haxx.se
Received on 2009-05-19