On 10/07/2015 08:11 PM, Victor Seva wrote:
Hi,
building the 4.3 branch I'm having a lot of:
"declared but never defined" for parse_param. For instance:
gcc -funroll-loops -Wcast-align -m64 -minline-all-stringops
-falign-loops -ftree-vectorize -fno-strict-overflow -Wall
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -DVERSIO
N_NODATE -DNAME='"kamailio"' -DVERSION='"4.3.3"'
-DARCH='"x86_64"'
-DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc
5.2.1"'
-D__CPU_x86_64 -D__OS_linux -DSER_VER=4003003
-DCFG_DIR='"/etc/kamailio/"' -DRUN_
DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
-DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR
-DWITH_XAVP -DDBG_QM_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS
-DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT
-DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS
-DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX
-DHAVE_SELECT -c parser/contact/parse_contact.c -o
parser/contact/parse_contact.o -MMD -MP
In file included from parser/contact/contact.h:38:0,
from parser/contact/parse_contact.h:40,
from parser/contact/parse_contact.c:37:
parser/contact/../parse_param.h:146:19: warning: inline function
'parse_param' declared but never defined
extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h,
param_t *t);
At parser/parser_param.h:
/*! \brief
* Only parse one parameter
* @return:
* t: out parameter
* -1: on error
* 0: success, but expect a next paramter
* 1: success and exepect no more parameters
*/
extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
At parser/parser_param.c:
/*! \brief
* Only parse one parameter
* Returns:
* t: out parameter
* -1: on error
* 0: success, but expect a next paramter
* 1: success and exepect no more parameters
*/
inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t)
{
return parse_param2(_s, _c, _h, t, ';');
}