<div dir="ltr">Source: ebtables<br>Version: 2.0.11-6<br>Severity: important<br>Tags: ftbfs patch upstream<br>User: <a href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com</a><br>Usertags: origin-ubuntu stonking ubuntu-patch<br><br>Dear Maintainer,<br><br>ebtables fails to build on arm64 with recent kernel UAPI headers (linux-libc-dev 7.3, currently in Ubuntu; Debian will see the same once it gets these headers):<br><br>  In file included from /usr/include/aarch64-linux-gnu/bits/sigcontext.h:30,<br>                   from /usr/include/signal.h:301,<br>                   from ebtablesd.c:24:<br>  /usr/include/aarch64-linux-gnu/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'?<br>     81 |         __u128 vregs[32];<br><br><div>Cause: the source bundles an old copy of the kernel header include/linux/types.h (from v3.16). </div><div>Because the build uses -I./include, it shadows the system <linux/types.h>. Between kernel 7.0 and 7.3 the arm64 asm/sigcontext.h changed from the compiler builtin __uint128_t to the kernel typedef __u128, which the bundled copy does not define. <br>Only arm64 is affected.</div><br>The attached patch drops the bundled linux/types.h so the system header is used. It builds fine, and with the 7.3 arm64 headers the error goes away. The same patch has been sent upstream to netfilter-devel.<br><br>Ubuntu bug: <a href="https://bugs.launchpad.net/ubuntu/+source/ebtables/+bug/2169809">https://bugs.launchpad.net/ubuntu/+source/ebtables/+bug/2169809</a><br><br>Thanks,<br>Sebastien</div>