I also checked archive SR-users.list and found question about same staff.

I installed kamailio from master branch on ubuntu 16.04 with small changes at tls module.
It gives same error but more clear result. (tested with default kamailio file - moved tls.so before ALL modules)

 0(27545) ERROR: tls [tls_init.c:493]: tls_pre_init(): Unable to set the memory allocation functions
 0(27545) ERROR: tls [tls_init.c:495]: tls_pre_init(): libssl current mem functions - m: 0x7fab2a42d550 r: 0x7fab2a42dc40 f: 0x7fab2a42da70
 0(27545) ERROR: tls [tls_init.c:497]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)
 0(27545) ERROR: <core> [sr_module.c:607]: load_module(): /usr/local/lib64/kamailio/modules/tls.so: mod_register failed





2016-07-25 12:23 GMT+03:00 Yuriy Gorlichenko <ovoshlook@gmail.com>:
Just asking about any progress of this staff

THere is a bug descried at the ubuntu bug tracker
https://bugs.launchpad.net/ubuntu/+source/kamailio/+bug/1591992

There is bug that i wrote at the kamailio bug tracker
https://github.com/kamailio/kamailio/issues/714

Closed it because It is not trouble of kamailio itself. I suppose something wrong at the ubuntu enviroment

Any ideas or may be someone resolves it?