GNU bug report logs -
#79770
gzip-1.9 .. small changes needed to compile the source coce
Previous Next
To reply to this bug, email your comments to 79770 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gzip <at> gnu.org:
bug#79770; Package
gzip.
(Wed, 05 Nov 2025 14:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mike Warby <mike.warby <at> btinternet.com>:
New bug report received and forwarded. Copy sent to
bug-gzip <at> gnu.org.
(Wed, 05 Nov 2025 14:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
--To: bug-gzip <at> gnu.org
--Subject: gzip-1.9 .. small changes needed to compile the source coce
..attachment details of 1 file follows.
3279 bytes, this_file_as_attachment_0000.txt
..attachment details complete
Lines from README file of gzip-1.9 follows:
>> Please send all comments and bug reports by electronic mail to
>> <bug-gzip <at> gnu.org>.
>>
>> Bug reports should ideally include:
>>
>> * The complete output of "gzip -V" (or the contents of revision.h
>> if you can't get gzip to compile)
>> * The hardware and operating system (try "uname -a")
>> * The compiler used to compile (if it is gcc, use "gcc -v")
>> * A description of the bug behavior
>> * The input to gzip, that triggered the bug
Dear bug-gzip <at> gnu.org team,
Just a short email to indicate a change to the source code of gzip-1.9
that I needed to do to make it compile from source on my opensuse 15.6 system.
I hope that I have supplied enough information.
Output of uname -a follows:
Linux localhost.localdomain 6.4.0-150600.23.25-default #1 SMP PREEMPT_DYNAMIC Tue Oct 1 10:54:01 UTC 2024 (ea7c56d) x86_64 x86_64 x86_64 GNU/Linux
Output of gcc -v follows:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.5.0 (SUSE Linux)
Bug in attempt to compile and a fix of the bug:
When I attempted to compile gzip (and related programs) from source using
./configure and make etc it failed. The first fail was on line 110 of
lib/fseeko.c which is the following line.
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
I quick fix was to change line 50 of lib/fseeko.c as indicated below.
50c50
< #if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
---
> #if defined _IO_ftrylockfile || __GNU_LIBRARY__ >= 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
I similar change is needed to lib/fseterr.c and the change done is indicated below.
32c32
< #if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
---
> #if defined _IO_ftrylockfile || __GNU_LIBRARY__ >= 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
After these changes everything compiled.
As a note, with my compiler the use of gcc -E -dM on a file which does compile
indicates that __GNU_LIBRARY__ is 6.
Regards,
Michael
[this_file_as_attachment_0000.txt (text/plain, attachment)]
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility.
(Sat, 08 Nov 2025 18:51:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mike Warby <mike.warby <at> btinternet.com>:
bug acknowledged by developer.
(Sat, 08 Nov 2025 18:51:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 79770-done <at> debbugs.gnu.org (full text, mbox):
I think that porting issue is already fixed in the current gzip 1.14
release; if not, please let us know. You can get it here:
https://ftp.gnu.org/gnu/gzip/gzip-1.14.tar.gz
This bug report was last modified today.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.