Hello,
<br>
Are you sure your system is UpToDate ?
<br>

<br>
[root@proxy1 ~]# find / -name libevent.pc
<br>
/usr/lib64/pkgconfig/libevent.pc
<br>

<br>
[root@proxy1 ~]# find / -name bufferevent.h
<br>
/usr/include/event2/bufferevent.h
<br>

<br>

<br>
De : sergey-safarov <notifications@github.com>
<br>
Envoyé : jeudi 13 juin 2019 10:43
<br>
À : kamailio/kamailio <kamailio@noreply.github.com>
<br>
Cc : Nicolas Breuer <Nicolas.Breuer@belcenter.biz>; Author <author@noreply.github.com>
<br>
Objet : Re: [kamailio/kamailio] Jansson Module (#1978)
<br>

<br>

<br>
Hi Daniel
<br>
Rebuild trigered by issue on opensuse infrastructure.
<br>
But last rebuild I also tried build jansson module on CentOS 6 and get this error
<br>

<br>
[  246s] make[3]: `libkamailio_ims.so.0.1' is up to date.
<br>

<br>
[  246s] LD (gcc) [M ims_ipsec_pcscf.so]             ims_ipsec_pcscf.so
<br>

<br>
[  246s] CC (gcc) [M jansson.so]              jansson_funcs.o
<br>

<br>
[  246s] CC (gcc) [M jansson.so]              jansson_mod.o
<br>

<br>
[  246s] CC (gcc) [M jansson.so]              jansson_path.o
<br>

<br>
[  246s] CC (gcc) [M jansson.so]              jansson_utils.o
<br>

<br>
[  246s] LD (gcc) [M jansson.so]              jansson.so
<br>

<br>
[  246s] CC (gcc) [M acc_json.so]             acc_json_mod.o
<br>

<br>
[  246s] LD (gcc) [M acc_json.so]             acc_json.so
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] Package libevent was not found in the pkg-config search path.
<br>

<br>
[  247s] Perhaps you should add the directory containing `libevent.pc'
<br>

<br>
[  247s] to the PKG_CONFIG_PATH environment variable
<br>

<br>
[  247s] No package 'libevent' found
<br>

<br>
[  247s] CC (gcc) [M janssonrpcc.so]          janssonrpc_connect.o
<br>

<br>
[  247s] In file included from janssonrpc_connect.c:40:
<br>

<br>
[  247s] netstring.h:27:32: warning: event2/bufferevent.h: No such file or directory
<br>

<br>
[  247s] In file included from janssonrpc_io.h:31,
<br>

<br>
[  247s]                  from janssonrpc_request.h:26,
<br>

<br>
[  247s]                  from janssonrpc_connect.c:42:
<br>

<br>
[  247s] janssonrpc_server.h:29:27: warning: event2/buffer.h: No such file or directory
<br>

<br>
[  247s] janssonrpc_connect.c: In function 'bev_disconnect':
<br>

<br>
[  247s] janssonrpc_connect.c:59: warning: implicit declaration of function 'bufferevent_get_enabled'
<br>

<br>
[  247s] janssonrpc_connect.c: In function 'server_backoff_cb':
<br>

<br>
[  247s] janssonrpc_connect.c:143: warning: implicit declaration of function 'event_free'
<br>

<br>
[  247s] janssonrpc_connect.c: In function 'wait_server_backoff':
<br>

<br>
[  247s] janssonrpc_connect.c:175: warning: implicit declaration of function 'evtimer_new'
<br>

<br>
[  247s] janssonrpc_connect.c:175: warning: assignment makes pointer from integer without a cast
<br>

<br>
[  247s] janssonrpc_connect.c: In function 'bev_connect_cb':
<br>

<br>
[  247s] janssonrpc_connect.c:273: error: 'BEV_EVENT_ERROR' undeclared (first use in this function)
<br>

<br>
[  247s] janssonrpc_connect.c:273: error: (Each undeclared identifier is reported only once
<br>

<br>
[  247s] janssonrpc_connect.c:273: error: for each function it appears in.)
<br>

<br>
[  247s] janssonrpc_connect.c:273: error: 'BEV_EVENT_EOF' undeclared (first use in this function)
<br>

<br>
[  247s] janssonrpc_connect.c:276: warning: implicit declaration of function 'bufferevent_socket_get_dns_error'
<br>

<br>
[  247s] janssonrpc_connect.c:278: warning: implicit declaration of function 'evutil_gai_strerror'
<br>

<br>
[  247s] janssonrpc_connect.c:278: warning: format '%s' expects type 'char *', but argument 12 has type 'int'
<br>

<br>
[  247s] janssonrpc_connect.c:278: warning: format '%s' expects type 'char *', but argument 10 has type 'int'
<br>

<br>
[  247s] janssonrpc_connect.c:283: error: 'BEV_EVENT_CONNECTED' undeclared (first use in this function)
<br>

<br>
[  247s] janssonrpc_connect.c: In function 'bev_connect':
<br>

<br>
[  247s] janssonrpc_connect.c:362: warning: implicit declaration of function 'bufferevent_socket_new'
<br>

<br>
[  247s] janssonrpc_connect.c:365: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
<br>

<br>
[  247s] janssonrpc_connect.c:379: warning: implicit declaration of function 'bufferevent_socket_connect_hostname'
<br>

<br>
[  247s] make[2]: *** [janssonrpc_connect.o] Error 1
<br>

<br>
[  247s] make[1]: *** [modules] Error 1
<br>

<br>
[  247s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/kamailio-5.3.0-dev5/src'
<br>

<br>
[  247s] make: *** [every-module] Error 2
<br>

<br>
[  247s] error: Bad exit status from /var/tmp/rpm-tmp.02K8aC (%build)
<br>

<br>
[  247s]
<br>

<br>
I checked presence of libevent.pc and not found on CentOS 6. libevent-devel package is installed on system.
<br>

<br>
[root@628f362463dd /]# rpm -qa | grep libevent-devel
<br>

<br>
libevent-devel-1.4.13-4.el6.x86_64
<br>

<br>
[root@628f362463dd /]# find / -name libevent.pc
<br>

<br>
[root@628f362463dd /]#
<br>

<br>
Also looked for bufferevent.h. This file also not exist on system.
<br>

<br>
[root@628f362463dd /]# find / -name bufferevent.h
<br>

<br>
[root@628f362463dd /]#
<br>

<br>
Then i checked libevent-devel version on CentOS 7. Here is used 2.0.21.
<br>

<br>
[root@027c165a1484 /]# rpm -qa | grep libevent-devel
<br>

<br>
libevent-devel-2.0.21-4.el7.x86_64
<br>

<br>
Think we cannot build jansson module on CentOS 6 with libevent-devel-1.4.13-4.
<br>
If you not want add support of libevent-devel-1.4.13-4 into kamailio, then please close ticket.
<br>

<br>

<br>
You are receiving this because you authored the thread.
<br>
Reply to this email directly, view it on GitHub<https://github.com/kamailio/kamailio/issues/1978?email_source=notifications&email_token=AAQEM66LKKQRZ773RZZNGKTP2ICBPA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7GFA#issuecomment-501609236>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAQEM6ZHH3PH4IAKRQXRPL3P2ICBPANCNFSM4HWQ3LTQ>.
<br>


<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=ABO7UZKS2J6IMVQUEZOSBY3P2ICRTA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7R2Y#issuecomment-501610731">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKBM7IU4X7UYDFJNDTP2ICRTANCNFSM4HWQ3LTQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZOC34VHKITUTCA73SDP2ICRTA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7R2Y.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=ABO7UZKS2J6IMVQUEZOSBY3P2ICRTA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7R2Y#issuecomment-501610731",
"url": "https://github.com/kamailio/kamailio/issues/1978?email_source=notifications\u0026email_token=ABO7UZKS2J6IMVQUEZOSBY3P2ICRTA5CNFSM4HWQ3LT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS7R2Y#issuecomment-501610731",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>