mnurzia / even-better-ls

LS + Icons + Formatting
486 stars 31 forks source link

Cannot make on macOS #4

Open samhh opened 7 years ago

samhh commented 7 years ago

make fails with these errors:

1 warning and 4 errors generated.
make[4]: *** [stpncpy.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

And afterwards the expected files are not found in src/.

benbooth493 commented 7 years ago

:+1: Would like to build this on macOS too.

mnurzia commented 7 years ago

Could you give me more context of the error? I have no access to a Mac.

nicklanng commented 7 years ago

Here's my console output

```sh chmod: ls_colors_generator.py: No such file or directory cp: ls_colors_generator.py: No such file or directory --2017-06-02 11:27:46-- http://ftp.gnu.org/gnu/coreutils/coreutils-8.2.tar.xz Resolving ftp.gnu.org... 2001:4830:134:3::b, 208.118.235.20 Connecting to ftp.gnu.org|2001:4830:134:3::b|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4445672 (4.2M) [application/x-tar] Saving to: ‘coreutils-8.2.tar.xz’ 0K .......... .......... .......... .......... .......... 1% 307K 14s 50K .......... .......... .......... .......... .......... 2% 502K 11s 100K .......... .......... .......... .......... .......... 3% 5.88M 8s 150K .......... .......... .......... .......... .......... 4% 643K 7s 200K .......... .......... .......... .......... .......... 5% 678K 7s 250K .......... .......... .......... .......... .......... 6% 3.48M 6s 300K .......... .......... .......... .......... .......... 8% 677K 6s 350K .......... .......... .......... .......... .......... 9% 3.83M 5s 400K .......... .......... .......... .......... .......... 10% 700K 5s 450K .......... .......... .......... .......... .......... 11% 1005K 5s 500K .......... .......... .......... .......... .......... 12% 1.47M 5s 550K .......... .......... .......... .......... .......... 13% 784K 5s 600K .......... .......... .......... .......... .......... 14% 2.57M 4s 650K .......... .......... .......... .......... .......... 16% 108K 6s 700K .......... .......... .......... .......... .......... 17% 38.0M 6s 750K .......... .......... .......... .......... .......... 18% 586K 6s 800K .......... .......... .......... .......... .......... 19% 6.00M 5s 850K .......... .......... .......... .......... .......... 20% 684K 5s 900K .......... .......... .......... .......... .......... 21% 5.75M 5s 950K .......... .......... .......... .......... .......... 23% 705K 5s 1000K .......... .......... .......... .......... .......... 24% 5.35M 5s 1050K .......... .......... .......... .......... .......... 25% 720K 5s 1100K .......... .......... .......... .......... .......... 26% 4.72M 4s 1150K .......... .......... .......... .......... .......... 27% 742K 4s 1200K .......... .......... .......... .......... .......... 28% 4.29M 4s 1250K .......... .......... .......... .......... .......... 29% 4.72M 4s 1300K .......... .......... .......... .......... .......... 31% 735K 4s 1350K .......... .......... .......... .......... .......... 32% 6.08M 4s 1400K .......... .......... .......... .......... .......... 33% 5.14M 3s 1450K .......... .......... .......... .......... .......... 34% 736K 3s 1500K .......... .......... .......... .......... .......... 35% 5.14M 3s 1550K .......... .......... .......... .......... .......... 36% 754K 3s 1600K .......... .......... .......... .......... .......... 38% 5.10M 3s 1650K .......... .......... .......... .......... .......... 39% 6.42M 3s 1700K .......... .......... .......... .......... .......... 40% 751K 3s 1750K .......... .......... .......... .......... .......... 41% 5.25M 3s 1800K .......... .......... .......... .......... .......... 42% 5.65M 3s 1850K .......... .......... .......... .......... .......... 43% 781K 3s 1900K .......... .......... .......... .......... .......... 44% 4.58M 3s 1950K .......... .......... .......... .......... .......... 46% 6.45M 2s 2000K .......... .......... .......... .......... .......... 47% 804K 2s 2050K .......... .......... .......... .......... .......... 48% 767K 2s 2100K .......... .......... .......... .......... .......... 49% 5.70M 2s 2150K .......... .......... .......... .......... .......... 50% 6.34M 2s 2200K .......... .......... .......... .......... .......... 51% 802K 2s 2250K .......... .......... .......... .......... .......... 52% 4.83M 2s 2300K .......... .......... .......... .......... .......... 54% 5.34M 2s 2350K .......... .......... .......... .......... .......... 55% 6.91M 2s 2400K .......... .......... .......... .......... .......... 56% 791K 2s 2450K .......... .......... .......... .......... .......... 57% 6.28M 2s 2500K .......... .......... .......... .......... .......... 58% 6.00M 2s 2550K .......... .......... .......... .......... .......... 59% 857K 2s 2600K .......... .......... .......... .......... .......... 61% 4.93M 2s 2650K .......... .......... .......... .......... .......... 62% 5.17M 1s 2700K .......... .......... .......... .......... .......... 63% 5.62M 1s 2750K .......... .......... .......... .......... .......... 64% 877K 1s 2800K .......... .......... .......... .......... .......... 65% 4.69M 1s 2850K .......... .......... .......... .......... .......... 66% 5.90M 1s 2900K .......... .......... .......... .......... .......... 67% 1.14M 1s 2950K .......... .......... .......... .......... .......... 69% 2.41M 1s 3000K .......... .......... .......... .......... .......... 70% 5.11M 1s 3050K .......... .......... .......... .......... .......... 71% 4.87M 1s 3100K .......... .......... .......... .......... .......... 72% 1.19M 1s 3150K .......... .......... .......... .......... .......... 73% 2.38M 1s 3200K .......... .......... .......... .......... .......... 74% 2.54M 1s 3250K .......... .......... .......... .......... .......... 76% 5.81M 1s 3300K .......... .......... .......... .......... .......... 77% 1.59M 1s 3350K .......... .......... .......... .......... .......... 78% 3.32M 1s 3400K .......... .......... .......... .......... .......... 79% 3.24M 1s 3450K .......... .......... .......... .......... .......... 80% 2.60M 1s 3500K .......... .......... .......... .......... .......... 81% 5.84M 1s 3550K .......... .......... .......... .......... .......... 82% 1.46M 1s 3600K .......... .......... .......... .......... .......... 84% 3.10M 1s 3650K .......... .......... .......... .......... .......... 85% 2.94M 0s 3700K .......... .......... .......... .......... .......... 86% 4.35M 0s 3750K .......... .......... .......... .......... .......... 87% 1.81M 0s 3800K .......... .......... .......... .......... .......... 88% 3.13M 0s 3850K .......... .......... .......... .......... .......... 89% 3.67M 0s 3900K .......... .......... .......... .......... .......... 90% 2.79M 0s 3950K .......... .......... .......... .......... .......... 92% 4.81M 0s 4000K .......... .......... .......... .......... .......... 93% 1.85M 0s 4050K .......... .......... .......... .......... .......... 94% 3.22M 0s 4100K .......... .......... .......... .......... .......... 95% 3.80M 0s 4150K .......... .......... .......... .......... .......... 96% 3.00M 0s 4200K .......... .......... .......... .......... .......... 97% 4.73M 0s 4250K .......... .......... .......... .......... .......... 99% 5.40M 0s 4300K .......... .......... .......... .......... . 100% 1.35M=3.1s 2017-06-02 11:27:49 (1.38 MB/s) - ‘coreutils-8.2.tar.xz’ saved [4445672/4445672] URL transformed to HTTPS due to an HSTS policy --2017-06-02 11:27:50-- https://raw.githubusercontent.com/illinoisjackson/even-better-ls/master/ls.c Resolving raw.githubusercontent.com... 151.101.16.133 Connecting to raw.githubusercontent.com|151.101.16.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 144972 (142K) [text/plain] Saving to: ‘ls.c’ 0K .......... .......... .......... .......... .......... 35% 2.28M 0s 50K .......... .......... .......... .......... .......... 70% 6.07M 0s 100K .......... .......... .......... .......... . 100% 6.41M=0.04s 2017-06-02 11:27:51 (3.86 MB/s) - ‘ls.c’ saved [144972/144972] 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 for style of include used by make... GNU 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 dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking for gcc option to accept ISO Standard C... (cached) none needed checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether gcc needs -traditional... no checking for ranlib... ranlib checking whether ln -s works... yes checking build system type... x86_64-apple-darwin16.5.0 checking host system type... x86_64-apple-darwin16.5.0 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 for _LARGEFILE_SOURCE value needed for large files... no configure: autobuild project... GNU coreutils configure: autobuild revision... 8.2 configure: autobuild hostname... NkMkBk configure: autobuild timestamp... 20170602T102755Z checking for inline... inline checking for working alloca.h... yes checking for alloca... yes checking for arpa/inet.h... yes checking for sys/socket.h... yes checking for ctype.h... yes checking for dirent.h... yes checking for errno.h... yes checking for libgen.h... yes checking for fcntl.h... yes checking for sys/param.h... yes checking for float.h... yes checking for wctype.h... yes checking for stdio_ext.h... no checking for sys/vfs.h... no checking for sys/fs_types.h... no checking for netdb.h... yes checking for netinet/in.h... yes checking for getopt.h... yes checking for termios.h... yes checking for sys/time.h... yes checking for grp.h... yes checking for iconv.h... yes checking for stdint.h... (cached) yes checking for wchar.h... yes checking for inttypes.h... (cached) yes checking for math.h... yes checking for sys/mman.h... yes checking for unistd.h... (cached) yes checking for sys/statvfs.h... yes checking for sys/select.h... yes checking for utmp.h... yes checking for utmpx.h... yes checking for locale.h... yes checking for selinux/selinux.h... no checking for signal.h... yes checking for stdarg.h... yes checking for stddef.h... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/utsname.h... yes checking for time.h... yes checking for utime.h... yes checking for priv.h... no checking for sys/wait.h... yes checking for sys/ioctl.h... yes checking for hurd.h... no checking for paths.h... yes checking for stropts.h... no checking for sys/resource.h... yes checking for sys/systeminfo.h... no checking for syslog.h... yes checking for pwd.h... yes checking for OS.h... no checking whether the preprocessor supports include_next... yes checking for d_ino member in directory struct... yes checking whether system is Windows or MSDOS... no checking for long file names... yes checking for pathconf... yes checking for btowc... yes checking for canonicalize_file_name... no checking for realpath... yes checking for chown... yes checking for fchown... yes checking for fdopendir... yes checking for dup2... yes checking for faccessat... yes checking for lchmod... yes checking for access... yes checking for fchdir... yes checking for mempcpy... no checking for isblank... yes checking for iswctype... yes checking for mbsrtowcs... yes checking for wmemchr... yes checking for wmemcpy... yes checking for wmempcpy... no checking for __fpending... no checking for fpurge... yes checking for __fpurge... no checking for __freading... no checking for fsync... yes checking for ftruncate... yes checking for fstatfs... yes checking for microuptime... no checking for nanouptime... no checking for flockfile... yes checking for funlockfile... yes checking for __fsetlocking... no checking for tcgetattr... yes checking for tcsetattr... yes checking for gettimeofday... yes checking for nanotime... no checking for link... yes checking for readlink... yes checking for linkat... yes checking for symlink... yes checking for lstat... yes checking for mbsinit... yes checking for mbrtowc... yes checking for mbrlen... yes checking for isascii... yes checking for mprotect... yes checking for getgrouplist... yes checking for fchmod... yes checking for alarm... yes checking for utmpname... no checking for utmpxname... yes checking for wcscoll... yes checking for setenv... yes checking for settimeofday... yes checking for stime... no checking for sigaction... yes checking for sigaltstack... yes checking for siginterrupt... yes checking for tzset... yes checking for strndup... yes checking for symlinkat... yes checking for readlinkat... yes checking for pipe... yes checking for futimes... yes checking for futimesat... no checking for futimens... no checking for utimensat... no checking for lutimes... yes checking for vasnprintf... no checking for wcrtomb... yes checking for iswcntrl... yes checking for wcwidth... yes checking for getegid... yes checking for sleep... yes checking for shutdown... yes checking for usleep... yes checking for wctob... yes checking for strxfrm... yes checking for directio... no checking for nl_langinfo... yes checking for endgrent... yes checking for endpwent... yes checking for iswspace... yes checking for mkfifo... yes checking for setgroups... yes checking for sethostname... yes checking for sync... yes checking for sysctl... yes checking for sysinfo... no checking for tcgetpgrp... yes checking for C/C++ restrict keyword... __restrict checking for nl_langinfo and CODESET... yes checking for a traditional french locale... fr_FR.ISO8859-1 checking whether strtold conforms to C99... yes checking for size_t... yes checking whether malloc, realloc, calloc are POSIX compliant... yes checking whether // is distinct from /... no checking whether realpath works... no checking for uid_t in sys/types.h... yes checking for unistd.h... (cached) yes checking for working chown... yes checking whether chown dereferences symlinks... yes checking whether chown honors trailing slash... no checking whether chown always updates ctime... yes checking whether byte ordering is bigendian... no checking if environ is properly declared... no checking for complete errno.h... yes checking whether strerror_r is declared... yes checking for strerror_r... yes checking whether strerror_r returns char *... no checking whether setregid is declared... yes checking type of array argument to getgroups... gid_t checking for getgroups... yes checking for working getgroups... yes checking whether lstat correctly handles trailing slash... no checking whether unlink honors trailing slashes... no checking for mode_t... yes checking for promoted mode_t type... int checking for fchmodat... yes checking for fstatat... yes checking for mkdirat... yes checking for openat... yes checking for unlinkat... yes checking for fchownat... yes checking whether fchownat works with AT_SYMLINK_NOFOLLOW... yes checking for working fcntl.h... no (bad O_NOATIME) checking for st_dm_mode in struct stat... no checking whether strmode is declared... yes checking for mbstate_t... yes checking whether stdin defaults to large file offsets... yes checking whether is self-contained... yes checking for shutdown... (cached) yes checking whether defines the SHUT_* macros... yes checking for struct sockaddr_storage... yes checking for sa_family_t... yes checking for library containing gethostbyname... none required checking for gethostbyname... yes checking for library containing getservbyname... none required checking for getservbyname... yes checking for IPv4 sockets... yes checking for IPv6 sockets... yes checking for library containing inet_ntop... none required checking whether inet_ntop is declared... yes checking whether getcwd (NULL, 0) allocates memory for result... yes checking whether getcwd is declared... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for compound literals... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_gmtoff... yes checking whether getdelim is declared... yes checking for arithmetic hrtime_t... no checking for long long int... yes checking whether getline is declared... yes checking for ssize_t... yes checking for getopt.h... (cached) yes checking for getopt_long_only... yes checking whether optreset is declared... yes checking whether getopt is POSIX compatible... yes checking for working GNU getopt function... no checking whether getenv is declared... yes checking whether getpass is declared... yes checking whether fflush_unlocked is declared... no checking whether flockfile is declared... yes checking whether fputs_unlocked is declared... no checking whether funlockfile is declared... yes checking whether putc_unlocked is declared... yes checking for struct timeval... yes checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for shared library run path origin... done checking for off_t... yes checking for unsigned long long int... yes checking whether stdint.h conforms to C99... no checking sys/inttypes.h usability... no checking sys/inttypes.h presence... no checking for sys/inttypes.h... no checking sys/bitypes.h usability... no checking sys/bitypes.h presence... no checking for sys/bitypes.h... no checking for bit size of ptrdiff_t... 64 checking for bit size of size_t... 64 checking for bit size of sig_atomic_t... 32 checking for bit size of wchar_t... 32 checking for bit size of wint_t... 32 checking whether sig_atomic_t is signed... yes checking whether wchar_t is signed... yes checking whether wint_t is signed... yes checking for ptrdiff_t integer literal suffix... l checking for size_t integer literal suffix... ul checking for sig_atomic_t integer literal suffix... checking for wchar_t integer literal suffix... checking for wint_t integer literal suffix... checking for inttypes.h... (cached) yes checking whether the inttypes.h PRIxNN macros are broken... no checking whether imaxabs is declared... yes checking whether imaxdiv is declared... yes checking whether strtoimax is declared... yes checking whether strtoumax is declared... yes checking where to find the exponent in a 'float'... word 0 bit 23 checking whether getc_unlocked is declared... yes checking whether we are using the GNU C Library 2.1 or newer... no checking whether imported symbols can be declared weak... 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 stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether mbrtowc and mbstate_t are properly declared... (cached) yes checking for a traditional japanese locale... ja_JP.eucJP checking for a transitional chinese locale... zh_CN.GB18030 checking for a french Unicode locale... fr_FR.UTF-8 checking whether mbrtowc handles incomplete characters... yes checking whether mbrtowc works as well as mbtowc... yes checking whether mbrtowc handles a NULL string argument... yes checking whether mbrtowc has a correct return value... yes checking whether mbrtowc returns 0 when parsing a NUL character... yes checking for mmap... yes checking for MAP_ANONYMOUS... yes checking for memchr... yes checking whether memchr works... yes checking whether memrchr is declared... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether is self-contained... yes checking for library containing setsockopt... none needed checking whether select supports a 0 argument... yes checking for external symbol _system_configuration... no checking for desired default level of POSIX conformance... none-specified checking for rmdir... yes checking whether rmdir works... yes checking whether lstat accepts an empty string... no checking for library containing setfilecon... no checking whether setenv validates arguments... yes checking search.h usability... yes checking search.h presence... yes checking for search.h... yes checking for tsearch... yes checking whether snprintf is declared... yes checking for wchar_t... yes checking whether strdup is declared... yes checking for working strerror function... yes checking whether strndup is declared... yes checking whether strnlen is declared... yes checking whether strsignal is declared... yes checking whether sys_siglist is declared... yes checking whether stat file-mode macros are broken... no checking for struct timespec in ... yes checking whether clearerr_unlocked is declared... yes checking whether feof_unlocked is declared... yes checking whether ferror_unlocked is declared... yes checking whether fgets_unlocked is declared... no checking whether fputc_unlocked is declared... no checking whether fread_unlocked is declared... no checking whether fwrite_unlocked is declared... no checking whether getchar_unlocked is declared... yes checking whether putchar_unlocked is declared... yes checking whether the utimes function works... yes checking for struct utimbuf... yes checking for wint_t... yes checking for inttypes.h... yes checking for stdint.h... yes checking for intmax_t... yes checking for snprintf... yes checking for strnlen... yes checking for wcslen... yes checking for wcsnlen... yes checking for mbrtowc... (cached) yes checking for wcrtomb... (cached) yes checking whether _snprintf is declared... no 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 printf supports infinite 'long double' arguments... no checking whether printf supports the 'a' and 'A' directives... yes 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 POSIX termios... yes checking whether use of TIOCGWINSZ requires termios.h... yes checking whether alarm is declared... yes checking whether ungetc works on arbitrary bytes... yes checking sys/acl.h usability... yes checking sys/acl.h presence... yes checking for sys/acl.h... yes checking for library containing acl_get_file... none required checking for acl_get_file... yes checking for acl_get_fd... yes checking for acl_set_file... yes checking for acl_set_fd... yes checking for acl_free... yes checking for acl_from_mode... no checking for acl_from_text... yes checking for acl_delete_def_file... yes checking for acl_extended_file... no checking for acl_delete_fd_np... yes checking for acl_delete_file_np... yes checking for acl_copy_ext_native... yes checking for acl_create_entry_np... yes checking for acl_to_short_text... no checking for acl_free_text... no checking for working acl_get_file... yes checking acl/libacl.h usability... no checking acl/libacl.h presence... no checking for acl/libacl.h... no checking for acl_entries... no checking for ACL_FIRST_ENTRY... yes checking for ACL_TYPE_EXTENDED... yes checking for alloca as a compiler built-in... yes checking whether to enable assertions... yes checking for atexit... yes checking whether btowc(EOF) is correct... yes checking for GNU libc compatible calloc... no checking whether this system has an arbitrary file name length limit... yes checking for library containing clock_gettime... none required checking for clock_gettime... yes checking for clock_settime... yes checking for d_ino member in directory struct... (cached) yes checking for d_type member in directory struct... 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 dup2 works... yes checking for error_at_line... no checking for euidaccess... no checking for library containing eaccess... no checking for eaccess... no checking whether fdopendir works... no checking whether fflush works on input streams... no checking for struct stat.st_blocks... yes checking for flexible array member... yes checking for working GNU fnmatch... no checking whether isblank is declared... yes checking whether fopen recognizes a trailing slash... yes checking whether __fpending is declared... no checking how to determine the number of pending output bytes on a stream... fp->_p - fp->_bf._base checking whether fpurge is declared... yes checking whether fpurge works... no checking whether frexp() can be used without linking with libm... yes checking whether frexp works... yes checking whether frexpl() can be used without linking with libm... yes checking whether frexpl works... yes checking whether frexpl is declared... yes checking for fseeko... yes checking for sys/mount.h... yes configure: checking how to get file system space usage checking for statvfs function (SVR4)... yes checking dustat.h usability... no checking dustat.h presence... no checking for dustat.h... no checking sys/fs/s5param.h usability... no checking sys/fs/s5param.h presence... no checking for sys/fs/s5param.h... no checking sys/filsys.h usability... no checking sys/filsys.h presence... no checking for sys/filsys.h... no checking sys/statfs.h usability... no checking sys/statfs.h presence... no checking for sys/statfs.h... no checking for statfs that truncates block counts... no checking for ftello... yes checking for fchmodat... (cached) yes checking for fstatat... (cached) yes checking for mkdirat... (cached) yes checking for openat... (cached) yes checking for unlinkat... (cached) yes checking for fchownat... (cached) yes checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes checking for struct statfs.f_type... no configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo checking for library containing getaddrinfo... none required checking for getaddrinfo... yes checking for gai_strerror (possibly via ws2tcpip.h)... yes checking for struct sockaddr.sa_len... yes checking whether getaddrinfo is declared... yes checking whether freeaddrinfo is declared... yes checking whether gai_strerror is declared... yes checking whether getnameinfo is declared... yes checking for struct addrinfo... yes checking whether getcwd handles long file names properly... no, but it is partly working checking for getpagesize... yes checking whether getcwd aborts when 4k < cwd_length < 16k... no checking for struct tm.tm_zone... yes checking for getdelim... yes checking whether getgroups handles negative values... yes checking for gethostname... yes checking for HOST_NAME_MAX... 256 checking whether gethrtime is declared... no checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined... yes checking for getline... yes checking for working getline function... yes checking for getloadavg... yes checking for pstat_getdynamic... no checking for kstat_open in -lkstat... no checking for perfstat_cpu_total in -lperfstat... no checking for getloadavg... yes checking whether getloadavg requires setgid... no checking sys/loadavg.h usability... no checking sys/loadavg.h presence... no checking for sys/loadavg.h... no checking whether getloadavg is declared... yes checking for getpagesize... (cached) yes checking whether __fsetlocking is declared... no checking for gettimeofday with POSIX signature... yes checking whether gettimeofday clobbers localtime buffer... no checking for getusershell... yes checking for group_member... no checking host operating system... Darwin checking for library containing gethostbyname... (cached) none required checking for gethostbyname... (cached) yes checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... -liconv checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for library containing inet_ntop... (cached) none required checking whether inet_ntop is declared... (cached) yes checking whether the compiler generally respects inline... yes checking whether inttypes.h conforms to C99... no checking whether INT32_MAX < INTMAX_MAX... yes checking whether INT64_MAX == LONG_MAX... yes checking whether UINT32_MAX < UINTMAX_MAX... yes checking whether UINT64_MAX == ULONG_MAX... yes checking for isapipe... no checking whether pipes are FIFOs (and for their link count)... yes (0) checking whether isnan(double) can be used without linking with libm... yes checking whether isnan(float) can be used without linking with libm... no checking where to find the exponent in a 'float'... (cached) word 0 bit 23 checking whether isnan(long double) can be used without linking with libm... no checking where to find the exponent in a 'long double'... word 2 bit 0 checking for lchown... yes checking for flag to ignore unused libraries... none checking whether link handles trailing slash correctly... no checking whether link(2) dereferences a symlink... yes checking whether linkat(,AT_SYMLINK_FOLLOW) works... yes checking for pthread_rwlock_t... 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 whether mbrtowc handles incomplete characters... (cached) yes checking whether mbrtowc works as well as mbtowc... (cached) yes checking whether mbrtowc handles a NULL string argument... (cached) yes checking whether mbrtowc has a correct return value... (cached) yes checking whether mbrtowc returns 0 when parsing a NUL character... (cached) yes checking whether mbrtowc handles incomplete characters... (cached) yes checking whether mbrtowc works as well as mbtowc... (cached) yes checking whether mbrtowc handles incomplete characters... (cached) yes checking whether mbrtowc works as well as mbtowc... (cached) yes checking whether mbsrtowcs works... yes checking whether mbswidth is declared in ... no checking for mbstate_t... (cached) yes checking for working memcmp... yes checking for working strcoll... yes checking for memcpy... yes checking for memmove... yes checking for mempcpy... (cached) no checking for memrchr... no checking for memset... yes checking whether mkdir handles trailing slash... yes checking whether mkdir handles trailing dot... yes checking for working mkstemp... yes checking for working mktime... no checking for listmntent... no checking for getmntinfo... yes checking for sys/ucred.h... yes checking for sys/mount.h... (cached) yes checking mntent.h usability... no checking mntent.h presence... no checking for mntent.h... no checking for sys/fs_types.h... (cached) no checking for struct fsstat.f_fstypename... no checking for library containing getmntent... no checking for getmntent... no checking for listmntent of Cray/Unicos-9... no checking for mntctl function and struct vmount... no checking for getfsstat function... no checking for FIXME existence of three headers... no checking for getmntinfo function... yes checking whether getmntinfo returns statvfs structures... no checking sys/mntent.h usability... no checking sys/mntent.h presence... no checking for sys/mntent.h... no checking for struct statfs.f_fstypename... yes checking for library containing nanosleep... none required checking for working nanosleep... no (mishandles large arguments) checking whether is self-contained... yes checking for sys/pstat.h... no checking for sys/sysmp.h... no checking for sys/param.h... (cached) yes checking for sys/sysctl.h... yes checking for sched_getaffinity... no checking for sched_getaffinity_np... no checking for pstat_getdynamic... (cached) no checking for sysmp... no checking for sysctl... (cached) yes checking for obstacks... no checking whether open recognizes a trailing slash... no checking for fchmodat... (cached) yes checking for fstatat... (cached) yes checking for mkdirat... (cached) yes checking for openat... (cached) yes checking for unlinkat... (cached) yes checking for fchownat... (cached) yes checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes checking for perl5.005 or newer... yes checking for sys/pstat.h... (cached) no checking for sys/sysmp.h... (cached) no checking for sys/sysinfo.h... no checking for machine/hal_sysinfo.h... no checking for sys/table.h... no checking for sys/param.h... (cached) yes checking for sys/systemcfg.h... no checking for sys/sysctl.h... (cached) yes checking for pstat_getstatic... no checking for pstat_getdynamic... (cached) no checking for sysmp... (cached) no checking for getsysinfo... no checking for sysctl... (cached) yes checking for table... no checking for a shell that conforms to POSIX... /bin/sh checking whether frexp can be used without linking with libm... (cached) 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 getppriv... no checking whether program_invocation_name is declared... no checking whether program_invocation_short_name is declared... no checking for putenv compatible with GNU and SVID... no checking for raise... yes checking whether readlink signature is correct... yes checking whether readlink handles trailing slash correctly... no checking whether getutent is declared... no checking for struct utmpx.ut_user... yes checking for struct utmp.ut_user... no checking for struct utmpx.ut_name... no checking for struct utmp.ut_name... yes checking for struct utmpx.ut_type... yes checking for struct utmp.ut_type... no checking for struct utmpx.ut_pid... yes checking for struct utmp.ut_pid... no checking for struct utmpx.ut_id... yes checking for struct utmp.ut_id... no checking for struct utmpx.ut_exit... no checking for struct utmp.ut_exit... no checking for struct utmpx.ut_exit.ut_exit... no checking for struct utmp.ut_exit.ut_exit... no checking for struct utmpx.ut_exit.e_exit... no checking for struct utmp.ut_exit.e_exit... no checking for struct utmpx.ut_exit.ut_termination... no checking for struct utmp.ut_exit.ut_termination... no checking for struct utmpx.ut_exit.e_termination... no checking for struct utmp.ut_exit.e_termination... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for working re_compile_pattern... no checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no checking whether isblank is declared... (cached) yes checking whether rename honors trailing slash on destination... no checking whether rename honors trailing slash on source... no checking whether rename manages hard links correctly... yes checking whether rename manages existing destinations correctly... yes checking for rmdir... (cached) yes checking whether rmdir works... (cached) yes checking for rpmatch... no checking for nl_langinfo and YESEXPR... yes checking whether select supports a 0 argument... (cached) yes checking selinux/flask.h usability... no checking selinux/flask.h presence... no checking for selinux/flask.h... no checking for selinux/selinux.h... (cached) no checking selinux/context.h usability... no checking selinux/context.h presence... no checking for selinux/context.h... no checking for library containing getservbyname... (cached) none required checking for getservbyname... (cached) yes checking for sig2str... no checking for struct sigaction.sa_sigaction... yes checking for volatile sig_atomic_t... yes checking for signbit macro... yes checking for signbit compiler built-ins... yes checking for sigprocmask... yes checking for stdint.h... (cached) yes checking for SIZE_MAX... yes checking for snprintf... (cached) yes checking whether snprintf respects a size of 1... yes checking for library containing setsockopt... (cached) none needed checking for socklen_t... yes checking for ssize_t... (cached) yes checking whether stat handles trailing slashes on directories... 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 va_copy... yes checking whether NULL can be used in arbitrary expressions... yes checking whether stdint.h conforms to C99... (cached) no checking for sys/inttypes.h... (cached) no checking for sys/bitypes.h... (cached) no checking for bit size of ptrdiff_t... (cached) 64 checking for bit size of size_t... (cached) 64 checking for bit size of sig_atomic_t... (cached) 32 checking for bit size of wchar_t... (cached) 32 checking for bit size of wint_t... (cached) 32 checking whether sig_atomic_t is signed... (cached) yes checking whether wchar_t is signed... (cached) yes checking whether wint_t is signed... (cached) yes checking for ptrdiff_t integer literal suffix... (cached) l checking for size_t integer literal suffix... (cached) ul checking for sig_atomic_t integer literal suffix... (cached) checking for wchar_t integer literal suffix... (cached) checking for wint_t integer literal suffix... (cached) checking for random.h... no checking for struct random_data... no checking for stpcpy... yes checking for working stpncpy... no checking for strcspn... yes checking for strdup... yes checking for working strndup... yes checking for working strnlen... yes checking for strpbrk... yes checking for strsignal... yes checking whether strsignal always returns a string... yes checking for working strtod... yes checking whether strtod obeys C99... yes checking whether defines strtoimax as a macro... no checking for strtoimax... yes checking for strtol... yes checking for strtoll... yes checking for strtoul... yes checking for strtoull... yes checking whether defines strtoumax as a macro... no checking for strtoumax... yes checking for strverscmp... no checking whether symlink handles trailing slash correctly... no checking whether is self-contained... (cached) yes checking whether is self-contained... (cached) yes checking for shutdown... (cached) yes checking whether defines the SHUT_* macros... (cached) yes checking for struct sockaddr_storage... (cached) yes checking for sa_family_t... (cached) yes checking for nlink_t... yes checking whether localtime_r is compatible with its POSIX signature... yes checking whether tzset clobbers localtime buffer... no checking for uname... yes checking whether unlink honors trailing slashes... (cached) no checking whether a running program can be unlinked... yes checking for unsetenv... yes checking for unsetenv() return type... int checking whether unsetenv works on duplicates... yes checking for /proc/uptime... no checking for ptrdiff_t... yes checking for vasprintf... yes checking for vasprintf... (cached) yes checking for ptrdiff_t... (cached) yes checking for ptrdiff_t... (cached) yes checking whether is standalone... yes checking whether mbrtowc handles incomplete characters... (cached) yes checking whether mbrtowc works as well as mbtowc... (cached) yes checking whether wcrtomb return value is correct... yes checking whether iswcntrl works... yes checking whether wcwidth is declared... yes checking whether wcwidth works reasonably in UTF-8 locales... no checking whether use of TIOCGWINSZ requires sys/ioctl.h... no checking whether use of TIOCGWINSZ requires termios.h... (cached) yes checking whether use of struct winsize requires sys/ptem.h... no checking for stdint.h... (cached) yes checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a turkish Unicode locale... none checking whether byte ordering is bigendian... (cached) no checking for library containing inet_pton... none required checking whether inet_pton is declared... yes checking whether byte ordering is bigendian... (cached) no checking where to find the exponent in a 'double'... word 1 bit 20 checking where to find the exponent in a 'float'... (cached) word 0 bit 23 checking where to find the exponent in a 'long double'... (cached) word 2 bit 0 checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a traditional japanese locale... (cached) ja_JP.eucJP checking for a transitional chinese locale... (cached) zh_CN.GB18030 checking for a turkish Unicode locale... (cached) none checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a traditional japanese locale... (cached) ja_JP.eucJP checking for a transitional chinese locale... (cached) zh_CN.GB18030 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a transitional chinese locale... (cached) zh_CN.GB18030 checking for mmap... (cached) yes checking for MAP_ANONYMOUS... yes checking for mmap... (cached) yes checking for MAP_ANONYMOUS... yes checking for mmap... (cached) yes checking for MAP_ANONYMOUS... yes checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking whether sleep is declared... yes checking for working sleep... yes checking for wchar_t... (cached) yes checking for wint_t... (cached) yes checking whether declares ioctl... yes checking for pthread_atfork... yes checking for useconds_t... yes checking whether usleep allows large arguments... yes checking for a traditional french locale... (cached) fr_FR.ISO8859-1 checking for a french Unicode locale... (cached) fr_FR.UTF-8 checking for a traditional japanese locale... (cached) ja_JP.eucJP checking for a transitional chinese locale... (cached) zh_CN.GB18030 checking whether wctob works... yes checking whether wctob is declared... yes checking for sched_yield in -lrt... no checking for sched_yield in -lposix4... no checking for library containing strerror... none required checking for function prototypes... yes checking for string.h... (cached) yes checking for working volatile... yes checking for sys/sysctl.h... (cached) yes checking for pid_t... yes checking whether sys/types.h defines makedev... yes checking whether time.h and sys/time.h may both be included... yes checking whether geteuid is declared... yes checking whether getlogin is declared... yes checking whether getuid is declared... yes checking whether getgrgid is declared... yes checking whether getpwuid is declared... yes checking whether ttyname is declared... yes checking attr/error_context.h usability... no checking attr/error_context.h presence... no checking for attr/error_context.h... no checking attr/libattr.h usability... no checking attr/libattr.h presence... no checking for attr/libattr.h... no configure: WARNING: libattr development library was not found or not usable. configure: WARNING: GNU coreutils will be built without xattr support. checking for library containing attr_copy_file... no checking for attr_copy_file... no checking for inline... (cached) inline checking for struct stat.st_author... no checking for ino_t... yes checking for major_t... no checking for minor_t... no checking for matchpathcon_init_prefix... no checking for inotify_init... no checking nfs/vfs.h usability... no checking nfs/vfs.h presence... no checking for nfs/vfs.h... no checking for struct statvfs.f_basetype... no checking for struct statvfs.f_fstypename... no checking for struct statfs.f_namelen... no checking for struct statfs.f_type... (cached) no checking for library containing fdatasync... none required checking for fdatasync... yes checking for cap_get_file in -lcap... no configure: WARNING: libcap library was not found or not usable. configure: WARNING: GNU coreutils will be built without capability support. checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for chroot... yes checking for gethostid... yes checking whether use of struct winsize requires sys/ptem.h... (cached) no checking whether localtime caches TZ... no checking for initgroups... yes checking for syslog... yes checking for 3-argument setpriority function... yes checking ut_host in struct utmp... yes checking for sysctl... (cached) yes checking for sys/sysctl.h... (cached) yes checking whether we can get the system boot time... yes checking POSIX termios... (cached) yes checking whether use of TIOCGWINSZ requires sys/ioctl.h... (cached) no checking whether termios.h needs _XOPEN_SOURCE... no checking c_line in struct termios... no checking whether use of struct winsize requires sys/ptem.h... (cached) no checking whether use of TIOCGWINSZ requires termios.h... (cached) yes checking whether strsignal is declared... (cached) yes checking whether sys_siglist is declared... (cached) yes checking whether _sys_siglist is declared... no checking whether __sys_siglist is declared... no checking for main in -lypsec... no checking for main in -lldgc... no checking for library containing yp_match... none required checking for library containing getspnam... no checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking for struct spwd.sp_pwdp... no checking for getspnam... no checking for library containing crypt... none required checking for library containing __gmpz_init... no configure: WARNING: libgmp development library was not found or not usable. configure: WARNING: GNU coreutils will be built without GMP support. checking whether this is an ELF system... no checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for msgmerge... no checking for CFPreferencesCopyAppValue... yes checking for CFLocaleCopyCurrent... yes checking for GNU gettext in libc... no checking for iconv... (cached) yes checking for working iconv... (cached) yes checking how to link with libiconv... -liconv checking for GNU gettext in libintl... no checking whether to use NLS... no checking for a traditional french locale... (cached) fr_FR.ISO8859-1 configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating lib/Makefile config.status: creating man/Makefile config.status: creating po/Makefile.in config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating gnulib-tests/Makefile config.status: creating lib/config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in lib GEN alloca.h GEN link-warning.h GEN arpa/inet.h GEN configmake.h GEN dirent.h GEN fcntl.h GEN fnmatch.h GEN getopt.h GEN inttypes.h GEN math.h GEN selinux/selinux.h GEN selinux/context.h GEN signal.h GEN stdint.h GEN stdio.h GEN stdlib.h GEN string.h GEN sys/stat.h GEN time.h GEN unistd.h GEN wchar.h /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive CC set-mode-acl.o CC copy-acl.o CC file-has-acl.o CC areadlink.o CC areadlink-with-size.o CC areadlinkat.o CC argv-iter.o CC base64.o CC c-ctype.o CC c-strcasecmp.o CC c-strncasecmp.o CC close-hook.o CC diacrit.o CC file-set.o CC filevercmp.o CC freadahead.o CC freading.o CC freadptr.o CC freadseek.o CC fseterr.o CC full-read.o CC full-write.o CC getdate.o getdate.y:827:17: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] if (24 * 60 < abs (n_minutes)) ^ getdate.y:827:17: note: use function 'labs' instead if (24 * 60 < abs (n_minutes)) ^~~ labs getdate.y:1422:46: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] sprintf (tz1buf, "XXX%s%ld:%02d", "-" + (time_zone < 0), ~~~~^~~~~~~~~~~~~~~~~ /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ getdate.y:1422:46: note: use array indexing to silence this warning sprintf (tz1buf, "XXX%s%ld:%02d", "-" + (time_zone < 0), ^ & [ /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ 2 warnings generated. CC hash-pjw.o CC hash-triple.o CC linebuffer.o CC localcharset.o CC glthread/lock.o CC malloca.o CC mbchar.o CC mbsalign.o CC mbscasecmp.o CC mbslen.o CC mbsstr.o CC mbswidth.o CC memchr2.o CC memcmp2.o CC nproc.o CC openat-die.o CC printf-frexp.o CC printf-frexpl.o CC priv-set.o CC progname.o CC propername.o CC randint.o CC randperm.o CC randread.o CC rand-isaac.o CC readtokens0.o CC savewd.o CC sockets.o CC striconv.o CC strnlen1.o CC glthread/threadlib.o CC glthread/tls.o CC trim.o CC unicodeio.o CC unistr/u8-uctomb.o CC unistr/u8-uctomb-aux.o CC uniwidth/width.o CC verror.o CC version-etc.o CC version-etc-fsf.o CC xalloc-die.o CC xfreopen.o CC xgethostname.o CC xmemcoll.o CC xprintf.o CC xreadlink.o CC xstriconv.o CC xstrndup.o CC xstrtoimax.o In file included from xstrtoimax.c:6: ./xstrtol.c:49:40: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (TYPE_SIGNED (__strtol_t) && *x < STRTOL_T_MINIMUM / scale_factor) ^~~~~~~~~~~~~~~~ xstrtoimax.c:4:26: note: expanded from macro 'STRTOL_T_MINIMUM' #define STRTOL_T_MINIMUM INTMAX_MIN ^~~~~~~~~~ ./stdint.h:418:22: note: expanded from macro 'INTMAX_MIN' # define INTMAX_MIN INT64_MIN ^~~~~~~~~ ./stdint.h:317:37: note: expanded from macro 'INT64_MIN' # define INT64_MIN (- INTMAX_C (1) << 63) ~~~~~~~~~~~~~~ ^ In file included from xstrtoimax.c:6: ./xstrtol.c:51:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] *x = STRTOL_T_MINIMUM; ^~~~~~~~~~~~~~~~ xstrtoimax.c:4:26: note: expanded from macro 'STRTOL_T_MINIMUM' #define STRTOL_T_MINIMUM INTMAX_MIN ^~~~~~~~~~ ./stdint.h:418:22: note: expanded from macro 'INTMAX_MIN' # define INTMAX_MIN INT64_MIN ^~~~~~~~~ ./stdint.h:317:37: note: expanded from macro 'INT64_MIN' # define INT64_MIN (- INTMAX_C (1) << 63) ~~~~~~~~~~~~~~ ^ 2 warnings generated. CC xstrtoumax.o CC xvasprintf.o CC xasprintf.o CC buffer-lcm.o CC xmemxfrm.o CC acl_entries.o CC argmatch.o CC asnprintf.o CC asprintf.o CC backupfile.o CC basename.o CC basename-lgpl.o CC c-strtod.o CC c-strtold.o CC calloc.o CC canon-host.o CC canonicalize.o CC chdir-long.o CC chown.o CC cloexec.o CC close-stream.o CC closein.o CC closeout.o CC creat-safer.o CC cycle-check.o CC dirchownmod.o CC dirname.o CC dirname-lgpl.o CC dup-safer.o CC error.o CC euidaccess.o CC exclude.o CC exitfail.o CC fchownat.o CC fd-safer.o CC fdopendir.o CC fflush.o CC file-type.o CC filemode.o CC filenamecat.o CC filenamecat-lgpl.o CC fnmatch.o CC fopen-safer.o CC fpending.o CC fprintftime.o CC fpurge.o CC freopen-safer.o CC fseeko.o CC fstatat.o CC fsusage.o CC fts.o CC getcwd.o CC gethrxtime.o CC getndelim2.o getndelim2.c:164:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (GETNDELIM2_MAXIMUM < newsize - offset) ^~~~~~~~~~~~~~~~~~ getndelim2.c:64:29: note: expanded from macro 'GETNDELIM2_MAXIMUM' #define GETNDELIM2_MAXIMUM (PTRDIFF_MAX < SSIZE_MAX ? PTRDIFF_MAX : SSIZE_MAX) ^~~~~~~~~~~ ./stdint.h:449:5: note: expanded from macro 'PTRDIFF_MAX' _STDINT_MAX (1, 64, 0l) ^~~~~~~~~~~~~~~~~~~~~~~ ./stdint.h:103:8: note: expanded from macro '_STDINT_MAX' ? ~ _STDINT_MIN (signed, bits, zero) \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./stdint.h:99:31: note: expanded from macro '_STDINT_MIN' ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero)) ~~~~~~~~~~~~~~ ^ getndelim2.c:166:37: warning: shifting a negative signed value is undefined [-Wshift-negative-value] size_t newsizemax = offset + GETNDELIM2_MAXIMUM + 1; ^~~~~~~~~~~~~~~~~~ getndelim2.c:64:29: note: expanded from macro 'GETNDELIM2_MAXIMUM' #define GETNDELIM2_MAXIMUM (PTRDIFF_MAX < SSIZE_MAX ? PTRDIFF_MAX : SSIZE_MAX) ^~~~~~~~~~~ ./stdint.h:449:5: note: expanded from macro 'PTRDIFF_MAX' _STDINT_MAX (1, 64, 0l) ^~~~~~~~~~~~~~~~~~~~~~~ ./stdint.h:103:8: note: expanded from macro '_STDINT_MAX' ? ~ _STDINT_MIN (signed, bits, zero) \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./stdint.h:99:31: note: expanded from macro '_STDINT_MIN' ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero)) ~~~~~~~~~~~~~~ ^ 2 warnings generated. CC getopt.o CC getopt1.o CC getpass.o CC gettime.o CC getugroups.o CC group-member.o CC hard-locale.o CC hash.o CC human.o CC i-ring.o CC idcache.o CC imaxtostr.o CC isapipe.o CC isnanf.o CC isnanl.o CC lchown.o CC link.o CC long-options.o CC lstat.o CC md5.o CC memcasecmp.o CC memcoll.o CC mempcpy.o CC memrchr.o CC mgetgroups.o mgetgroups.c:90:45: warning: passing 'gid_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] ng = getgrouplist (username, gid, g, &max_n_groups); ^ /usr/include/unistd.h:653:43: note: passing argument to parameter here int getgrouplist(const char *, int, int *, int *); ^ 1 warning generated. CC mkancesdirs.o CC mkdir-p.o CC mkstemp-safer.o CC mktime.o mktime.c:222:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] return (*t < TIME_T_MIDPOINT ^~~~~~~~~~~~~~~ mktime.c:102:31: note: expanded from macro 'TIME_T_MIDPOINT' #define TIME_T_MIDPOINT (SHR (TIME_T_MIN + TIME_T_MAX, 1) + 1) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mktime.c:97:21: note: expanded from macro 'TIME_T_MIN' # define TIME_T_MIN TYPE_MINIMUM (time_t) ^ mktime.c:90:12: note: expanded from macro 'TYPE_MINIMUM' : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) ^ mktime.c:60:7: note: expanded from macro 'SHR' ? (a) >> (b) \ ^ mktime.c:222:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] return (*t < TIME_T_MIDPOINT ^~~~~~~~~~~~~~~ mktime.c:102:44: note: expanded from macro 'TIME_T_MIDPOINT' #define TIME_T_MIDPOINT (SHR (TIME_T_MIN + TIME_T_MAX, 1) + 1) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ mktime.c:100:21: note: expanded from macro 'TIME_T_MAX' # define TIME_T_MAX TYPE_MAXIMUM (time_t) ^ mktime.c:94:15: note: expanded from macro 'TYPE_MAXIMUM' : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) ^ mktime.c:60:7: note: expanded from macro 'SHR' ? (a) >> (b) \ ^ mktime.c:223:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] ? (*t <= TIME_T_MIN + 1 ? *t + 1 : TIME_T_MIN) ^~~~~~~~~~ mktime.c:97:21: note: expanded from macro 'TIME_T_MIN' # define TIME_T_MIN TYPE_MINIMUM (time_t) ^~~~~~~~~~~~~~~~~~~~~ mktime.c:90:12: note: expanded from macro 'TYPE_MINIMUM' : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) ~~~~~~~ ^ mktime.c:223:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value] ? (*t <= TIME_T_MIN + 1 ? *t + 1 : TIME_T_MIN) ^~~~~~~~~~ mktime.c:97:21: note: expanded from macro 'TIME_T_MIN' # define TIME_T_MIN TYPE_MINIMUM (time_t) ^~~~~~~~~~~~~~~~~~~~~ mktime.c:90:12: note: expanded from macro 'TYPE_MINIMUM' : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) ~~~~~~~ ^ mktime.c:224:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] : (TIME_T_MAX - 1 <= *t ? *t - 1 : TIME_T_MAX)); ^~~~~~~~~~ mktime.c:100:21: note: expanded from macro 'TIME_T_MAX' # define TIME_T_MAX TYPE_MAXIMUM (time_t) ^~~~~~~~~~~~~~~~~~~~~ mktime.c:94:15: note: expanded from macro 'TYPE_MAXIMUM' : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) ~~~~~~~ ^ mktime.c:224:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value] : (TIME_T_MAX - 1 <= *t ? *t - 1 : TIME_T_MAX)); ^~~~~~~~~~ mktime.c:100:21: note: expanded from macro 'TIME_T_MAX' # define TIME_T_MAX TYPE_MAXIMUM (time_t) ^~~~~~~~~~~~~~~~~~~~~ mktime.c:94:15: note: expanded from macro 'TYPE_MAXIMUM' : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) ~~~~~~~ ^ mktime.c:344:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3) ^~~~~~~~~~ mktime.c:100:21: note: expanded from macro 'TIME_T_MAX' # define TIME_T_MAX TYPE_MAXIMUM (time_t) ^~~~~~~~~~~~~~~~~~~~~ mktime.c:94:15: note: expanded from macro 'TYPE_MAXIMUM' : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) ~~~~~~~ ^ 7 warnings generated. CC modechange.o CC mountlist.o CC mpsort.o CC nanosleep.o CC obstack.o CC offtostr.o CC open.o CC open-safer.o CC openat.o CC openat-proc.o CC openat-safer.o CC opendir-safer.o CC physmem.o CC pipe-safer.o CC posixtm.o CC posixver.o CC printf-args.o CC printf-parse.o CC putenv.o CC quote.o CC quotearg.o CC readlink.o CC readtokens.o CC readutmp.o CC regex.o CC remove.o CC rename.o CC root-dev-ino.o CC rpmatch.o CC safe-read.o CC safe-write.o CC same.o CC save-cwd.o CC savedir.o CC selinux-at.o CC settime.o CC sha1.o CC sha256.o CC sha512.o CC sig2str.o CC stat.o CC stpncpy.o stpncpy.c:33:1: error: expected parameter declarator __stpncpy (char *dest, const char *src, size_t n) ^ stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:44: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz' #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0) ^ /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL' # define _USE_FORTIFY_LEVEL 2 ^ stpncpy.c:33:1: error: expected ')' stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:44: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ /usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz' #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0) ^ /usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL' # define _USE_FORTIFY_LEVEL 2 ^ stpncpy.c:33:1: note: to match this '(' stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:44: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ /usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz' #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0) ^ stpncpy.c:33:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] __stpncpy (char *dest, const char *src, size_t n) ^ stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:44: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ /usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz' #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0) ^ stpncpy.c:33:1: error: conflicting types for '__builtin___stpncpy_chk' stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:3: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ stpncpy.c:33:1: note: '__builtin___stpncpy_chk' is a builtin with type 'char *(char *, const char *, unsigned long, unsigned long)' stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:3: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ stpncpy.c:33:1: error: definition of builtin function '__builtin___stpncpy_chk' __stpncpy (char *dest, const char *src, size_t n) ^ stpncpy.c:27:20: note: expanded from macro '__stpncpy' # define __stpncpy stpncpy ^ /usr/include/secure/_string.h:96:3: note: expanded from macro 'stpncpy' __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest)) ^ 1 warning and 4 errors generated. make[4]: *** [stpncpy.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 mv: rename ls to /usr/bin/ls-i: No such file or directory mv: rename dir to /usr/bin/dir-i: No such file or directory mv: rename vdir to /usr/bin/vdir-i: No such file or directory ```
Noammac commented 7 years ago

Try using gmake instead of make

nicklanng commented 7 years ago

Tried it, didn't make any difference. The problem seems to be that stpncpy doesn't exist in our core libs? There is stpcpy though, I think.

joesanford commented 7 years ago

To get past the error on running make, configure needs to be run with the argument ./configure gl_cv_func_stpncpy=yes.

Additionally, the install script will need to be updated to write to /usr/local/bin/ as only the system can write to /usr/bin/ on macOS. root doesn't even have the ability to do that.

I still don't have it 100%, but I'm also trying to get it to work with fish, my preferred shell. Thought I'd share what I found so far to get this building on macOS.

I should also note that I do not have icons or coloring working with bash yet, either.

nicklanng commented 7 years ago

Great, I had the same result. Built fine, but produced a standard white ls output. Progress!

michaelmior commented 6 years ago

@nicklanng Did you ever figure this out? I'm at the same point where ls builds, but I just get white output.

nicklanng commented 5 years ago

@nicklanng Did you ever figure this out? I'm at the same point where ls builds, but I just get white output.

I'm afraid not, I'm hoping some brave soul will eventually get it all working on Mac!