Hello,
Are you sure your system is UpToDate ?
[root@proxy1 ~]# find / -name libevent.pc
/usr/lib64/pkgconfig/libevent.pc
[root@proxy1 ~]# find / -name bufferevent.h
/usr/include/event2/bufferevent.h
De : sergey-safarov <notifications@github.com>
Envoyé : jeudi 13 juin 2019 10:43
À : kamailio/kamailio <kamailio@noreply.github.com>
Cc : Nicolas Breuer <Nicolas.Breuer@belcenter.biz>; Author <author@noreply.github.com>
Objet : Re: [kamailio/kamailio] Jansson Module (#1978)
Hi Daniel
Rebuild trigered by issue on opensuse infrastructure.
But last rebuild I also tried build jansson module on CentOS 6 and get this error
[ 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]
I checked presence of libevent.pc and not found on CentOS 6. libevent-devel package is installed on system.
[root@628f362463dd /]# rpm -qa | grep libevent-devel
libevent-devel-1.4.13-4.el6.x86_64
[root@628f362463dd /]# find / -name libevent.pc
[root@628f362463dd /]#
Also looked for bufferevent.h. This file also not exist on system.
[root@628f362463dd /]# find / -name bufferevent.h
[root@628f362463dd /]#
Then i checked libevent-devel version on CentOS 7. Here is used 2.0.21.
[root@027c165a1484 /]# rpm -qa | grep libevent-devel
libevent-devel-2.0.21-4.el7.x86_64
Think we cannot build jansson module on CentOS 6 with libevent-devel-1.4.13-4.
If you not want add support of libevent-devel-1.4.13-4 into kamailio, then please close ticket.
—
You are receiving this because you authored the thread.
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>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.