<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Eugen,</p>
<p>You probably just need to update the wolfssl git submodule, do:</p>
<p>make clean</p>
<p>git submodule update --init</p>
<p>Regards,</p>
<pre class="moz-signature" cols="72">--
Vlad Patrascu
OpenSIPS Core Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 18.01.2022 15:50, Eugen Prieb via
Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7eaa7035-a9d5-db45-5d0b-12dac75ac8f2@teconisy.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">Hello, <br>
<br>
i have a problem with compiling OpenSIPS 3.2.4 on Debian 11.
Issue is on WolfSSL compiling... <br>
<br>
make[1]: Entering directory
'/usr/src/opensips/modules/tls_wolfssl' <br>
Compiling wolfssl.c <br>
wolfssl.c: In function ‘oss_mutex_cb’: <br>
wolfssl.c:140:7: error: ‘WOLFSSL_USER_MUTEX_INIT’ undeclared
(first use in this function) <br>
140 | case WOLFSSL_USER_MUTEX_INIT: <br>
| ^~~~~~~~~~~~~~~~~~~~~~~ <br>
wolfssl.c:140:7: note: each undeclared identifier is reported
only once for each function it appears in <br>
wolfssl.c:141:4: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
141 | m->mutex = lock_alloc(); <br>
| ^~ <br>
wolfssl.c:142:9: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
142 | if (!m->mutex || !lock_init(m->mutex)) { <br>
| ^~ <br>
wolfssl.c:142:32: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
142 | if (!m->mutex || !lock_init(m->mutex)) { <br>
| ^~ <br>
wolfssl.c:147:7: error: ‘WOLFSSL_USER_MUTEX_FREE’ undeclared
(first use in this function) <br>
147 | case WOLFSSL_USER_MUTEX_FREE: <br>
| ^~~~~~~~~~~~~~~~~~~~~~~ <br>
In file included from wolfssl.c:34: <br>
wolfssl.c:149:17: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
149 | lock_dealloc(m->mutex); <br>
| ^~ <br>
../../mem/shm_mem.h:513:38: note: in definition of macro
‘shm_free’ <br>
513 | #define shm_free( _ptr ) _shm_free( (_ptr), \ <br>
| ^~~~ <br>
wolfssl.c:149:3: note: in expansion of macro ‘lock_dealloc’ <br>
149 | lock_dealloc(m->mutex); <br>
| ^~~~~~~~~~~~ <br>
wolfssl.c:150:4: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
150 | m->mutex = NULL; <br>
| ^~ <br>
wolfssl.c:152:7: error: ‘WOLFSSL_USER_MUTEX_LOCK’ undeclared
(first use in this function) <br>
152 | case WOLFSSL_USER_MUTEX_LOCK: <br>
| ^~~~~~~~~~~~~~~~~~~~~~~ <br>
In file included from ../../mem/shm_mem.h:50, <br>
from wolfssl.c:34: <br>
wolfssl.c:153:13: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
153 | lock_get(m->mutex); <br>
| ^~ <br>
../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>mem<span
class="moz-txt-tag">/</span></i>../lock_ops.h:93:34: note:
in definition of macro ‘lock_get’ <br>
93 | #define lock_get(lock) get_lock(lock) <br>
| ^~~~ <br>
wolfssl.c:155:7: error: ‘WOLFSSL_USER_MUTEX_UNLOCK’ undeclared
(first use in this function) <br>
155 | case WOLFSSL_USER_MUTEX_UNLOCK: <br>
| ^~~~~~~~~~~~~~~~~~~~~~~~~ <br>
In file included from ../../mem/shm_mem.h:50, <br>
from wolfssl.c:34: <br>
wolfssl.c:156:17: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’}
has no member named ‘mutex’ <br>
156 | lock_release(m->mutex); <br>
| ^~ <br>
../..<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>mem<span
class="moz-txt-tag">/</span></i>../lock_ops.h:90:41: note:
in definition of macro ‘lock_release’ <br>
90 | #define lock_release(lock) release_lock(lock) <br>
| ^~~~ <br>
wolfssl.c: In function ‘mod_init’: <br>
wolfssl.c:172:2: warning: implicit declaration of function
‘wolfSSL_SetUserMutexCb’; did you mean ‘wolfSSL_SetHsDoneCb’?
[-Wimplicit-function-declaration] <br>
172 | wolfSSL_SetUserMutexCb(oss_mutex_cb); <br>
| ^~~~~~~~~~~~~~~~~~~~~~ <br>
| wolfSSL_SetHsDoneCb <br>
make[1]: *** [../../Makefile.rules:28: wolfssl.o] Error 1 <br>
make[1]: Leaving directory
'/usr/src/opensips/modules/tls_wolfssl' <br>
make: *** [Makefile:197: modules] Error 2- <br>
<br>
maili <br>
<br>
-- <br>
Eugen P. <br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>