2 Commits
Author SHA1 Message Date
Xisco Fauli 47edd83c63 zlib: upgrade to 1.3.2
* werror-undef.patch partially reverts
https://github.com/madler/zlib/commit/7108497fda9d4536a1afade7f42266e06dca4488
so the build doesn't fail with
In file included from /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zlib.h:37,
                 from /mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/sal/rtl/crc.cxx:24:
/mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zconf.h:446:5: error: "HAVE_UNISTD_H" is not defined, evaluates to 0 [-Werror=undef]
  446 | #if HAVE_UNISTD_H     /* may be set to #if 1 by ./configure */
      |     ^~~~~~~~~~~~~
/mnt/4d311c06-5193-4f61-a3f6-53ca4d9ea1e1/libreoffice/workdir/UnpackedTarball/zlib/zconf.h:450:5: error: "HAVE_STDARG_H" is not defined, evaluates to 0 [-Werror=undef]
  450 | #if HAVE_STDARG_H     /* may be set to #if 1 by ./configure */
      |     ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Change-Id: I8f1dbaf627a573b9a5ff8c9f20061ec482b87c8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199616
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-18 15:31:22 +01:00
Stephan Bergmann 885538d308 -Wimplicit-function-declaration
> workdir/UnpackedTarball/zlib/gzlib.c:242:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>   242 |         LSEEK(state->fd, 0, SEEK_END);  /* so gzoffset() is correct */
>       |         ^

etc., as causing an error now by default with Clang 18 trunk

Change-Id: Ic19c5710357a1f65046b5a225c6a181c3046938c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160554
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-11 16:45:48 +01:00