Unable to attach to sftp_reply_handle on Linux
mscottford opened this issue · 3 comments
mscottford commented
2.0.0-p353/lib/ruby/gems/2.0.0/gems/ffi-1.9.6/lib/ffi/library.rb:261:in `attach_function': Function 'sftp_reply_handle' not found in [libssh.so] (FFI::NotFoundError)
This seems to be caused by the sftp_reply_*
functions not being exported via the LIBSSH_API
C macro.
mscottford commented
To work around the issue, apply the following patch to the 0.6.3 source before compiling it. This is going to be submitted to the libssh team. https://gist.github.com/mscottford/f4674326dd66060ddb3a
javierholguera commented
Hi,
I was wondering if this patch is still necessary or the changes are now part of versions of libssh after 0.6.3. Thanks!
Kris-LIBIS commented
@javierholguera Just looked in the source code. Unfortunately, as of today (version 0.7.3 is 7 months old) the code still does not include the patch.