On 6/21/16 11:03 AM, Phil Sutter wrote:
I downloaded CentOS 5 and 6. iproute2 fails to compile on CentOS 5.11;
ip command builds on 6.8 but with a flurry of redefinition errors
(BUILD_BUG_ON), but fails at tc.
What's the exact error message please? Maybe some incompatibility in
kernel headers? Although that shouldn't be ...
lib
CC libgenl.o
CC ll_map.o
CC libnetlink.o
AR libnetlink.a
CC utils.o
In file included from utils.c:35:
../include/utils.h:212:1: warning: "BUILD_BUG_ON" redefined
In file included from ../include/linux/netlink.h:4,
from ../include/linux/if_link.h:5,
from ../include/linux/netdevice.h:31,
from ../include/linux/if_arp.h:26,
from utils.c:28:
/usr/include/linux/kernel.h:29:1: warning: this is the location of the
previous definition
...
CC tc_bpf.o
tc_bpf.c:41:26: error: linux/if_alg.h: No such file or directory
In file included from tc_bpf.c:45:
../include/utils.h:212:1: warning: "BUILD_BUG_ON" redefined
In file included from ../include/linux/netlink.h:4,
from ../include/libnetlink.h:7,
from ../include/utils.h:10,
from tc_bpf.c:45:
/usr/include/linux/kernel.h:29:1: warning: this is the location of the
previous definition
make[1]: *** [tc_bpf.o] Error 1
make: *** [all] Error 2