Bug 2587

Summary: libiproute not compiled with old(<=2.6.22) linux kernel headers
Product: Busybox Reporter: Sergey Gusarov <laborer2008>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.17.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Sergey Gusarov 2010-09-17 13:44:06 UTC
CC      networking/libiproute/iplink.o
networking/libiproute/iplink.c: In function 'do_change':
networking/libiproute/iplink.c:336: error: 'IFLA_LINKINFO' undeclared (first use in this function)
networking/libiproute/iplink.c:336: error: (Each undeclared identifier is reported only once
networking/libiproute/iplink.c:336: error: for each function it appears in.)
networking/libiproute/iplink.c:337: error: 'IFLA_INFO_KIND' undeclared (first use in this function)
make[1]: *** [networking/libiproute/iplink.o] Error 1
make: *** [networking/libiproute] Error 2

Identifier "IFLA_LINKINFO" was presented in a kernel 2.6.23 release. And therefore does not compile with older kernel headers presented in toolchain.
Comment 1 Denys Vlasenko 2010-10-28 22:32:00 UTC
Already fixed in git:

#ifndef IFLA_LINKINFO
# define IFLA_LINKINFO 18
# define IFLA_INFO_KIND 1
#endif

Will be in 1.18.x