<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    looks like a missing linking library. Can you send the output of:<br>
    <br>
    pkg-config --libs libssl<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 1/13/12 7:59 PM, Gnaneshwar Gatla wrote:
    <blockquote
cite="mid:B51808793DDBAC44B808544F56FE437C03BC6FA359@MAILSTORE.ith.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I&#8217;m trying to upgrade my company&#8217;s sip
          server to the latest Kamailio to 3.1.5. <o:p></o:p></p>
        <p class="MsoNormal">My development environment contained
          Openssl 0.9.8K version and everything works fine here.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I have tried to install a fresh package for
          my release, the openssl version from the Ubuntu packages is
          Openssl 1.0.0e<o:p></o:p></p>
        <p class="MsoNormal">And I get the following error.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">My error looks like this:<o:p></o:p></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">sudo
            /etc/init.d/kamailio start<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">Not
            starting kamailio: invalid configuration file!<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">-e
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&nbsp;0(26880)
            ERROR: &lt;core&gt; [sr_module.c:523]: ERROR: load_module:
            could not open module
            &lt;/home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules/tls.so&gt;:
            /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules/tls.so:
          </span><b><span
              style="font-size:9.0pt;font-family:&quot;Courier
              New&quot;;color:red">undefined symbol: SSLv2_client_method</span></b><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880)
            : &lt;core&gt; [cfg.y:3416]: parse error in config file
            /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/etc/kamailio/kamailio.cfg,
            line 259, column 12-19: failed to load module<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880)
            WARNING: &lt;core&gt; [sr_module.c:578]:
            /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules_k/perl.so:
            exports dlflags interface is deprecated and it will not be
            supported in newer versions; consider using mod_register()
            instead<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880)
            ERROR: &lt;core&gt; [modparam.c:161]: set_mod_param_regex:
            No module matching &lt;tls&gt; found<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880)
            : &lt;core&gt; [cfg.y:3419]: parse error in config file
            /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/etc/kamailio/kamailio.cfg,
            line 437, column 118: Can't set module parameter<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:&quot;Courier New&quot;">ERROR:
            bad config file (2 errors)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I&#8217;m not sure if
            this is a compatibility issue or is there some library
            missing that I have to install.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal">I saw this patch online with reference to
          Crypt-SSLeay at <a moz-do-not-send="true"
            href="https://rt.cpan.org/Public/Bug/Display.html?id=70565">https://rt.cpan.org/Public/Bug/Display.html?id=70565</a><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">*<b>The linker complains
              about missing SSLv2_method. The following patch works for
              me:</b>* <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">--- SSLeay.xs~ 2011-08-29
            07:25:46.000000000 +0200 <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">+++ SSLeay.xs 2011-08-29
            07:29:04.000000000 +0200 <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">@@ -125,13 +125,9 @@<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;if(ssl_version == 23) {
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx =
            SSL_CTX_new(SSLv23_client_method()); <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;} <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">- &nbsp;&nbsp;else if(ssl_version ==
            3) { <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">+ &nbsp;&nbsp;else { <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx =
            SSL_CTX_new(SSLv3_client_method()); <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;} <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">- &nbsp;&nbsp;else { <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* v2 is the default
            */ <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx =
            SSL_CTX_new(SSLv2_client_method()); <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">- &nbsp;&nbsp;} <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_options(ctx,SSL_OP_ALL|0);
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_default_verify_paths(ctx);
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:black" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_verify(ctx,
            SSL_VERIFY_NONE, NULL);</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#1F497D" lang="EN"><o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </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://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>