[root@mysql2 keepalived-2.1.5]# make

过多的输出,...

main.c:917:8: warning: assuming signed overflow does not occur when simplifying conditional to constant [-Wstrict-overflow]

while (wait_count) {

^

CC daemon.o

CC pidfile.o

CC layer4.o

CC smtp.o

CC global_data.o

CC global_parser.o

In file included from global_parser.c:56:0:

../../keepalived/include/namespaces.h:42:49: warning: ‘struct nl_sock’ declared inside parameter list [enabled by default]

extern int nl_ipvs_connect(const char *, struct nl_sock *);

^

../../keepalived/include/namespaces.h:42:49: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

CC keepalived_netlink.o

keepalived_netlink.c: In function ‘netlink_request’:

keepalived_netlink.c:1488:2: warning: missing initializer for field ‘nlmsg_flag’ of ‘struct nlmsghdr’ [-Wmissing-field-initializers]

} req = { .nlh.nlmsg_type = type };

^

In file included from /usr/include/linux/rtnetlink.h:5:0,

from /usr/include/linux/fib_rules.h:5,

from keepalived_netlink.c:39:

/usr/include/linux/netlink.h:45:9: note: ‘nlmsg_flags’ declared here

__u16 nlmsg_flags; /* Additional flags */

^

CC namespaces.o

In file included from /usr/include/netlink/handlers.h:19:0,

from /usr/include/netlink/socket.h:16,

from namespaces.c:171:

/usr/include/netlink/netlink-kernel.h:193:2: error: unknown type name ‘__u32’

__u32 group;

^

make[2]: *** [namespaces.o] Error 1

make[2]: Leaving directory `/software/keepalived-2.1.5/keepalived/core'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/software/keepalived-2.1.5/keepalived'

make: *** [all-recursive] Error 1

[root@mysql2 keepalived-2.1.5]#

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