--To: [email protected]
--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
>> <[email protected]>.
>>
>> 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 [email protected] 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


--To: [email protected]
--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
>> <[email protected]>.
>>
>> 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 [email protected] 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


Reply via email to