免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1327 | 回复: 3
打印 上一主题 下一主题

[网络配置] keepalived make报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-12-07 15:29 |只看该作者 |倒序浏览
[root@web keepalived-1.1.6]# make
make -C lib || exit 1;
make[1]: Entering directory `/ftp/keepalived-1.1.6/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/ftp/keepalived-1.1.6/lib'
make -C keepalived
make[1]: Entering directory `/ftp/keepalived-1.1.6/keepalived'
make[2]: Entering directory `/ftp/keepalived-1.1.6/keepalived/core'
gcc -g -O2  -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_2_ -D_WITH_LVS_ -D_WITH_VRRP_  -c layer4.c
In file included from ../include/check_api.h:29,
                 from layer4.c:27:
../include/check_data.h:38:27: error: linux/ip_masq.h: No such file or directory
../include/check_data.h:39:25: error: net/ip_masq.h: No such file or directory
In file included from ../include/check_api.h:29,
                 from layer4.c:27:
../include/check_data.h:113: error: ?.P_MASQ_TNAME_MAX?.undeclared here (not in a function)
layer4.c: In function ?.cp_socket_state?.
layer4.c:111: warning: pointer targets in passing argument 5 of ?.etsockopt?.differ in signedness
/usr/include/sys/socket.h:190: note: expected ?.ocklen_t * __restrict__?.but argument is of type ?.nt *?
make[2]: *** [layer4.o] Error 1
make[2]: Leaving directory `/ftp/keepalived-1.1.6/keepalived/core'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/ftp/keepalived-1.1.6/keepalived'
make: *** [all] Error 2
[root@web keepalived-1.1.6]#

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
2 [报告]
发表于 2014-12-08 11:47 |只看该作者
本帖最后由 lbseraph 于 2014-12-08 11:48 编辑

回复 1# 东风伴侣

你系统安装了对应的内核开发包么?
   

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
3 [报告]
发表于 2014-12-10 08:45 |只看该作者
安装kernel-devel包看看

论坛徽章:
0
4 [报告]
发表于 2014-12-10 19:22 |只看该作者
谢谢大家的回复。  问题已经解决,就是包的版本问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP