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?
Thanks.
Best regards,
Santi
2010/6/16 Santiago Gimeno <santiago.gimeno(a)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