cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: question on libcurl sftp support

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 9 Sep 2010 23:40:22 +0200 (CEST)

On Thu, 9 Sep 2010, LIU Ri lang wrote:

> If I compile/link my sample sftp codes with some of my own libraries (there
> are necessary for my target problem), the issue is like what I send out
> before.
>
> But if I do not add my own libraries in the compile/link, it works fine.

So then you need to track down why and how to fix it... Sounds like a
case of duplicate symbols or something.

> I am using libssh2-1.2.6, any other trace/log I can enable and how to Turn
> it on to help debug?

libssh2 needs to be built with debug enabled and then you need to add a call
to libssh2_trace() within libcurl to enable the debug tracing. Defining
CURL_LIBSSH2_DEBUG should also be enough. And then of course rebuild libcurl
after you rebuilt libssh2.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-09