<p>Hi Daniel<br>
Rebuild trigered by issue on opensuse infrastructure.<br>
But last rebuild I also tried build <code>jansson</code> module on <code>CentOS 6</code> and get this error</p>
<pre><code>[  246s] make[3]: `libkamailio_ims.so.0.1' is up to date.
[  246s] LD (gcc) [M ims_ipsec_pcscf.so]                ims_ipsec_pcscf.so
[  246s] CC (gcc) [M jansson.so]                jansson_funcs.o
[  246s] CC (gcc) [M jansson.so]                jansson_mod.o
[  246s] CC (gcc) [M jansson.so]                jansson_path.o
[  246s] CC (gcc) [M jansson.so]                jansson_utils.o
[  246s] LD (gcc) [M jansson.so]                jansson.so
[  246s] CC (gcc) [M acc_json.so]               acc_json_mod.o
[  246s] LD (gcc) [M acc_json.so]               acc_json.so
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] Package libevent was not found in the pkg-config search path.
[  247s] Perhaps you should add the directory containing `libevent.pc'
[  247s] to the PKG_CONFIG_PATH environment variable
[  247s] No package 'libevent' found
[  247s] CC (gcc) [M janssonrpcc.so]            janssonrpc_connect.o
[  247s] In file included from janssonrpc_connect.c:40:
[  247s] netstring.h:27:32: warning: event2/bufferevent.h: No such file or directory
[  247s] In file included from janssonrpc_io.h:31,
[  247s]                  from janssonrpc_request.h:26,
[  247s]                  from janssonrpc_connect.c:42:
[  247s] janssonrpc_server.h:29:27: warning: event2/buffer.h: No such file or directory
[  247s] janssonrpc_connect.c: In function 'bev_disconnect':
[  247s] janssonrpc_connect.c:59: warning: implicit declaration of function 'bufferevent_get_enabled'
[  247s] janssonrpc_connect.c: In function 'server_backoff_cb':
[  247s] janssonrpc_connect.c:143: warning: implicit declaration of function 'event_free'
[  247s] janssonrpc_connect.c: In function 'wait_server_backoff':
[  247s] janssonrpc_connect.c:175: warning: implicit declaration of function 'evtimer_new'
[  247s] janssonrpc_connect.c:175: warning: assignment makes pointer from integer without a cast
[  247s] janssonrpc_connect.c: In function 'bev_connect_cb':
[  247s] janssonrpc_connect.c:273: error: 'BEV_EVENT_ERROR' undeclared (first use in this function)
[  247s] janssonrpc_connect.c:273: error: (Each undeclared identifier is reported only once
[  247s] janssonrpc_connect.c:273: error: for each function it appears in.)
[  247s] janssonrpc_connect.c:273: error: 'BEV_EVENT_EOF' undeclared (first use in this function)
[  247s] janssonrpc_connect.c:276: warning: implicit declaration of function 'bufferevent_socket_get_dns_error'
[  247s] janssonrpc_connect.c:278: warning: implicit declaration of function 'evutil_gai_strerror'
[  247s] janssonrpc_connect.c:278: warning: format '%s' expects type 'char *', but argument 12 has type 'int'
[  247s] janssonrpc_connect.c:278: warning: format '%s' expects type 'char *', but argument 10 has type 'int'
[  247s] janssonrpc_connect.c:283: error: 'BEV_EVENT_CONNECTED' undeclared (first use in this function)
[  247s] janssonrpc_connect.c: In function 'bev_connect':
[  247s] janssonrpc_connect.c:362: warning: implicit declaration of function 'bufferevent_socket_new'
[  247s] janssonrpc_connect.c:365: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
[  247s] janssonrpc_connect.c:379: warning: implicit declaration of function 'bufferevent_socket_connect_hostname'
[  247s] make[2]: *** [janssonrpc_connect.o] Error 1
[  247s] make[1]: *** [modules] Error 1
[  247s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/kamailio-5.3.0-dev5/src'
[  247s] make: *** [every-module] Error 2
[  247s] error: Bad exit status from /var/tmp/rpm-tmp.02K8aC (%build)
[  247s] 
</code></pre>
<p>I checked presence of <code>libevent.pc</code> and not found on CentOS 6. <code>libevent-devel</code> package is installed on system.</p>
<div class="highlight highlight-source-shell"><pre>[root@628f362463dd /]<span class="pl-c"><span class="pl-c">#</span> rpm -qa | grep libevent-devel</span>
libevent-devel-1.4.13-4.el6.x86_64
[root@628f362463dd /]<span class="pl-c"><span class="pl-c">#</span> find / -name libevent.pc</span>
[root@628f362463dd /]<span class="pl-c"><span class="pl-c">#</span> </span></pre></div>
<p>Also looked for <code>bufferevent.h</code>. This file also not exist on system.</p>
<div class="highlight highlight-source-shell"><pre>[root@628f362463dd /]<span class="pl-c"><span class="pl-c">#</span> find / -name bufferevent.h</span>
[root@628f362463dd /]<span class="pl-c"><span class="pl-c">#</span> </span></pre></div>
<p>Then i checked <code>libevent-devel</code> version on CentOS 7. Here is used 2.0.21.</p>
<pre><code>[root@027c165a1484 /]# rpm -qa | grep libevent-devel
libevent-devel-2.0.21-4.el7.x86_64
</code></pre>
<p>Think we cannot build jansson module on CentOS 6 with  <code>libevent-devel-1.4.13-4</code>.<br>
If you not want add support of  <code>libevent-devel-1.4.13-4</code> into kamailio, then please close ticket.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1978?email_source=notifications&email_token=ABO7UZMB3JBY3DNFXRSBAEDP2ICBHA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7GFA#issuecomment-501609236">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKCCDOXLNF7PSR7Z6TP2ICBHANCNFSM4HWQ3LTQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKZJ4DUYCWVLKVVDBLP2ICBHA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7GFA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1978?email_source=notifications\u0026email_token=ABO7UZMB3JBY3DNFXRSBAEDP2ICBHA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7GFA#issuecomment-501609236",
"url": "https://github.com/kamailio/kamailio/issues/1978?email_source=notifications\u0026email_token=ABO7UZMB3JBY3DNFXRSBAEDP2ICBHA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7GFA#issuecomment-501609236",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>