GNU bug report logs - #78618
Gzip 1.14 build failure on s390x (undeclared errno in dfltcc.c)

Previous Next

Package: gzip;

Reported by: Jakub Martisko <jamartis <at> redhat.com>

Date: Wed, 28 May 2025 11:04:02 UTC

Severity: normal

To reply to this bug, email your comments to 78618 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#78618; Package gzip. (Wed, 28 May 2025 11:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakub Martisko <jamartis <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Wed, 28 May 2025 11:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jakub Martisko <jamartis <at> redhat.com>
To: bug-gzip <at> gnu.org
Subject: Gzip 1.14 build failure on s390x (undeclared errno in dfltcc.c)
Date: Wed, 28 May 2025 13:01:25 +0200
[Message part 1 (text/plain, inline)]
Hello,

while rebasing the gzip in fedora I've encountered the build failure from
the $SUBJ.
A bit more info:
- happens only when configured with the --enable-dfltcc
- introduced  by the [1] (the "errno" variable doesn't seem to be used
outside of the scope of the patch)
- build completes when the "--enable-dfltcc" is not used or when the [1] is
reversed
- The actual error (I can provide patch if needed):

dfltcc.c:441:15: error: 'errno' undeclared (first use in this function)
  441 |               errno = 0;
      |               ^~~~~
dfltcc.c:28:1: note: 'errno' is defined in header '<errno.h>'; this is
probably fixable by adding '#include <errno.h>'
   27 | #include "gzip.h"
  +++ |+#include <errno.h>
   28 |
dfltcc.c:441:15: note: each undeclared identifier is reported only
once for each function it appears in
  441 |               errno = 0;
      |               ^~~~~
make[2]: *** [Makefile:2050: dfltcc.o] Error 1




[1]:
https://cgit.git.savannah.gnu.org/cgit/gzip.git/commit/?h=v1.14&id=23ddd95f3e152423fe0dfc96ff31d4130a65e8cf
[Message part 2 (text/html, inline)]

This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.