解決 fatal error: linux/netfilter/xt_dscp.h: No such file or directory
問題
編譯發生問題
In file included from ./include/uapi/linux/netfilter_ipv4/ipt_ECN.h:5,
from net/ipv4/netfilter/ipt_ECN.c:17:
./include/uapi/linux/netfilter/xt_ecn.h:14:10: fatal error: linux/netfilter/xt_dscp.h: No such file or directory
14 | #include <linux/netfilter/xt_dscp.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:289: net/ipv4/netfilter/ipt_ECN.o] Error 1
make[2]: *** [scripts/Makefile.build:552: net/ipv4/netfilter] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:552: net/ipv4] Error 2
make[1]: *** Waiting for unfinished jobs....
這個問題指的是缺少linux/netfilter/xt_dscp.文件
解決方法
sudo apt install linux-headers-$(uname -r) build-essential
0 comments:
張貼留言