### Description
On Fedora 40 present build error ``` [2024-11-15T10:16:57.955Z] LD (gcc) [M tls.so] tls.so [2024-11-15T10:16:58.083Z] sources = tls_cfg.c tls_config.c tls_ct_wrq.c tls_domain.c tls_init.c tls_rpc.c tls_select.c tls_server.c tls_util.c tls_verify.c tls_wolfssl_mod.c , auto_gen = , objs = tls_cfg.o tls_config.o tls_ct_wrq.o tls_domain.o tls_init.o tls_rpc.o tls_select.o tls_server.o tls_util.o tls_verify.o tls_wolfssl_mod.o [2024-11-15T10:16:58.146Z] sources = tls_cfg.c tls_config.c tls_ct_wrq.c tls_domain.c tls_init.c tls_rpc.c tls_select.c tls_server.c tls_util.c tls_verify.c tls_wolfssl_mod.c , auto_gen = , objs = tls_cfg.o tls_config.o tls_ct_wrq.o tls_domain.o tls_init.o tls_rpc.o tls_select.o tls_server.o tls_util.o tls_verify.o tls_wolfssl_mod.o [2024-11-15T10:16:58.170Z] CC (gcc) [M tls_wolfssl.so] tls_cfg.o [2024-11-15T10:16:58.295Z] CC (gcc) [M tls_wolfssl.so] tls_config.o [2024-11-15T10:16:58.406Z] In file included from tls_config.c:29: [2024-11-15T10:16:58.406Z] tls_util.h: In function ‘tls_err_ret’: [2024-11-15T10:16:58.406Z] tls_util.h:44:30: error: implicit declaration of function ‘wolfSSL_get_servername’; did you mean ‘wolfSSL_get_curve_name’? [-Wimplicit-function-declaration] [2024-11-15T10:16:58.406Z] 44 | sn = wolfSSL_get_servername(ssl, WOLFSSL_SNI_HOST_NAME); [2024-11-15T10:16:58.406Z] | ^~~~~~~~~~~~~~~~~~~~~~ [2024-11-15T10:16:58.406Z] | wolfSSL_get_curve_name [2024-11-15T10:16:58.407Z] tls_util.h:44:28: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] [2024-11-15T10:16:58.407Z] 44 | sn = wolfSSL_get_servername(ssl, WOLFSSL_SNI_HOST_NAME); [2024-11-15T10:16:58.407Z] | ^ [2024-11-15T10:16:58.411Z] tls_util.h:46:30: error: implicit declaration of function ‘ERR_get_error’ [-Wimplicit-function-declaration] [2024-11-15T10:16:58.411Z] 46 | while((err = ERR_get_error())) { [2024-11-15T10:16:58.411Z] | ^~~~~~~~~~~~~ [2024-11-15T10:16:58.443Z] make[2]: *** [../../Makefile.rules:100: tls_config.o] Error 1 [2024-11-15T10:16:58.445Z] make[1]: *** [Makefile:508: modules] Error 1 [2024-11-15T10:16:58.445Z] make[1]: Leaving directory '/root/rpmbuild/BUILD/kamailio-6.0.0-dev3/src' [2024-11-15T10:16:58.445Z] make: *** [Makefile:34: every-module] Error 2 ```
### Troubleshooting
#### Reproduction
<!-- If the issue can be reproduced, describe how it can be done. -->
Used wolfssl-5.7.4
* **Operating System**:
<!-- Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...; Kernel details (output of `lsb_release -a` and `uname -a`) -->
``` (paste your output here) ```
with libwolfssl-dev 5.7.2 (sid) there's no issue. ``` clang -fPIC -DPIC -pthread -m64 -DKSR_PTHREAD_MUTEX_SHARED -Wunused-variable -Wuninitialized -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/code=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"6.0.0-dev3"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"clang Debian clang version 19.1.3 (1)"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=6000000 -DCFG_DIR='"/etc/kamailio/"' -DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_NAPTR -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKAROUND -DUSE_FUTEX -DHAVE_SELECT -DMOD_NAME='"tls_wolfssl"' -DMOD_NAMEID='tls_wolfssl' -c tls_config.c -o tls_config.o ```
This issue is related to dist. The reason is that Kamailio with wolfssl 5.7.4 compiled properly on RHEL/CentOS 8/9.
Closed #4024 as completed.
I have successfully compiled wolfssl module on RHEL 10. Looks like issue related to not released CentOS 10 Stream.