Hi,
Can any one guide me to compile kamailio with custom openssl path please.
Thanks & Regards Cibin
Hello,
edit the modules/tls/Makefile to set the DEFS and LIBS with the paths to your lib.
Cheers, Daniel
On 17/06/16 13:30, Cibin Paul wrote:
Hello Daniel,
Sorry for late response. I tried adding the following entry in modules/tls/Makefile
ifneq ($(SSL_BUILDER),) DEFS += -I/usr/local/ssl/include LIBS += -L/usr/local/ssl/lib
Starting kamailio, giving following error. I am using kamailio-4.4.1 with openssl 1.0.2h
ERROR: <core> [sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/tls.so>: /usr/local/lib64/kamailio/modules/tls.so: undefined symbol: GENERAL_NAME_free
Could you please throw some light on this.
Regards Cibin
Hello,
do you have also another version of the libssl installed?
Can you do ldd on tls.so module of kamailio and send here the output?
Cheers, Daniel
On 23/06/16 09:19, Cibin Paul wrote:
Hello,
Yes I have the old libssl too. But the /usr/local/ssl/lib has the new version which I updated in LIBS. Please find below the output of ldd tls.so
linux-vdso.so.1 => (0x00007fff8137d000) libc.so.6 => /lib64/libc.so.6 (0x00007f070ef92000) /lib64/ld-linux-x86-64.so.2 (0x0000003976a00000)
Regards Cibin
Hello,
so it is not linked to any libssl. The Makefile for tls module is not properly made. Maybe you can attach it and we can see what is the problem.
Cheers, Daniel
On 23/06/16 09:36, Cibin Paul wrote:
Hi,
I think, I was messing with libssl libraries. After reconfiguring openssl, I am getting the following output for ldd tls.so. Thanks for the help.
linux-vdso.so.1 => (0x00007ffffe34f000) libssl.so.1.0.0 => /usr/local/ssl/lib/libssl.so.1.0.0 (0x00007fa572d16000) libc.so.6 => /lib64/libc.so.6 (0x00007fa5729be000) libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0 (0x00007fa5725a8000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fa5723a4000) libz.so.1 => /usr/lib64/libz.so.1 (0x00007fa572190000) /lib64/ld-linux-x86-64.so.2 (0x0000003976a00000)
Thanks & Regards Cibin
Hello,
you don't have the libraries to link against them listed in the LIBS var -- it is only a path there. There shoulb at least ' -lssl -lcrypto' in addition of what you have there.
Cheers, Daniel
On 23/06/16 09:42, Cibin Paul wrote:
Thanks Daniel,
I reconfigured the libssl libraries and got the following result for ldd tls.so. Is this fine or am I missing something?
inux-vdso.so.1 => (0x00007ffffe34f000) libssl.so.1.0.0 => /usr/local/ssl/lib/libssl.so.1.0.0 (0x00007fa572d16000) libc.so.6 => /lib64/libc.so.6 (0x00007fa5729be000) libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0 (0x00007fa5725a8000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fa5723a4000) libz.so.1 => /usr/lib64/libz.so.1 (0x00007fa572190000) /lib64/ld-linux-x86-64.so.2 (0x0000003976a00000)
Regards Cibin
It looks better now. Try to load the module and see if works. Sometimes other libs might be needed, but then you will get a missing symbol error.
Cheers, Daniel
On 24/06/16 07:08, Cibin Paul wrote: