<p>I was able to reproduce this on opensuse 42.3 with the default kamailio cfg.</p>
<p>$ ./kamailio -f ../etc/kamailio.cfg -E -e -L modules -Y /tmp/ -AWITH_TLS -AWITH_DEBUG</p>
<p>0(12645) ERROR: tls [tls_init.c:601]: tls_pre_init(): Unable to set the memory allocation functions<br>
0(12645) ERROR: tls [tls_init.c:603]: tls_pre_init(): libssl current mem functions - m: 0x7f613089c380 r: 0x7f613089c9e0 f: 0x7f613089c950<br>
0(12645) ERROR: tls [tls_init.c:605]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)<br>
0(12645) ERROR:  [core/sr_module.c:532]: load_module(): modules/tls/tls.so: mod_register failed</p>
<p>$ rpm -qi libopenssl-devel<br>
Name        : libopenssl-devel<br>
Version     : 1.0.2j<br>
Release     : 32.1<br>
Architecture: x86_64</p>
<p>$ ldd tls.so<br>
linux-vdso.so.1 (0x00007ffd9ad8d000)<br>
libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f619dc34000)<br>
libc.so.6 => /lib64/libc.so.6 (0x00007f619d88f000)<br>
libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007f619d436000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00007f619e135000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x00007f619d232000)<br>
libz.so.1 => /lib64/libz.so.1 (0x00007f619d01c000)</p>

<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/1797#issuecomment-452464289">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZXIaBdlFLBrpztZeL1O2UEypbIRFks5vBRJvgaJpZM4Z2AmM">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZfLg-c_W1UPDaEy10sz4dkRG9xp2ks5vBRJvgaJpZM4Z2AmM.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@henningw in #1797: I was able to reproduce this on opensuse 42.3 with the default kamailio cfg.\r\n\r\n$ ./kamailio -f ../etc/kamailio.cfg -E -e -L modules -Y /tmp/ -AWITH_TLS -AWITH_DEBUG\r\n\r\n0(12645) ERROR: tls [tls_init.c:601]: tls_pre_init(): Unable to set the memory allocation functions\r\n0(12645) ERROR: tls [tls_init.c:603]: tls_pre_init(): libssl current mem functions - m: 0x7f613089c380 r: 0x7f613089c9e0 f: 0x7f613089c950\r\n0(12645) ERROR: tls [tls_init.c:605]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)\r\n0(12645) ERROR: \u003ccore\u003e [core/sr_module.c:532]: load_module(): modules/tls/tls.so: mod_register failed\r\n\r\n$ rpm -qi libopenssl-devel\r\nName        : libopenssl-devel\r\nVersion     : 1.0.2j\r\nRelease     : 32.1\r\nArchitecture: x86_64\r\n\r\n$ ldd tls.so \r\n        linux-vdso.so.1 (0x00007ffd9ad8d000)\r\n        libssl.so.1.0.0 =\u003e /lib64/libssl.so.1.0.0 (0x00007f619dc34000)\r\n        libc.so.6 =\u003e /lib64/libc.so.6 (0x00007f619d88f000)\r\n        libcrypto.so.1.0.0 =\u003e /lib64/libcrypto.so.1.0.0 (0x00007f619d436000)\r\n        /lib64/ld-linux-x86-64.so.2 (0x00007f619e135000)\r\n        libdl.so.2 =\u003e /lib64/libdl.so.2 (0x00007f619d232000)\r\n        libz.so.1 =\u003e /lib64/libz.so.1 (0x00007f619d01c000)\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1797#issuecomment-452464289"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1797#issuecomment-452464289",
"url": "https://github.com/kamailio/kamailio/issues/1797#issuecomment-452464289",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>