[SR-Users] Issue building sip-router (kamailio flavour)

marius zbihlei marius.zbihlei at 1and1.ro
Thu Jul 8 12:39:36 CEST 2010


Santiago Gimeno wrote:
> Hi,
>
> I'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:
>
> #define get_tm_table() (_tm_table)
>
> where
>
> extern struct s_table*  _tm_table;
>
> I have solved the problem not declaring struct s_table*  _tm_table as 
> extern and commenting it's declaration in modules/tm/h_table.c, but 
> I'm not sure this is the way to go. Maybe linking tmx against some tm 
> object?, but I don't know how to accomplish this. What do you think?
>
Hello,

Can you please check that tm.so is loaded before tmx.so in the cfg file. 
I investigated and _tm_table is present in tm.so

nm -g tm.so | grep _tm_table
0007f758 B _tm_table

Thanks
Marius
> Thanks.
>
> Best regards,
>
> Santi
>
> 2010/6/16 Santiago Gimeno <santiago.gimeno at gmail.com 
> <mailto:santiago.gimeno at gmail.com>>
>
>     Hi,
>
>     When I build sip-router (from master) with kamailio flavour using:
>
>     make config mode=debug FLAVOUR=kamailio; make all; make install
>
>     I'm getting this error when trying to start kamailio:
>
>     ERROR: <core> [sr_module.c:396]: ERROR: load_module: could not
>     open module </usr/local/lib/kamailio/modules_k/tmx.so>:
>     /usr/local/lib/kamailio/modules_k/tmx.so: undefined symbol: _tm_table
>
>     On the other hand, if I use:
>
>     make FLAVOUR=kamailio cfg; make all; make install
>
>     kamailio starts correctly.
>
>     I've tried also:
>
>     make mode=debug FLAVOUR=kamailio cfg
>
>     with no luck either.
>
>
>     What's the problem? How should I compile kamailio with debugging
>     so it starts correctly?
>
>     Thank you in advance.
>
>     Regards,
>
>     Santi
>
>
>




More information about the sr-users mailing list