lvsgate / lvs-dpdk

LVS on dpdk
Apache License 2.0
142 stars 57 forks source link

tool keepalived编译出错 #9

Open yujianwei opened 7 years ago

yujianwei commented 7 years ago

linux/types.h 和 sys/types.h 以及 stdint.h 类型定义冲突 错误如下(比较多,截了一段): /usr/src/linux/include/linux/types.h:112:17: error: conflicting types for ‘u_int64_t’ typedef u64 u_int64_t; ^ In file included from /usr/include/sys/uio.h:23:0, from /usr/include/sys/socket.h:26, from /usr/include/netinet/in.h:23, from /usr/include/netdb.h:27, from ../include/layer4.h:30, from layer4.c:24: /usr/include/sys/types.h:203:1: note: previous declaration of ‘u_int64_t’ was here u_intN_t (64, DI); ^ In file included from ../include/../libipvs-2.6/ip_vs.h:12:0, from ../include/check_data.h:38, from ../include/check_api.h:27, from layer4.c:25: /usr/src/linux/include/linux/types.h:113:17: error: conflicting types for ‘int64_t’ typedef __s64 int64_t; ^ In file included from /usr/lib64/gcc/x86_64-suse-linux/4.8/include/stdint.h:9:0, from /usr/include/netinet/in.h:22, from /usr/include/netdb.h:27, from ../include/layer4.h:30, from layer4.c:24: /usr/include/stdint.h:40:19: note: previous declaration of ‘int64_t’ was here typedef long int int64_t; ^ In file included from ../include/../libipvs-2.6/ip_vs.h:12:0, from ../include/check_data.h:38, from ../include/check_api.h:27, from layer4.c:25: