<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I tried compiling with <b>latest master</b> and get this error
upon starting kamailio:</p>
<p>-- Unit kamailio.service has begun starting up.<br>
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)<br>
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: <br>
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<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "proto"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "proto"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ru"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "tU"<br>
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)]<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "var"<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: ERROR: bad config
file (2 errors)<br>
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)]<br>
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<br>
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<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: INFO: <core>
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not
initialized<br>
mar 09 13:36:36 LXBU-GRPF8S2 kamailio[6562]: loading modules under
config path: /usr/local/lib64/kamailio/modules/<br>
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: kamailio.service: Control
process exited, code=exited status=255<br>
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: kamailio.service: Failed
with result 'exit-code'.<br>
mar 09 13:36:36 LXBU-GRPF8S2 systemd[1]: Failed to start Kamailio
(OpenSER) - the Open Source SIP Server.<br>
-- Subject: Unit kamailio.service has failed<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>I traced back the issue to this commit:
1dd8c5784aa58bd48a713661a1f3e4ed7db58c88</p>
<p>My system is Ubuntu 18.04.4 LTS \n \l</p>
<p>gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) <br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07.03.2020 03:13, Juha Heinanen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:24162.62807.504931.727274@tutpro.com">
<pre class="moz-quote-pre" wrap="">Daniel-Constantin Mierla writes:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">They were from the previous commits indeed -- clang on mac was not
reporting them. I just pushed patches to fix them.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Thanks, works now, Juha
_______________________________________________
Kamailio (SER) - Development Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
</body>
</html>