Dear Gzip maintainers,

I am trying to build GNU Gzip 1.9.10-051e (bootstrapped from the Git repository) on a Mac OS machine. But I got several compilation errors that are shown in the attached file. I would appreciate any thoughts on fixing them.

Here is some basic information on the operating system and GCC version.

$ uname -a
Darwin Y.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Nov 13 21:58:35 PST
2017; root:xnu-3248.72.11~1/RELEASE_X86_64 x86_64

$ gcc --version
gcc (MacPorts gcc49 4.9.4_0) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Thank you very much for all the great work on GNU Gzip,
Cheers,
Mohammad
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for nm... nm
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a POSIX-compliant shell... /bin/bash
checking for egrep... /usr/local/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for _LARGEFILE_SOURCE value needed for large files... no
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for features.h... no
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for sys/time.h... yes
checking for limits.h... yes
checking for math.h... yes
checking for sys/mman.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for utime.h... yes
checking for crtdefs.h... no
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking for time.h... yes
checking for _set_invalid_parameter_handler... no
checking for fchdir... yes
checking for fdopendir... yes
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... no
checking for vasnprintf... no
checking for snprintf... yes
checking for fpurge... yes
checking for __fpurge... no
checking for __freading... no
checking for __fseterr... no
checking for fstatat... yes
checking for fsync... yes
checking for getdtablesize... yes
checking for getprogname... yes
checking for getexecname... no
checking for gettimeofday... yes
checking for nanotime... no
checking for lstat... yes
checking for mprotect... yes
checking for openat... yes
checking for strerror_r... yes
checking for __xpg_strerror_r... no
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for strdup... yes
checking for catgets... yes
checking for pipe... yes
checking for unlinkat... yes
checking for utime... yes
checking for futimes... yes
checking for futimesat... no
checking for futimens... no
checking for utimensat... no
checking for lutimes... yes
checking for chown... yes
checking for fchmod... yes
checking for fchown... yes
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking whether // is distinct from /... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... no
checking whether fchdir is declared... yes
checking for working fcntl.h... no (bad O_NOATIME)
checking for pid_t... yes
checking for mode_t... yes
checking for promoted mode_t type... int
checking whether fdatasync is declared... no
checking for stdint.h... yes
checking for inttypes.h... yes
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether byte ordering is bigendian... no
checking whether long double and double are the same... no
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... no
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... yes
checking whether printf supports the 'ls' directive... yes
checking whether printf supports POSIX/XSI format strings with positions...
yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether stdin defaults to large file offsets... yes
checking whether fseeko is declared... yes
checking for fseeko... yes
checking whether fflush works on input streams... no
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether lstat correctly handles trailing slash... no
checking whether ftello is declared... yes
checking for ftello... yes
checking whether ftello works... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking whether getdtablesize is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... no
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking host CPU and C ABI... x86_64
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether limits.h has ULLONG_WIDTH etc.... no
checking for ld used by gcc -std=gnu99... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for the common suffixes of directories in the library search
path... lib,lib
checking whether imported symbols can be declared weak... no
checking whether the linker supports --as-needed... no
checking whether the linker supports --push-state... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking for a sed that does not truncate output... /usr/bin/sed
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memrchr is declared... no
checking for O_CLOEXEC... yes
checking whether strerror(0) succeeds... no
checking whether strerror_r is declared... (cached) yes
checking for nl_langinfo... yes
checking for ptrdiff_t... yes
checking whether C symbols are prefixed with underscore at the linker
level... yes
checking for sigset_t... yes
checking for uid_t in sys/types.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether stdint.h conforms to C99... yes
checking whether stdint.h predates C++11... no
checking whether stdint.h has UINTMAX_WIDTH etc.... no
checking whether strdup is declared... yes
checking for struct timespec in <time.h>... yes
checking whether the utimes function works... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for 64-bit time_t... yes
checking for alloca as a compiler built-in... yes
checking for GNU libc compatible calloc... yes
checking whether this system has an arbitrary file name length limit... yes
checking for library containing clock_gettime... no
checking for clock_gettime... no
checking for clock_settime... no
checking for closedir... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... (cached) no
checking whether dup works... yes
checking whether dup2 works... yes
checking for error_at_line... no
checking whether fflush works on input streams... (cached) no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... yes
checking for fdatasync... yes
checking whether fdopendir is declared... yes
checking whether fdopendir works... yes
checking whether fflush works on input streams... (cached) no
checking whether conversion from 'int' to 'long double' works... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether fpurge is declared... yes
checking whether fpurge works... no
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... yes
checking whether frexpl works... yes
checking for fseeko... (cached) yes
checking whether fflush works on input streams... (cached) no
checking for _fseeki64... no
checking whether fstatat (..., 0) works... yes
checking for ftello... (cached) yes
checking whether ftello works... (cached) yes
checking whether getdtablesize works... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... no
checking whether __progname is defined in default libraries... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for gettimeofday with POSIX signature... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(long double) can be used without linking with
libm... yes
checking whether isnanl works... yes
checking for C compiler flag to ignore unused libraries... none
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... yes
checking whether lseek detects pipes... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking for mempcpy... (cached) no
checking for memrchr... no
checking whether open recognizes a trailing slash... no
checking for opendir... yes
checking whether perror matches strerror... yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... yes
checking whether frexpl() can be used without linking with libm... (cached)
yes
checking whether frexpl works... (cached) yes
checking whether frexpl is declared... (cached) yes
checking whether ldexpl() can be used without linking with libm... yes
checking whether ldexpl works... yes
checking whether ldexpl is declared... yes
checking for raise... yes
checking for sigprocmask... yes
checking for readdir... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether rmdir works... yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... no
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_atimespec.tv_nsec... yes
checking for struct stat.st_birthtimespec.tv_nsec... yes
checking for max_align_t... no
checking whether NULL can be used in arbitrary expressions... yes
checking which flavor of printf attribute matches inttypes macros... system
checking for working stdnoreturn.h... yes
checking for stpcpy... yes
checking for nlink_t... (cached) yes
checking whether unlink honors trailing slashes... no
checking whether unlink of a parent directory fails as it should... no
checking for ptrdiff_t... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for stdint.h... (cached) yes
checking for underline in external names... yes
checking for an assembler syntax supported by this package... no
checking for library containing strerror... none required
checking for an ANSI C-conforming const... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking return type of signal handlers... void
checking for size_t... (cached) yes
checking for off_t... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating tests/Makefile
config.status: creating lib/config.h
config.status: executing depfiles commands
  GEN      version.c
  GEN      version.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in lib
  GEN      alloca.h
  GEN      dirent.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      getopt-cdefs.h
  GEN      limits.h
  GEN      math.h
  GEN      signal.h
  GEN      stddef.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  GEN      wchar.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       cloexec.o
  CC       opendir-safer.o
  CC       dirname-lgpl.o
  CC       basename-lgpl.o
  CC       stripslash.o
  CC       exitfail.o
  CC       creat-safer.o
  CC       open-safer.o
  CC       fd-hook.o
  CC       fd-safer-flag.o
  CC       dup-safer-flag.o
  CC       filenamecat-lgpl.o
  CC       freading.o
  CC       getprogname.o
  CC       gettime.o
  CC       glthread/lock.o
  CC       malloca.o
  CC       math.o
  CC       openat-die.o
  CC       openat-safer.o
  CC       printf-frexp.o
  CC       printf-frexpl.o
  CC       save-cwd.o
  CC       savedir.o
  CC       sig-handler.o
  CC       stat-time.o
  CC       statat.o
  CC       glthread/threadlib.o
  CC       timespec.o
  CC       unistd.o
  CC       dup-safer.o
  CC       fd-safer.o
  CC       pipe-safer.o
  CC       utimens.o
  CC       xmalloc.o
  CC       xalloc-die.o
  CC       xsize.o
  CC       yesno.o
  CC       asnprintf.o
  CC       chdir-long.o
  CC       error.o
  CC       fclose.o
  CC       fflush.o
  CC       fprintf.o
  CC       fpurge.o
  CC       fseek.o
  CC       fseeko.o
  CC       fseterr.o
  CC       fstatat.o
  CC       getopt.o
  CC       getopt1.o
  CC       localtime-buffer.o
  CC       lstat.o
  CC       mempcpy.o
  CC       memrchr.o
  CC       open.o
  CC       openat.o
  CC       openat-proc.o
  CC       perror.o
  CC       printf.o
  CC       printf-args.o
  CC       printf-parse.o
  CC       stat.o
  CC       strerror.o
  CC       strerror-override.o
  CC       strerror_r.o
  CC       unlink.o
  CC       unlinkat.o
  CC       vasnprintf.o
  CC       vfprintf.o
  AR       libgzip.a
