kumquat-buildroot/package/zip
Brandon Maier 3326cbd2e5 package/zip: fix build with GCC 14
Builds with GCC 14 print the following error

> zip.h:726:10: error: conflicting types for 'memset'; have 'char *(char *, int,  unsigned int)'

This is because with GCC 14, Zip incorrectly detects that the memset functions
exist. Which enables the ZMEM flag and declares its own version of memset.

This is because the ./unix/configure script attempts to compile a C file using
'memset' but it does not include the <string.h>. This was allowed in gnu89, but
in GCC 14 -Werror=implicit-function-declaration is enabled by default[1].

We forcefully set '-std=gnu89' so that Zip will compile everything against
gnu89, which suppresses the warning.

[1] https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 29c6fe13d3)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-06-08 09:43:30 +02:00
..
0001-configure-Remove-Check-C-compiler-type-optimization-.patch
0002-configure-Don-t-use-host-CPP.patch
0003-Makefile-Use-CFLAGS-from-command-line.patch
0004-configure-use-LDFLAGS-from-command-line.patch
0005-unix-configure-remove-GID-UID-size-check.patch
0006-unix-configure-borrow-the-LFS-test-from-autotools.patch
0007-timezone.c-needs-time.h-fixes-musl-compile.patch
0008-fix-musl-static-build.patch
Config.in
Config.in.host
zip.hash
zip.mk