Hi,<br><br>I&#39;ve been digging into the code and I think this error happens when TM_HASH_STATS is defined which happens when mode=debug. This makes that the code in modules_k/tmx/t_mi.c calls get_tm_table function that is defined in modules/tm/h_table.h as: <br>

<br>#define get_tm_table() (_tm_table)<br><br>where<br><br>extern struct s_table*  _tm_table;<br><br>I have solved the problem not declaring struct s_table*  _tm_table as extern and commenting it&#39;s declaration in modules/tm/h_table.c, but I&#39;m not sure this is the way to go. Maybe linking tmx against some tm object?, but I don&#39;t know how to accomplish this. What do you think?<br>

<br>Thanks.<br><br>Best regards,<br><br>Santi<br><br><div class="gmail_quote">2010/6/16 Santiago Gimeno <span dir="ltr">&lt;<a href="mailto:santiago.gimeno@gmail.com">santiago.gimeno@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi,<br><br>When I build sip-router (from master) with kamailio flavour using:<br><br>make config mode=debug FLAVOUR=kamailio; make all; make install<br><br>I&#39;m getting this error when trying to start kamailio:<br><br>

ERROR: &lt;core&gt; [sr_module.c:396]: ERROR: load_module: could not open module &lt;/usr/local/lib/kamailio/modules_k/tmx.so&gt;: /usr/local/lib/kamailio/modules_k/tmx.so: undefined symbol: _tm_table<br>
<br>On the other hand, if I use:<br><br>make FLAVOUR=kamailio cfg; make all; make install<br><br>kamailio starts correctly.<br><br>I&#39;ve tried also:<br><br>make mode=debug FLAVOUR=kamailio cfg<br><br>with no luck either.<br>


<br><br>What&#39;s the problem? How should I compile kamailio with debugging so it starts correctly?<br><br>Thank you in advance.<br><br>Regards,<br><br>Santi<br><br><br>
</blockquote></div><br>