Adding .ko files to kmod package dependancies?

I am NOT using the OpenWrt kernel. I am using the Ubiquiti 4.14 kernel, and building from main.

Package kmod-ipt-nat is missing dependencies for the following libraries:
nf_nat_ipv4.ko
nf_nat_redirect.ko

These are created by the kernel (~/kernel_e50/) but are not copied into build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/packages/ipkg-mipsel_24kc/kmod-ipt-nat/lib/modules/4.14.54-UBNT/:

~/kernel_e50/net/ipv4/netfilter/nf_nat_ipv4.ko
~/kernel_e50/net/netfilter/nf_nat_redirect.ko
mkdir -p /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp
SHELL= flock /home/grommish/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/grommish/openwrt/build_dir/target-mipsel_24kc_musl/netifd-2021-04-03-327da989/.pkgdir/netifd/. /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/'
touch /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp/.netifd_installed
echo "netifd" >> /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/netifd.default.install
make[3]: Leaving directory '/home/grommish/openwrt/package/network/config/netifd'
time: package/network/config/netifd/compile#0.22#0.01#0.20
make[3]: Entering directory '/home/grommish/openwrt/package/firmware/linux-firmware'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/grommish/openwrt/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.19#0.00#0.18
make[3]: Entering directory '/home/grommish/openwrt/package/firmware/prism54-firmware'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/grommish/openwrt/package/firmware/prism54-firmware'
time: package/firmware/prism54-firmware/compile#0.32#0.03#0.32
make[3]: Entering directory '/home/grommish/openwrt/package/kernel/linux'
mkdir -p /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp

SHELL= flock /home/grommish/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/grommish/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/packages/.pkgdir/kernel/. /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/'
touch /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp/.kernel_installed
Package kmod-ipt-nat is missing dependencies for the following libraries:
nf_nat_ipv4.ko
nf_nat_redirect.ko
make[3]: *** [modules/netfilter.mk:458: /home/grommish/openwrt/bin/targets/ramips/mt7621/packages/kmod-ipt-nat_4.14-1_mipsel_24kc.ipk] Error 1
make[3]: Leaving directory '/home/grommish/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#1.76#0.04#1.76
    ERROR: package/kernel/linux failed to build.
make[2]: *** [package/Makefile:114: package/kernel/linux/compile] Error 1
make[2]: Leaving directory '/home/grommish/openwrt'
make[1]: *** [package/Makefile:108: /home/grommish/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/grommish/openwrt'
make: *** [/home/grommish/openwrt/include/toplevel.mk:230: world] Error 2

For future searchers:

These had been removed between 19.07 and the current main branch I usually build from. That being said, these are defines in include/netfilter.mk

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.