RHEL5.5 32位上编译安装keepalived-1.2.2.tar.gz报错

报错信息如下:

/root/keepalived-1.2.2/keepalived/vrrp/vrrp.c:787: undefined reference to `ipvs_syncd_backup'

collect2: ld 返回 1

make[1]: *** [all] 错误 1

make[1]: Leaving directory `/root/keepalived-1.2.2/keepalived'

make: *** [all] 错误 2


解决方法:

vi keepalived/libipvs-2.6/ip_vs.h

#include <sys/types.h>

#include <linux/types.h>

这两行先后顺序错误

#include <sys/types.h>在#include <linux/types.h>的前面。


本文出自 “Crushlinux” 博客,转载请与作者联系!

你可能感兴趣的:(RHEL5.5)