[SR-Users] Issue building sip-router (kamailio flavour)
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jul 8 12:37:25 CEST 2010
Hello,
thanks for troubleshooting further. I just committed the fix on GIT, try
to see if now is working ok, then I will backport in 3.0.
Cheers,
Daniel
On 7/8/10 11:45 AM, 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?
>
> 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
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
--
Daniel-Constantin Mierla
http://www.asipto.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100708/788f4620/attachment.htm>
More information about the sr-users
mailing list