Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to attach to sftp_reply_handle on Linux #1

Open
mscottford opened this issue Jan 2, 2015 · 3 comments
Open

Unable to attach to sftp_reply_handle on Linux #1

mscottford opened this issue Jan 2, 2015 · 3 comments

Comments

@mscottford
Copy link
Member

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 added a commit that referenced this issue Jan 2, 2015
@mscottford
Copy link
Member Author

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
Copy link

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants