본문 바로가기

IMS/kamailio

async_http.c:42:26: warning: event2/event.h: No such file or directory

make[3]: `libsrdb1.so.1.0' is up to date.

LD (gcc) [M dialplan.so]                dialplan.so

CC (gcc) [M gzcompress.so]              gzcompress_mod.o

LD (gcc) [M gzcompress.so]              gzcompress.so

CC (gcc) [M http_async_client.so]               async_http.o

async_http.c:42:26: warning: event2/event.h: No such file or directory

async_http.c: In function ‘async_http_init_worker’:

async_http.c:71: warning: implicit declaration of function ‘event_base_new’

async_http.c:71: warning: assignment makes pointer from integer without a cast

async_http.c: In function ‘async_http_run_worker’:

async_http.c:92: warning: implicit declaration of function ‘event_base_dispatch’

async_http.c: In function ‘init_socket’:

async_http.c:429: warning: implicit declaration of function ‘event_new’

async_http.c:429: error: ‘EV_READ’ undeclared (first use in this function)

async_http.c:429: error: (Each undeclared identifier is reported only once

async_http.c:429: error: for each function it appears in.)

async_http.c:429: error: ‘EV_PERSIST’ undeclared (first use in this function)

async_http.c:430: warning: implicit declaration of function ‘event_add’

make[2]: *** [async_http.o] Error 1

make[1]: *** [modules] Error 1

make[1]: Leaving directory `/root/kamailio/kamailio-5.1.5/src'

make: *** [all] Error 2



solution


 

yum install libevent-devel


mkdir -p /usr/include/event2/ 

cp /usr/include/event.h /usr/include/event2/