Hi all,
Issue on recent Kamailio 4.0 GIT
On a recent changes, you add this on modules/tm/t_msgbuilder.c
+ if(headers==NULL || headers->len<15 + || strnstr(headers->s, "Max-Forwards:", headers->len)==NULL) + memapp(w, MAXFWD_HEADER, MAXFWD_HEADER_LEN); /* Max-forwards */ +
This cause the following error on build :
CC (gcc) [M tm.so] t_msgbuilder.o t_msgbuilder.c: In function 'build_uac_req': t_msgbuilder.c:1545: warning: implicit declaration of function 'strnstr' t_msgbuilder.c:1545: warning: comparison between pointer and integer
And Kamailio refuse to load the tm.so module
ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not open module </usr/lib64/kamailio/modules/tm.so>: /usr/lib64/kamailio/modules/tm.so: undefined symbol: strnstr