[OpenWrt-Devel] Can't build x86_64 because of ntf_reject_ipv4.ko missing

Hannu Nyman hannu.nyman at iki.fi
Tue Apr 21 00:58:15 EDT 2020


Philip Prindeville wrote at Mon Apr 20 19:36:14 PDT 2020:

 > Collected errors:
 >  * check_data_file_clashes: Package kmod-ipt-nat6 wants to install file 
/home/philipp/lede/build_dir/target-x86_64_musl/root-x86/lib/modules/5.4.33/xt_MASQUERADE.ko
 >     But that file is already provided by package  * kmod-ipt-nat
 >  * opkg_install_cmd: Cannot install package kmod-ipt-nat6.
 > ...
 > philipp at ubuntu16:~/lede$ grep -r xt_MASQUERADE config Config.in include 
package/ rules.mk Makefile target/
 > include/netfilter.mk:$(eval $(if $(NF_KMOD),$(call 
nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_MASQUERADE, $(P_XT)xt_MASQUERADE, ge 5.2),))
 > include/netfilter.mk:$(eval $(call 
nf_add,IPT_NAT,CONFIG_IP_NF_TARGET_MASQUERADE, $(P_XT)xt_MASQUERADE, ge 5.2))
 > philipp at ubuntu16:~/lede$
 >
 > Why is it part of both packages?  And why is does it add different flags 
when it’s built?


Regarding IPv6 NAT, you stumbled into a kernel 5.4 issue originally reported 
in http://lists.infradead.org/pipermail/openwrt-devel/2020-February/021929.html

Bug report: https://bugs.openwrt.org/index.php?do=details&task_id=2924

That should have been fixed yesterday by
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=29a458b0cae3435bce41136ee3b4132b4103ffae

Have you updated your source repo?

(That issue was not detected by the buildbot, as it was a file clash at 
package installation, not an actual compilation error of the package itself.)


But no idea why that ipv6 NAT thing would have caused your original item of 
"ntf_reject_ipv4.ko missing"...



_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list