openwrt/tools
Yousong Zhou 6f677d6848 tools: mkimage: fix __u64 typedef conflict with new glibc
Including "sys/stat.h" from newer glibc will cause __u64 from linux uapi
header to be included, causing compilation failure for u-boot tools
USE_HOSTCC

Remove typedef for __u64 in include/compiler.h to fix the issue.  It should be
safe because as of u-boot-2018.03, no ref to __u64 is found under u-boot tools/
directory

Error message snippet follows

	  HOSTCC  tools/mkenvimage.o
	In file included from /usr/include/asm-generic/types.h:7,
			 from /usr/include/asm/types.h:5,
			 from /usr/include/linux/types.h:5,
			 from /usr/include/linux/stat.h:5,
			 from /usr/include/bits/statx.h:30,
			 from /usr/include/sys/stat.h:446,
			 from tools/mkenvimage.c:21:
	/usr/include/asm-generic/int-ll64.h:31:42: error: conflicting types for '__u64'
	   31 | __extension__ typedef unsigned long long __u64;
	      |                                          ^~~~~
	In file included from <command-line>:
	././include/compiler.h:69:18: note: previous declaration of '__u64' was here
	   69 | typedef uint64_t __u64;
	      |                  ^~~~~
	make[5]: *** [scripts/Makefile.host:116: tools/mkenvimage.o] Error 1

Ref: https://forum.openwrt.org/t/compile-error-19-07/44423
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1699194
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-09-12 06:07:18 +00:00
..
autoconf treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
automake add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
b43-tools b43-tools: fix tarball hash 2016-12-22 17:02:42 +01:00
bc treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
bison tools/bison: Update to 3.0.5 2018-08-21 19:26:08 +02:00
ccache tools/ccache: update to 3.5 2018-12-18 17:22:07 +01:00
cmake tools/cmake: update to 3.11.4 2018-12-18 09:44:04 +01:00
coreutils add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
dosfstools add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
e2fsprogs tools/e2fsprogs: Update to 1.44.2 2018-12-18 17:22:08 +01:00
elftosb treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
expat tools/expat: fix docbook2man error on some systems 2018-12-18 11:28:13 +01:00
findutils tools: findutils: fix compilation with glibc 2.28 2018-08-10 20:50:45 +02:00
firmware-utils tools/firmware-utils: fix sysupgrade typo in mkdapimg2 2019-01-13 10:13:18 +01:00
flex flex: Add a lex symlink 2018-12-18 17:22:07 +01:00
flock tools: flock: add NFSv4 compatibility 2016-08-11 10:50:10 +02:00
genext2fs treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
gengetopt treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
gmp tools: gmp: Update to 6.1.2 2017-01-03 14:24:33 +01:00
include tools: host/include/getline.h: Remove 2017-04-26 10:29:39 +02:00
isl tools/isl: update to 0.18 2017-05-25 19:01:07 +02:00
kernel2minor tools: update kernel2minor to 0.24 version 2017-01-25 07:54:06 +01:00
libelf tools/libelf: Add mirrors as main site is dead 2019-03-17 16:26:05 +01:00
libressl tools/libressl: Add PKG_CPE_ID for proper CVE tracking 2018-12-18 17:22:07 +01:00
libtool add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
lzma treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
lzma-old tools/zlib: move zlib build to tools 2018-04-28 15:28:59 +02:00
m4 tools: m4: fix compilation with glibc 2.28 2018-08-10 20:50:45 +02:00
make-ext4fs tools/make-ext4fs: Fix build on MacOSX 2018-04-29 00:57:07 +02:00
missing-macros tools: remove a bunch of unused automake macros 2015-03-17 10:11:00 +00:00
mkimage tools: mkimage: fix __u64 typedef conflict with new glibc 2019-09-12 06:07:18 +00:00
mklibs treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
mm-macros tools/mm-macros: Update to 0.9.12 2018-05-05 07:13:48 +02:00
mpc tools/mpc: Update to 1.1.0 2018-01-18 08:04:18 +01:00
mpfr tools/mpfr: Update to 4.0.1 2018-04-11 21:02:50 +02:00
mtd-utils mtd-utils: add back macOS compatibility code that was dropped during the update 2018-04-30 10:12:55 +02:00
mtools treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
padjffs2 tools: padjffs2: add option to output padding data to stdout 2016-07-11 13:26:33 +02:00
patch tools/patch: apply upstream patch for cve-2019-13638 2019-08-14 09:12:23 +02:00
patch-image tools: patch-image: fix file descriptor leak. 2017-02-15 07:45:24 +01:00
patchelf treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
pkg-config tools/pkg-config: Handle variable substitution of 'bindir' to redirect to STAGING_DIR/bin 2019-04-24 07:22:25 +02:00
qemu add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
quilt treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
scons tools/scons: update to 3.0.1 2018-01-17 08:52:54 +01:00
sdimage treewide: clean up and unify PKG_VERSION for git based downloads 2016-12-22 16:42:21 +01:00
sed tools/sed: Update to 4.5 2018-05-05 07:13:41 +02:00
sparse tools/sparse: Update to snapshot 2017-03-31 2017-05-29 10:00:43 +02:00
squashfs add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
squashfs4 tools/zlib: move zlib build to tools 2018-04-28 15:28:59 +02:00
sstrip tools/sstrip: Fix compile under standard linux. 2017-12-08 10:40:20 +01:00
tar tools/tar: update to 1.30 2018-01-20 20:22:01 +01:00
upslug2 treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
wrt350nv2-builder tools: remove static linking support 2015-02-06 00:00:43 +00:00
xz tools/xz: Add PKG_CPE_ID for proper CVE tracking 2018-12-18 17:22:07 +01:00
zlib tools: zlib: do not hardcode the install prefix in zlib.pc 2018-05-24 17:07:57 +02:00
Makefile tools: patch: Fix build by not modifing Makefile.am 2018-12-18 17:22:06 +01:00