[SR-Users] sanity from uri check

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 14 12:52:51 CET 2022


The qm_report() is in the core.

I noticed the lack of -DDBG_SR_MEMORY, which is on by default, but not
in your compile log -- this could be the reason.


On 14.03.22 12:35, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> Have you triggered a clean build? Do you build with the default make
>> options or do you set other compile time flags?
> The build is clean (I use cowbuilder sandbox).  I turned on verbose
> build.  Below both compile and load commands are visible.
>
> What is it that is missing from load?  In which lib should qm_report be
> available?
>
> -- Juha
>
> gcc -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/opensipg-sip-proxy-5.6=. -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   -DNAME='"sip-proxy"' -DVERSION='"5.6.0-0b25"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 10.2.1"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5006000 -DCFG_DIR='"/etc/sip-proxy/"' -DSHARE_DIR='"/usr/share/sip-proxy/"' -DRUN_DIR='"/run/sip-proxy"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -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 -DHAVE_IP_MREQN -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT   -c core/cfg.tab.c -o core/cfg.tab.o -MMD -MP
> gcc -g -m64 -Wl,-O2 -Wl,-E  -Wl,-z,relro -pthread -rdynamic "-ldl" -Wl,-Bsymbolic-functions main.o core/action.o core/async_task.o core/atomic_ops.o core/basex.o core/bit_count.o core/bit_scan.o core/cfg_core.o core/cfg_parser.o core/core_cmd.o core/counters.o core/crc.o core/daemonize.o core/data_lump.o core/data_lump_rpl.o core/dns_cache.o core/dns_func.o core/dprint.o core/dset.o core/dst_blocklist.o core/endianness.o core/error.o core/events.o core/flags.o core/fmsg.o core/forward.o core/hash_func.o core/id.o core/io_wait.o core/ip_addr.o core/kemi.o core/local_timer.o core/lock_ops.o core/locking.o core/lvalue.o core/mod_fix.o core/modparam.o core/msg_translator.o core/nonsip_hooks.o core/onsend.o core/pass_fd.o core/ppcfg.o core/proxy.o core/pt.o core/pv_core.o core/pvapi.o core/qvalue.o core/raw_listener.o core/raw_sock.o core/re.o core/receive.o core/resolve.o core/route.o core/route_struct.o core/rpc_lookup.o core/rvalue.o core/script_cb.o core/sctp_core.o core/select.o core/select_buf.o core/select_core.o core/shm_init.o core/signals.o core/sip_msg_clone.o core/sock_ut.o core/socket_info.o core/sr_compat.o core/sr_module.o core/srapi.o core/str.o core/str_list.o core/strutils.o core/stun.o core/switch.o core/tcp_main.o core/tcp_options.o core/tcp_read.o core/tcp_stats.o core/timer.o core/timer_proc.o core/tls_hooks.o core/tsend.o core/udp_server.o core/usr_avp.o core/ut.o core/ver.o core/xavp.o core/mem/dl_malloc.o core/mem/f_malloc.o core/mem/ll_malloc.o core/mem/memtest.o core/mem/pkg.o core/mem/q_malloc.o core/mem/sf_malloc.o core/mem/shm.o core/mem/tlsf_malloc.o core/parser/hf.o core/parser/msg_parser.o core/parser/parse_addr_spec.o core/parser/parse_allow.o core/parser/parse_body.o core/parser/parse_content.o core/parser/parse_cseq.o core/parser/parse_date.o core/parser/parse_disposition.o core/parser/parse_diversion.o core/parser/parse_event.o core/parser/parse_expires.o core/parser/parse_fline.o core/parser/parse_from.o core/parser/parse_hname2.o core/parser/parse_identity.o core/parser/parse_identityinfo.o core/parser/parse_methods.o core/parser/parse_nameaddr.o core/parser/parse_option_tags.o core/parser/parse_param.o core/parser/parse_ppi_pai.o core/parser/parse_privacy.o core/parser/parse_refer_to.o core/parser/parse_require.o core/parser/parse_retry_after.o core/parser/parse_rpid.o core/parser/parse_rr.o core/parser/parse_sipifmatch.o core/parser/parse_subscription_state.o core/parser/parse_supported.o core/parser/parse_to.o core/parser/parse_uri.o core/parser/parse_via.o core/parser/parser_f.o core/parser/digest/digest.o core/parser/digest/digest_parser.o core/parser/digest/param_parser.o core/parser/contact/contact.o core/parser/contact/parse_contact.o core/parser/sdp/sdp.o core/parser/sdp/sdp_helpr_funcs.o core/rand/cryptorand.o core/rand/fastrand.o core/rand/isaac/rand.o core/rand/fortuna/fortuna.o core/rand/fortuna/random.o core/crypto/md5.o core/crypto/md5utils.o core/crypto/rijndael.o core/crypto/sha256.o core/crypto/shautils.o core/cfg/cfg.o core/cfg/cfg_ctx.o core/cfg/cfg_script.o core/cfg/cfg_select.o core/cfg/cfg_struct.o core/utils/srjson.o core/utils/sruid.o core/utils/tmrec.o core/lex.yy.o core/cfg.tab.o  -ldl -lresolv -lm   -o sip-proxy
> /usr/bin/ld: core/mem/q_malloc.o: in function `qm_malloc_init_pkg_manager':
> ./src/core/mem/q_malloc.c:1211: undefined reference to `qm_report'
> /usr/bin/ld: core/mem/q_malloc.o: in function `qm_shm_report':
> ./src/core/mem/q_malloc.c:1409: undefined reference to `qm_report'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile.rules:191: sip-proxy] Error 1

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/




More information about the sr-users mailing list