[Android-tools-devel] Bug#1154027: android-platform-tools: FTBFS on 64-bit architectures due to __le64 typedef conflict in squashfs_fs.h
Viktor Pashaiev
w.paszajew at gmail.com
Sun Nov 15 10:14:27 GMT 2026
Package: android-platform-tools
Version: 34.0.5-13
Severity: serious
Tags: ftbfs patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu tenacious ubuntu-patch
Dear Maintainer,
With glibc 2.44 and newer system headers, `<linux/types.h>` is included transitively when compiling `system/extras/squashfs_utils/squashfs_utils.c`. Because `HAVE_LINUX_TYPES_LE16` is not defined in `debian/system/extras/libext4_utils.mk`, `/usr/include/squashfuse/squashfs_fs.h` defines `typedef uint64_t __le64;`, which conflicts with `typedef __u64 __bitwise __le64;` from `<linux/types.h>` on 64-bit architectures (`unsigned long` vs `unsigned long long`).
The attached patch adds `-DHAVE_LINUX_TYPES_LE16` to `CPPFLAGS` in `debian/system/extras/libext4_utils.mk` so `squashfs_fs.h` uses `<linux/types.h>`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: define-have-linux-types-le16.patch
Type: text/x-diff
Size: 301 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20261115/144cd4da/attachment.patch>
More information about the Android-tools-devel
mailing list