While trying to compile gzip 1.14 I see this :
/usr/bin/gcc -DHAVE_CONFIG_H -I. -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -mieee -Wno-cast-qual -Wno-conversion
-Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function
-Wno-unused-parameter -g -O0 -mcpu=21164 -mgas -mexplicit-relocs
-fno-fast-math -fno-builtin -fno-unsafe-math-optimizations
-mno-soft-float -mfp-trap-mode=sui -mfp-rounding-mode=n
-mtrap-precision=i -mieee-with-inexact -mieee-conformant -MT
libgzip_a-fseek.o -MD -MP -MF .deps/libgzip_a-fseek.Tpo -c -o
libgzip_a-fseek.o `test -f 'fseek.c' || echo './'`fseek.c
mv -f .deps/libgzip_a-fseek.Tpo .deps/libgzip_a-fseek.Po
/usr/bin/gcc -DHAVE_CONFIG_H -I. -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -mieee -Wno-cast-qual -Wno-conversion
-Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function
-Wno-unused-parameter -g -O0 -mcpu=21164 -mgas -mexplicit-relocs
-fno-fast-math -fno-builtin -fno-unsafe-math-optimizations
-mno-soft-float -mfp-trap-mode=sui -mfp-rounding-mode=n
-mtrap-precision=i -mieee-with-inexact -mieee-conformant -MT
libgzip_a-fseeko.o -MD -MP -MF .deps/libgzip_a-fseeko.Tpo -c -o
libgzip_a-fseeko.o `test -f 'fseeko.c' || echo './'`fseeko.c
fseeko.c:111:4: error: #error "Please port gnulib fseeko.c to your
platform! Look at the code in fseeko.c, then report this to bug-gnulib."
make[3]: *** [Makefile:2940: libgzip_a-fseeko.o] Error 1
make[3]: Leaving directory
'/opt/bw/build/gzip-1.14_OpenBSD_alpha_21164.001/lib'
make[2]: *** [Makefile:2266: all] Error 2
make[2]: Leaving directory
'/opt/bw/build/gzip-1.14_OpenBSD_alpha_21164.001/lib'
make[1]: *** [Makefile:2110: all-recursive] Error 1
make[1]: Leaving directory '/opt/bw/build/gzip-1.14_OpenBSD_alpha_21164.001'
make: *** [Makefile:1891: all] Error 2
Why?
This is the code in fseek.c :
#include <config.h>
/* Specification. */
#include <stdio.h>
/* Get off_t. */
#include <unistd.h>
int
fseek (FILE *fp, long offset, int whence)
{
/* Use the replacement fseeko function with all its workarounds. */
return fseeko (fp, (off_t)offset, whence);
}
centauri$ man fseeko
FSEEK(3) Library Functions Manual
FSEEK(3)
NAME
fgetpos, fseek, fseeko, fsetpos, ftell, ftello, rewind – reposition a
stream
SYNOPSIS
#include <stdio.h>
int
fgetpos(FILE *stream, fpos_t *pos);
int
fseek(FILE *stream, long offset, int whence);
int
fseeko(FILE *stream, off_t offset, int whence);
int
fsetpos(FILE *stream, const fpos_t *pos);
long
ftell(FILE *stream);
off_t
ftello(FILE *stream);
void
rewind(FILE *stream);
.
.
.
So what is the problem here ? Non-portable gzip ?
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken