Centos6编译安装kingate错误解决

发布于 2013-12-20  102 次阅读


安装kingate在编译时遇到以下错误:

1
2
3
4
5
6
7
8
9
10
11
#http://www.haiyun.me
make[2]: *** [KDnsCache.o] Error 1
make[2]: Leaving directory `/root/workspace/proxy/kingate-2.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/workspace/proxy/kingate-2.1/src'
make: *** [all-recursive] Error 1
make[2]: *** [mysocket.o] Error 1
make[2]: Leaving directory `/root/workspace/proxy/kingate-2.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/workspace/proxy/kingate-2.1/src'
make: *** [all-recursive] Error 1


编辑src/KDnsCache.cpp文件,头部添加:

1
#include <string.h>


编辑src/mysocket.cpp头部添加

1
#include <malloc.h>