首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

在aix下编译libevent

2012-08-17 
在aix上编译libeventlibevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,现在要在aix平台

在aix上编译libevent
libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,现在要在aix平台下编译一把。编译的libevent版本是1.4.8stable首先将libevent包拷入目录,用tar –xvf 解开包安装,进入libevent目录执行:./configure –prefix=安装目录,执行make,执行make install,这里会报错,根据保错信息找到http-internal.h文件将其在的两行函数:

int evhttp_parse_firstline(struct evhttp_request *, struct evbuffer*);int evhttp_parse_headers(struct evhttp_request *, struct evbuffer*);
改为下面代码
enum message_read_status evhttp_parse_firstline(struct evhttp_request *, struct evbuffer*);enum message_read_status evhttp_parse_headers(struct evhttp_request *, struct evbuffer*);
重编译即可通过

热点排行