错误:构建内核时未声明 TCA_HTB_PAD

错误:构建内核时未声明 TCA_HTB_PAD

我正在尝试构建内核按照本教程(我在Ubuntu上)。执行“make”命令时,出现错误:

net/sched/sch_htb.c: In function ‘htb_dump_class’:
net/sched/sch_htb.c:1115:10: error: ‘TCA_HTB_PAD’ undeclared (first use in this function)
          TCA_HTB_PAD))
          ^
net/sched/sch_htb.c:1115:10: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:300: recipe for target 'net/sched/sch_htb.o' failed
make[2]: *** [net/sched/sch_htb.o] Error 1
scripts/Makefile.build:553: recipe for target 'net/sched' failed
make[1]: *** [net/sched] Error 2
Makefile:1002: recipe for target 'net' failed
make: *** [net] Error 2

此错误已在此链接上报告(我还为 kaunetem 构建了此内核):''TCA_HTB_PAD' 未声明' 未声明但用户没有回答他的问题。

答案1

这个问题是由于我正在使用的软件包的内核兼容性问题造成的。当我使用4.5内核时,还可以。

相关内容