Hi Todd,
Thanks for the information.
I've looked at compiling. I'm assuming this is the file you're referring to?
/usr/local/src/openssl-1.1.1m/configdata.pm
What am I looking for in that file? There is no mention of malloc?
Do I alter this file before running
Do I alter this file before running
make clean
make
make install
Thanks,
Chris
On Wed, 30 Mar 2022 at 16:32, Todd Short <todd.short@xxxxxx> wrote:
Each OS distribution may choose to enable/disable features as they see fit. And they may also patch the code.It's likely RHEL disabled the functionality.You would need to download the RPM source, build it, and see what is enabled (via configdata.pm) and what patches may have been applied.On Mar 30, 2022, at 4:45 AM, Chris <sadfe523123@xxxxxxxxx> wrote:Hi All,
Experienced an issue with Kamailio which presented with the below errortls_pre_init(): Unable to set the memory allocation functions
I have two servers CentOS8 and RHEL8. CentOS8 runs as expected, RHEL8 shows the errors
This forum suggested this was related to an OpenSSL issue https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html
The below script was compiled and run as suggested in order confirm the OpenSSL was present#include <stdio.h>#include <openssl/ssl.h>
static void *myMalloc( size_t s ) { return NULL; }static void *myRealloc( void *p, size_t s ) { return NULL; }static void myFree( void *p ) {}
int main(){if ( !CRYPTO_set_mem_functions( myMalloc, myRealloc, myFree) ){fprintf( stderr, "Unable to set the memory allocation functions\n");return -1;}
return 0;}
The output on each system was differentCentOS – nothing outputtedRHEL – “Unable to set the memory allocation functions”
Though versions of OpenSSL installed appeared the sameyum info openssl-libs openssl | grep 'Packages\|Name\|Version'
CentOS:Installed PackagesName : opensslVersion : 1.1.1kName : openssl-libsVersion : 1.1.1k
RHEL:Installed PackagesName : opensslVersion : 1.1.1kName : openssl-libsVersion : 1.1.1k
strings /usr/lib64/libcrypto.so | grep "^OpenSSL"Both systems have the same output
Would someone be able to confirm what is going on here?Does the above script suggest a problem with the OpenSSL-Libs?Am I looking in the right places to confirm a difference between the two VMs?
Thanks,Chris