On Tue, May 18, 2021 at 08:17:30PM +0200, Thomas De Schampheleire wrote: > From: Thomas De Schampheleire <thomas.de_schampheleire@xxxxxxxxx> > > The ebtables build system seems to assume that 'sparc64' is the > only case where KERNEL_64_USERSPACE_32 is relevant, but this is not true. > This situation can happen on many architectures, especially in embedded > systems. For example, an Aarch64 processor with kernel in 64-bit but > userland built for 32-bit Arm. Or a 64-bit MIPS Octeon III processor, with > userland running in the 'n32' ABI. > > While it is possible to set CFLAGS in the environment when calling the > configure script, the caller would need to know to not only specify > KERNEL_64_USERSPACE_32 but also the EBT_MIN_ALIGN value. > > Instead, add a configure option. All internal details can then be handled by > the configure script. Are you enabling CONFIG_NETFILTER_XTABLES_COMPAT in your kernel build? KERNEL_64_USERSPACE_32 was deprecated long time ago in favour of CONFIG_NETFILTER_XTABLES_COMPAT.