<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>following up -- apparently there is some issue with the lib in
      ubuntu 16.04, same module working fine in 15.10, as reported on
      the tracker:</p>
    <p>  - <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/issues/714">https://github.com/kamailio/kamailio/issues/714</a></p>
    <p>When I get a chance I will install a ubuntu 16.04 myself and dig
      more into the libssl sources.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 18/07/16 14:46, Jayesh Nambiar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANAYozs--PoO1TM1Sb5LartgKOFDdWrT0O1jCRkDJpgYwGptrA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Daniel,
        <div>Thanks for looking into this. I tried with this patch and
          still get the same error. Here are the relevant part of logs:</div>
        <div>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [cfg.y:1603]: yyparse(): loading
              module tls.so</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [sr_module.c:575]: load_module():
              trying to load
              </usr/local/kamailio/lib64/kamailio/modules/tls.so></span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [mem/q_malloc.c:189]:
              qm_malloc_init(): qm_malloc_init: QM_OPTIMIZE=16384,
              /ROUNDTO=2048</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [mem/q_malloc.c:191]:
              qm_malloc_init(): qm_malloc_init: QM_HASH_SIZE=2099,
              qm_block size=235152</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [mem/q_malloc.c:193]:
              qm_malloc_init(): qm_malloc_init(0x7fda8249d000,
              67108864), start=0x7fda8249d000</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              DEBUG: <core> [mem/q_malloc.c:202]:
              qm_malloc_init(): qm_malloc_init: size= 67108864,
              init_overhead=235256</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              ERROR: tls [tls_init.c:493]: tls_pre_init(): Unable to set
              the memory allocation functions</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              ERROR: tls [tls_init.c:495]: tls_pre_init(): libssl
              current mem functions - m: 0x7fda87673550 r:
              0x7fda87673c40 f: 0x7fda87673a70</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              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)</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              ERROR: <core> [sr_module.c:607]: load_module():
              /usr/local/kamailio/lib64/kamailio/modules/tls.so:
              mod_register failed</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><span
                class="inbox-inbox-Apple-converted-space"> </span>0(25032)
              : <core> [cfg.y:3391]: yyerror_at(): parse error in
              config file
              /usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg,
              line 47, column 12-19: failed to load module</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1"><br>
            </span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1">Yes I
              can provide ssh access to this machine. I'll send it to
              you seperately.</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1">Thanks,</span></p>
          <p class="inbox-inbox-p1"><span class="inbox-inbox-s1">-
              Jayesh</span></p>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Mon, Jul 18, 2016 at 2:25 PM Daniel-Constantin
          Mierla <<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <p>Hello,</p>
            <p>no time over the weekend to look at logs, but I pushed
              just now a patch to try to see if the memory functions
              were set or something else prevented the set of memory
              functions.</p>
            <p>Can you try with the patch:</p>
            <p>  -
              <a moz-do-not-send="true"
href="https://github.com/kamailio/kamailio/commit/966513b374eef598434c5310a43eac2735adfd2e"
                target="_blank">https://github.com/kamailio/kamailio/commit/966513b374eef598434c5310a43eac2735adfd2e</a></p>
            <p>I am at IEFT96 so I will try to do some stuff during the
              breaks... if doesn't work, then it may take a bit to get
              more into it.</p>
            <p>Just in case, would it be possible to get ssh access to
              such system?<br>
            </p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>