looks like htable.dump does not tell what is the type of the value, e.g.
{ entry: 53 size: 1 slot: { item: { name: foo::bar value: 0 } } }
-- juha
I pushed a patch to master for it -- check to see if the result is what you expect.
Cheers, Daniel
On 15/09/15 13:11, Juha Heinanen wrote:
looks like htable.dump does not tell what is the type of the value, e.g.
{ entry: 53 size: 1 slot: { item: { name: foo::bar value: 0 } } }
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla writes:
I pushed a patch to master for it -- check to see if the result is what you expect.
thanks. didn't get that far though:
CC (gcc) [sip-proxy] mem/q_malloc.o mem/q_malloc.c:919:6: error: conflicting types for 'qm_sums' void qm_sums(struct qm_block* qm) ^ In file included from mem/q_malloc.c:31:0: mem/q_malloc.h:156:6: note: previous declaration of 'qm_sums' was here void qm_sums(void* qm); ^ mem/q_malloc.c: In function 'qm_malloc_init_pkg_manager': mem/q_malloc.c:971:11: warning: assignment from incompatible pointer type ma.xsums = qm_sums; ^ Makefile.rules:97: recipe for target 'mem/q_malloc.o' failed make[1]: *** [mem/q_malloc.o] Error 1
-- juha
Should be fixed now.
Cheers, Daniel
On 15/09/15 14:35, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
I pushed a patch to master for it -- check to see if the result is what you expect.
thanks. didn't get that far though:
CC (gcc) [sip-proxy] mem/q_malloc.o mem/q_malloc.c:919:6: error: conflicting types for 'qm_sums' void qm_sums(struct qm_block* qm) ^ In file included from mem/q_malloc.c:31:0: mem/q_malloc.h:156:6: note: previous declaration of 'qm_sums' was here void qm_sums(void* qm); ^ mem/q_malloc.c: In function 'qm_malloc_init_pkg_manager': mem/q_malloc.c:971:11: warning: assignment from incompatible pointer type ma.xsums = qm_sums; ^ Makefile.rules:97: recipe for target 'mem/q_malloc.o' failed make[1]: *** [mem/q_malloc.o] Error 1
-- juha
one more:
CC (gcc) [sip-proxy] mem/shm.o In file included from mem/../mem/shm_mem.h:34:0, from mem/../ut.h:45, from mem/../ip_addr.h:40, from mem/../globals.h:36, from mem/shm.c:22: mem/shm.c: In function 'shm_core_lock_init': mem/../mem/shm.h:65:41: error: 'sr_shm_api_t' has no member named 'xmalloc_safe' # define shm_malloc_unsafe(s) _shm_root.xmalloc_safe(_shm_root.mem_block, (s)) ^ mem/shm.c:153:12: note: in expansion of macro 'shm_malloc_unsafe' _shm_lock=shm_malloc_unsafe(sizeof(gen_lock_t)); /* skip lock_alloc, ^ Makefile.rules:97: recipe for target 'mem/shm.o' failed make[1]: *** [mem/shm.o] Error 1
-- juha
ok -- try gain with latest master branch.
Cheers, Daniel
On 15/09/15 15:38, Juha Heinanen wrote:
one more:
CC (gcc) [sip-proxy] mem/shm.o In file included from mem/../mem/shm_mem.h:34:0, from mem/../ut.h:45, from mem/../ip_addr.h:40, from mem/../globals.h:36, from mem/shm.c:22: mem/shm.c: In function 'shm_core_lock_init': mem/../mem/shm.h:65:41: error: 'sr_shm_api_t' has no member named 'xmalloc_safe' # define shm_malloc_unsafe(s) _shm_root.xmalloc_safe(_shm_root.mem_block, (s)) ^ mem/shm.c:153:12: note: in expansion of macro 'shm_malloc_unsafe' _shm_lock=shm_malloc_unsafe(sizeof(gen_lock_t)); /* skip lock_alloc, ^ Makefile.rules:97: recipe for target 'mem/shm.o' failed make[1]: *** [mem/shm.o] Error 1
-- juha
Daniel-Constantin Mierla writes:
ok -- try gain with latest master branch.
thanks. i was able to build kamailio and htable.dump now looks good.
-- juha
{ entry: 56 size: 1 slot: { item: { name: lp::20001::flags value: 1024 type: int } } } { entry: 58 size: 1 slot: { item: { name: app_srv::sbc::<null> value: sip:127.0.0.1:5090 type: str } } }