Hello,

I tried compiling with latest master and get this error upon starting kamailio:

-- Unit kamailio.service has begun starting up.
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: WARNING: tls [tls_mod.c:569]: mod_register(): tls support is disabled (set enable_tls=1 in the config to enable it)
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/sr_module.c:512]: load_module(): could not open module </usr/local/lib64/kamailio/modules/pv.so>: /usr/local/lib64/kamailio/modules/pv.so:
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 98, column 12-15: failed to load module
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "proto"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [o/111] in [$proto] at [5 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "proto"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [o/111] in [$proto] at [5 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [u/117] in [$ru] at [2 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [u/117] in [$ru] at [2 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [u/117] in [$ru] at [2 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [u/117] in [$ru] at [2 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "tU"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [U/85] in [$tU] at [2 (0)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "var"
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: bad config file (2 errors)
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [d/100] in [$var(dispatcher_set)] at [5 (5)]
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 466, column 3-22: Can't get from cache: $var(disp
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core> [core/ppcfg.c:234]: pp_ifdef_level_error(): different number of preprocessor directives: 1 more #!if[n]def as #!endif
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: loading modules under config path: /usr/local/lib64/kamailio/modules/
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: kamailio.service: Control process exited, code=exited status=255
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: kamailio.service: Failed with result 'exit-code'.
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
-- Subject: Unit kamailio.service has failed



I traced back the issue to this commit: 1dd8c5784aa58bd48a713661a1f3e4ed7db58c88

My system is Ubuntu 18.04.4 LTS \n \l

gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)


On 07.03.2020 03:13, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:

They were from the previous commits indeed -- clang on mac was not
reporting them. I just pushed patches to fix them.
Thanks, works now, Juha

_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev