libssh2 static linking - undefined reference to

2020-09-24 Thread Simone
Hello, I have built libssh2 and its dependencies for aarch64, in such a way to link these libs as static into the final executable. So the dependencies compiled as static libraries are *libassuan.a libcrypto.a libgcrypt.a libgpg-error.a libksba.a libnpth.a libntbtls.a libssl.a libz.a* To tes

Re: libssh2 static linking - undefined reference to

2020-09-24 Thread Simone
libssh2_session_free'** **/usr/bin/ld: scp_write.c:(.text+0x665): undefined reference to `libssh2_exit'** **collect2: error: ld returned 1 exit status* Thanks, S. On 9/24/20 3:10 PM, Simone wrote: Hello, I have built libssh2 and its dependencies for aarch64, in such a way to link the

Re: libssh2 static linking - undefined reference to

2020-09-25 Thread Simone
I forgot to say that this was a gcc command error, linked libs go after c src. s. On 9/24/20 4:32 PM, Simone wrote: Hello again, I have the same problem after compiling for x86_64. Here is the output if I try to compile scp_write.c from the examples: * **:~/path/to/libssh2-1.9.0

libssh2_session_handshake remains stuck

2021-06-22 Thread Simone Azzalin
Hello, I have noticed that during the first minutes after boot, the libssh2_session_handshake execution remains stuck blocking the execution of the program. The code is intended to send a file using the SCP protocol, and it's based on the scp_write example. Is this a known issue ? Do you hav

Re: libssh2_session_handshake remains stuck

2021-06-22 Thread Simone Azzalin
Hello Peter, Thank for your useful information. Yes this is an embedded system. I will try the solution that you suggest as soon as possible and give you a feedback. Simon On 6/22/21 4:24 PM, Peter Stuge wrote: Simone Azzalin wrote: I have noticed that during the first minutes after boot

Re: libssh2_session_handshake remains stuck

2021-06-23 Thread Simone Azzalin
e first seconds after boot. Thanks Peter ! Simon On 6/22/21 5:36 PM, Simone Azzalin wrote: Hello Peter, Thank for your useful information. Yes this is an embedded system. I will try the solution that you suggest as soon as possible and give you a feedback. Simon On 6/22/21 4:24 PM, Peter Stu