红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > SuSE

编译keepalived提示错误,请帮忙!

发布时间:2011-08-25 18:31:51来源:红联作者:yan411325
使用系统为:SUSE Linux Enterprise Server 10 (i586)
编译提示如下错误:
gcc -g -O2 -DETHERTYPE_IPV6=0x86dd -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_6_ -D_WITH_LVS_ -D_WITH_VRRP_ -c smtp.c
In file included from ../include/vrrp.h:31,
from ../include/smtp.h:34,
from smtp.c:27:
../include/vrrp_ipaddress.h:32:27: error: linux/if_addr.h: No such file or directory
In file included from ../include/vrrp.h:31,
from ../include/smtp.h:34,
from smtp.c:27:
../include/vrrp_ipaddress.h:41: error: field ?fa?has incomplete type
make[2]: *** [smtp.o] Error 1
make[2]: Leaving directory `/usr/local/soft/keepalived-1.2.2/keepalived/core'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/soft/keepalived-1.2.2/keepalived'
make: *** [all] Error 2


缺少文件if_addr.h,vrrp.h等,现在有安装源盘,需要安装哪些包,才能有这些文件,谢了!
文章评论

共有 1 条评论

  1. 于 2012-09-21 01:18:40发表:

    第一个问题解决了,下载一个if-addr.h的文件,但是第二个还是搞不定