Topic: How to compile wolfSSH without multi-threading?

I'm trying to compile wolfSSH without multi-threading, and when I used the --enable-singlethreaded flag while compiling wolfSSL, now when I try to build wolfSSH I receieve the error:

In file included from tests/testsuite.c:41:
./wolfssh/test.h:954:32: error: unknown type name ‘THREAD_CB’; did you mean ‘THREAD_TYPE’?
  954 | static INLINE void ThreadStart(THREAD_CB fun, void* args, THREAD_TYPE* thread)
      |                                ^~~~~~~~~
      |                                THREAD_TYPE
./wolfssh/test.h: In function ‘ThreadJoin’:
./wolfssh/test.h:961:11: error: implicit declaration of function ‘wolfSSL_JoinThread’ [-Werror=implicit-function-declaration]
  961 |     (void)wolfSSL_JoinThread(thread);
      |           ^~~~~~~~~~~~~~~~~~
./wolfssh/test.h:961:11: error: nested extern declaration of ‘wolfSSL_JoinThread’ [-Werror=nested-externs]

Any idea on how I can compile wolfSSH without multi-threading?

Share

Re: How to compile wolfSSH without multi-threading?

Hello medyuuna,

Thanks for joining the wolfSSL Forums. I was able to reproduce the issue you reported. I have created a fix in the PR:
https://github.com/wolfSSL/wolfssh/pull/716

Please test it and let me know if this resolves the issue for you also.

Could you tell us a bit about your project using wolfSSH? Feel free to email us at support@wolfssl.com for a more private conversation.

Kind regards,
Eric - wolfSSL Support