<p></p>
<h3>Description</h3>
<p>Building TLSA module on ubuntu 18.04 results in a compiler warning and an undefined symbol error when attempting to load module.</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>Make module and attempt to load it</p>

<h4>Debugging Data</h4>

<pre><code>N/A
</code></pre>
<h4>Log Messages</h4>

<p>Compiler output</p>
<pre><code>CC (gcc) [M tlsa.so]            tls_util.o
CC (gcc) [M tlsa.so]            tls_domain.o
CC (gcc) [M tlsa.so]            tls_locking.o
CC (gcc) [M tlsa.so]            tls_rand.o
CC (gcc) [M tlsa.so]            tls_map.o
CC (gcc) [M tlsa.so]            tls_cfg.o
CC (gcc) [M tlsa.so]            tls_select.o
CC (gcc) [M tlsa.so]            tls_server.o
CC (gcc) [M tlsa.so]            tls_dump_vf.o
CC (gcc) [M tlsa.so]            tls_init.o
CC (gcc) [M tlsa.so]            tls_rpc.o
CC (gcc) [M tlsa.so]            tls_config.o
CC (gcc) [M tlsa.so]            tls_bio.o
CC (gcc) [M tlsa.so]            tls_ct_wrq.o
CC (gcc) [M tlsa.so]            tlsa_mod.o
CC (gcc) [M tlsa.so]            tls_verify.o
LD (gcc) [M tlsa.so]            tlsa.so
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x11): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
</code></pre>
<p>Kamailio Log</p>
<pre><code>Aug  9 11:21:04 kamtest kamailio: ERROR: <core> [core/sr_module.c:570]: load_module(): could not open module </usr/local/lib64/kamailio/modules/tlsa.so>: /usr/local/lib64/kamailio/modules/tlsa.so: undefined symbol: __dlclose
Aug  9 11:21:04 kamtest kamailio: CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/kamailio/parameters/modules.cfg, line 7, column 12-20: failed to load module
Aug  9 11:21:04 kamtest kamailio: ERROR: <core> [core/modparam.c:181]: set_mod_param_regex(): No module matching <tlsa> found
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>N/A
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.6.0-dev0 (x86_64/linux) 0a5307-dirty
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 0a5307 -dirty
compiled on 10:36:16 Aug  9 2021 with gcc 7.5.0
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>Linux kamtest 4.15.0-144-generic #148-Ubuntu SMP Sat May 8 02:33:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2815">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIDZCYQH64FFICFEMTT364DDANCNFSM5BZ2LCJA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABO7UZKD3F6LQ3RHXFXZ3R3T364DDA5CNFSM5BZ2LCJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OLT7N2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2815",
"url": "https://github.com/kamailio/kamailio/issues/2815",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>