Bug 2587 - libiproute not compiled with old(<=2.6.22) linux kernel headers
Summary: libiproute not compiled with old(<=2.6.22) linux kernel headers
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.17.x
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 13:44 UTC by Sergey Gusarov
Modified: 2010-10-28 22:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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