报错信息如下:
/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>的前面。
转载于:https://blog.51cto.com/crushlinux/1272986