[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]#