<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 5/24/11 10:13 PM, Bruno Bresciani wrote:
    <blockquote
      cite="mid:BANLkTimG_xaifhD3HQ9ifKWrdnLZe8=wsQ@mail.gmail.com"
      type="cite">yes this module I developed for kamailio 1.5.0 but now
      I'm migrating to kamailio 3.1.2... why I have include in my
      Makefile "DEFS+=-DOPENSER_MOD_INTERFACE" and not "DEFS+=
      -DKAMAILIO_MOD_INTERFACE"? I want compile the kamailio, not ser.<br>
    </blockquote>
    <br>
    this is about what module interface you implement in your module,
    not what flavour of application you compile.<br>
    <br>
    And the defines you listed are OPENSER or KAMAILIO which are
    practically the same, since we had to rename OPENSER in KAMAILIO due
    to trademark infringements claims. Therefore it is not SER anyway.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
      cite="mid:BANLkTimG_xaifhD3HQ9ifKWrdnLZe8=wsQ@mail.gmail.com"
      type="cite">
      <br>
      Regards.<br>
      <br>
      <div class="gmail_quote">2011/5/24 Daniel-Constantin Mierla <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          Hello,
          <div>
            <div class="h5"><br>
              <br>
              On 5/24/11 8:41 PM, Bruno Bresciani wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Hi,<br>
                <br>
                Someone know tell me why kamailio generate the following
                error when I try load the route.so module:<br>
                <br>
                May 24 10:21:43 sswpst00 kamailio: ERROR: &lt;core&gt;
                [sr_module.c:523]: ERROR: load_module: could not open
                module
                &lt;/home2/local/kamailio/lib/kamailio/modules/route.so&gt;:
                /home2/local/kamailio/lib/kamailio/modules/route.so:
                undefined symbol: db_use_table<br>
                <br>
                I don't know why this error have been generate. I'm
                porting this module to use with kamailio 3.1.2.<br>
              </blockquote>
            </div>
          </div>
          starting with v3.0, there are internal libraries that you have
          to link your module against.<br>
          <br>
          Since your module uses connection to database, you need to
          link against lib srdb1. Probably you need also lib kcore if
          your module was developed for kamailio 1.x.<br>
          <br>
          What you need to do is to list the libraries in Makefile of
          the module, in SER_LIBS variable. See modules_k/msilo/Makefile
          for some example that might fit your module dependencies as
          well.<br>
          <br>
          Very likely you should have in Makefile the line:<br>
          DEFS+=-DOPENSER_MOD_INTERFACE<br>
          <br>
          Be careful if you export MI commands and statistics, even if
          the attributes are in module exports structure, you have to
          register them in mod_init function (see msilo and dispatcher
          modules for some examples).<br>
          <br>
          Cheers,<br>
          Daniel<br>
          <font color="#888888">
            <br>
            -- <br>
            Daniel-Constantin Mierla -- <a moz-do-not-send="true"
              href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
            <a moz-do-not-send="true"
              href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
            -- <a moz-do-not-send="true"
              href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
            <br>
          </font></blockquote>
      </div>
      <br>
    </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>