jnthn / p6-ssh-libssh

Asynchronous binding for libssh; client-only and limited functionality so far.
8 stars 8 forks source link

Cannot locate symbol 'ssh_event_new' in native library 'libssh.so.4' #15

Open 0racle opened 5 years ago

0racle commented 5 years ago

It looks like ssh_event_new is not available in all versions of libssh 4. I'm running Centos 6 with libssh 4.2.5.

Found the libssh commit when the function was added, but I'm not sure of the first specific point release that had this function.

I don't know if this can be worked around with legacy function. Otherwise, this module should advise a minimum libssh version.

Unhandled exception: Cannot locate symbol 'ssh_event_new' in native library 'libssh.so.4'
   at perl#sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall):283  (/usr/tools/perl6/share/perl6/precomp/CF48C5E633B0451F636BFD770C4F4BDA142DE1C0/24/24DD121B5B4774C04A7084827BFAD92199756E03:)
 from SETTING::src/core/Lock.pm6:25  (/usr/tools/perl6/share/perl6/runtime/CORE.setting.moarvm:protect)
 from perl#sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall):268  (/usr/tools/perl6/share/perl6/precomp/CF48C5E633B0451F636BFD770C4F4BDA142DE1C0/24/24DD121B5B4774C04A7084827BFAD92199756E03:setup)
 from perl#sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall):570  (/usr/tools/perl6/share/perl6/precomp/CF48C5E633B0451F636BFD770C4F4BDA142DE1C0/24/24DD121B5B4774C04A7084827BFAD92199756E03:CALL-ME)
 from gen/moar/BOOTSTRAP.nqp:3379  (/usr/tools/perl6/share/nqp/lib/Perl6/BOOTSTRAP.moarvm:)
 from site#sources/EED32749D7C06518A0A296D35851B0E5E6ECDDC0 (SSH::LibSSH):72  (/usr/tools/perl6/share/perl6/site/precomp/CF48C5E633B0451F636BFD770C4F4BDA142DE1C0/EE/EED32749D7C06518A0A296D35851B0E5E6ECDDC0:)
 from SETTING::src/core/Thread.pm6:54  (/usr/tools/perl6/share/perl6/runtime/CORE.setting.moarvm:THREAD-ENTRY)
# sudo ldconfig -v | grep ssh.so
        libssh.so.4 -> libssh.so.4.2.5