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

Philip Prindeville philipp_subx at redfish-solutions.com
Mon Apr 20 22:36:14 EDT 2020

> On Apr 20, 2020, at 1:18 AM, Petr Štetiar <ynezz at true.cz> wrote:
> Philip Prindeville <philipp_subx at redfish-solutions.com> [2020-04-19 21:47:19]:
> Hi,
>> I just rebased to openwrt master today, and tried to rebuild from scratch but I’m getting:
> So perhaps something related to your local changes/setup/tree? Buildbots are
> green, I dont remember seeing broken x86/64 build and I build and run test it
> with every kernel bump. It's incremental local build and build from scratch on
> CI.
> — ynezz

Slowly working through these issues, and I’m seeing:

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.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/philipp/lede'
package/Makefile:108: recipe for target '/home/philipp/lede/staging_dir/target-x86_64_musl/stamp/.package_install' failed
make[1]: *** [/home/philipp/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2

which I guess has to do with:

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?

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list