/opt/local/bin/ranlib: file: libgzip.a(fd-hook.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(getprogname.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(math.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(sig-handler.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(stat-time.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(statat.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(threadlib.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(timespec.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(unistd.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(xsize.o) has no symbols
/opt/local/bin/ranlib: file: libgzip.a(localtime-buffer.o) has no symbols
ranlib: file: libgzip.a(fd-hook.o) has no symbols
ranlib: file: libgzip.a(getprogname.o) has no symbols
ranlib: file: libgzip.a(math.o) has no symbols
ranlib: file: libgzip.a(sig-handler.o) has no symbols
ranlib: file: libgzip.a(stat-time.o) has no symbols
ranlib: file: libgzip.a(statat.o) has no symbols
ranlib: file: libgzip.a(threadlib.o) has no symbols
ranlib: file: libgzip.a(timespec.o) has no symbols
ranlib: file: libgzip.a(unistd.o) has no symbols
ranlib: file: libgzip.a(xsize.o) has no symbols
ranlib: file: libgzip.a(localtime-buffer.o) has no symbols
Making all in doc
make[3]: Nothing to be done for `all'.
Making all in .
  CC       bits.o
  CC       deflate.o
  CC       gzip.o
In file included from gzip.c:57:0:
./lib/config.h:1318:21: error: expected ')' before '__attribute__'
 #  define _Noreturn __attribute__ ((__noreturn__))
                     ^
In file included from /usr/include/ctype.h:69:0,
                 from gzip.c:58:
/usr/include/unistd.h:429:18: error: expected ',' or ';' before ')' token
 void  _exit(int) __dead2;
                  ^
In file included from gzip.c:57:0:
./lib/config.h:1318:21: error: expected ')' before '__attribute__'
 #  define _Noreturn __attribute__ ((__noreturn__))
                     ^
In file included from /usr/include/ctype.h:69:0,
                 from gzip.c:58:
/usr/include/unistd.h:645:18: error: expected ',' or ';' before ')' token
 void  _Exit(int) __dead2;
                  ^
In file included from gzip.c:57:0:
./lib/config.h:1318:21: error: expected ')' before '__attribute__'
 #  define _Noreturn __attribute__ ((__noreturn__))
                     ^
In file included from /usr/include/ctype.h:69:0,
                 from gzip.c:58:
/usr/include/stdlib.h:128:19: error: expected ',' or ';' before ')' token
 void  abort(void) __dead2;
                   ^
In file included from gzip.c:57:0:
./lib/config.h:1318:21: error: expected ')' before '__attribute__'
 #  define _Noreturn __attribute__ ((__noreturn__))
                     ^
In file included from /usr/include/ctype.h:69:0,
                 from gzip.c:58:
/usr/include/stdlib.h:142:17: error: expected ',' or ';' before ')' token
 void  exit(int) __dead2;
                 ^
In file included from gzip.c:57:0:
./lib/config.h:1318:21: error: expected ')' before '__attribute__'
 #  define _Noreturn __attribute__ ((__noreturn__))
                     ^
In file included from /usr/include/ctype.h:69:0,
                 from gzip.c:58:
/usr/include/stdlib.h:182:17: error: expected ',' or ';' before ')' token
 void _Exit(int) __dead2;
                 ^
make[3]: *** [gzip.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2

Reply via email to