[OpenSIPS-Users] Compiliing issue OpenSIPS 3.2.4 - WolfSSL on Debian 11
Vlad Patrascu
vladp at opensips.org
Tue Jan 18 15:42:30 UTC 2022
Hi Eugen,
You probably just need to update the wolfssl git submodule, do:
make clean
git submodule update --init
Regards,
--
Vlad Patrascu
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 18.01.2022 15:50, Eugen Prieb via Users wrote:
> Hello,
>
> i have a problem with compiling OpenSIPS 3.2.4 on Debian 11. Issue is
> on WolfSSL compiling...
>
> make[1]: Entering directory '/usr/src/opensips/modules/tls_wolfssl'
> Compiling wolfssl.c
> wolfssl.c: In function ‘oss_mutex_cb’:
> wolfssl.c:140:7: error: ‘WOLFSSL_USER_MUTEX_INIT’ undeclared (first
> use in this function)
> 140 | case WOLFSSL_USER_MUTEX_INIT:
> | ^~~~~~~~~~~~~~~~~~~~~~~
> wolfssl.c:140:7: note: each undeclared identifier is reported only
> once for each function it appears in
> wolfssl.c:141:4: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has no
> member named ‘mutex’
> 141 | m->mutex = lock_alloc();
> | ^~
> wolfssl.c:142:9: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has no
> member named ‘mutex’
> 142 | if (!m->mutex || !lock_init(m->mutex)) {
> | ^~
> wolfssl.c:142:32: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has
> no member named ‘mutex’
> 142 | if (!m->mutex || !lock_init(m->mutex)) {
> | ^~
> wolfssl.c:147:7: error: ‘WOLFSSL_USER_MUTEX_FREE’ undeclared (first
> use in this function)
> 147 | case WOLFSSL_USER_MUTEX_FREE:
> | ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from wolfssl.c:34:
> wolfssl.c:149:17: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has
> no member named ‘mutex’
> 149 | lock_dealloc(m->mutex);
> | ^~
> ../../mem/shm_mem.h:513:38: note: in definition of macro ‘shm_free’
> 513 | #define shm_free( _ptr ) _shm_free( (_ptr), \
> | ^~~~
> wolfssl.c:149:3: note: in expansion of macro ‘lock_dealloc’
> 149 | lock_dealloc(m->mutex);
> | ^~~~~~~~~~~~
> wolfssl.c:150:4: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has no
> member named ‘mutex’
> 150 | m->mutex = NULL;
> | ^~
> wolfssl.c:152:7: error: ‘WOLFSSL_USER_MUTEX_LOCK’ undeclared (first
> use in this function)
> 152 | case WOLFSSL_USER_MUTEX_LOCK:
> | ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../../mem/shm_mem.h:50,
> from wolfssl.c:34:
> wolfssl.c:153:13: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has
> no member named ‘mutex’
> 153 | lock_get(m->mutex);
> | ^~
> ../../mem/../lock_ops.h:93:34: note: in definition of macro ‘lock_get’
> 93 | #define lock_get(lock) get_lock(lock)
> | ^~~~
> wolfssl.c:155:7: error: ‘WOLFSSL_USER_MUTEX_UNLOCK’ undeclared (first
> use in this function)
> 155 | case WOLFSSL_USER_MUTEX_UNLOCK:
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../../mem/shm_mem.h:50,
> from wolfssl.c:34:
> wolfssl.c:156:17: error: ‘wolfSSL_Mutex’ {aka ‘pthread_mutex_t’} has
> no member named ‘mutex’
> 156 | lock_release(m->mutex);
> | ^~
> ../../mem/../lock_ops.h:90:41: note: in definition of macro
> ‘lock_release’
> 90 | #define lock_release(lock) release_lock(lock)
> | ^~~~
> wolfssl.c: In function ‘mod_init’:
> wolfssl.c:172:2: warning: implicit declaration of function
> ‘wolfSSL_SetUserMutexCb’; did you mean ‘wolfSSL_SetHsDoneCb’?
> [-Wimplicit-function-declaration]
> 172 | wolfSSL_SetUserMutexCb(oss_mutex_cb);
> | ^~~~~~~~~~~~~~~~~~~~~~
> | wolfSSL_SetHsDoneCb
> make[1]: *** [../../Makefile.rules:28: wolfssl.o] Error 1
> make[1]: Leaving directory '/usr/src/opensips/modules/tls_wolfssl'
> make: *** [Makefile:197: modules] Error 2-
>
> maili
>
> --
> Eugen P.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220118/2bbdd9d3/attachment-0001.html>
More information about the Users
mailing list