Describe the bug

I am installing version 6.0.16 from source on new Mac OS 13.5.2

replication.c:1236:31: error: variable has incomplete type 'struct stat64'
            struct redis_stat buf;
                              ^
replication.c:1236:20: note: forward declaration of 'struct stat64'
            struct redis_stat buf;
                   ^
./config.h:45:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
                   ^
replication.c:1283:21: error: call to undeclared function 'fstat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                    redis_fstat(slave->repldbfd,&buf) == -1) {
                    ^
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

To reproduce

cd ~
curl https://download.redis.io/releases/redis-6.0.16.tar.gz -o "redis-6.0.16.tar.gz"
tar xzf redis-6.0.16.tar.gz
cd redis-6.0.16
make

Expected behavior

Install should work.

Additional information

Output of make is:

cd src && /Library/Developer/CommandLineTools/usr/bin/make all
/bin/sh: line 0: cd: src: No such file or directory
make: *** [all] Error 1
kevinfox@Kevins-MacBook-Pro redis-6.0.16 % cd ..
kevinfox@Kevins-MacBook-Pro ~ % tar xzf redis-6.0.16.tar.gz
kevinfox@Kevins-MacBook-Pro ~ % cd redis-6.0.16
kevinfox@Kevins-MacBook-Pro redis-6.0.16 % make
cd src && /Library/Developer/CommandLineTools/usr/bin/make all
    CC Makefile.dep
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep dict-benchmark
rm -f adlist.d quicklist.d ae.d anet.d dict.d server.d sds.d zmalloc.d lzf_c.d lzf_d.d pqsort.d zipmap.d sha1.d ziplist.d release.d networking.d util.d object.d db.d replication.d rdb.d t_string.d t_list.d t_set.d t_zset.d t_hash.d config.d aof.d pubsub.d multi.d debug.d sort.d intset.d syncio.d cluster.d crc16.d endianconv.d slowlog.d scripting.d bio.d rio.d rand.d memtest.d crcspeed.d crc64.d bitops.d sentinel.d notify.d setproctitle.d blocked.d hyperloglog.d latency.d sparkline.d redis-check-rdb.d redis-check-aof.d geo.d lazyfree.d module.d evict.d expire.d geohash.d geohash_helper.d childinfo.d defrag.d siphash.d rax.d t_stream.d listpack.d localtime.d lolwut.d lolwut5.d lolwut6.d acl.d gopher.d tracking.d connection.d tls.d sha256.d timeout.d setcpuaffinity.d mt19937-64.d anet.d adlist.d dict.d redis-cli.d zmalloc.d release.d ae.d crcspeed.d crc64.d siphash.d crc16.d mt19937-64.d ae.d anet.d redis-benchmark.d adlist.d dict.d zmalloc.d siphash.d mt19937-64.d
(cd ../deps && /Library/Developer/CommandLineTools/usr/bin/make distclean)
(cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd lua && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /Library/Developer/CommandLineTools/usr/bin/make distclean) > /dev/null || true
(rm -f .make-*)
(rm -f .make-*)
echo STD=-std=c11 -pedantic -DREDIS_STATIC='' >> .make-settings
echo WARN=-Wall -W -Wno-missing-field-initializers >> .make-settings
echo OPT=-O2 >> .make-settings
echo MALLOC=libc >> .make-settings
echo BUILD_TLS= >> .make-settings
echo USE_SYSTEMD= >> .make-settings
echo CFLAGS= >> .make-settings
echo LDFLAGS= >> .make-settings
echo REDIS_CFLAGS= >> .make-settings
echo REDIS_LDFLAGS= >> .make-settings
echo PREV_FINAL_CFLAGS=-std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -g -ggdb   -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src >> .make-settings
echo PREV_FINAL_LDFLAGS=  -g -ggdb >> .make-settings
(cd ../deps && /Library/Developer/CommandLineTools/usr/bin/make hiredis linenoise lua)
(cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd lua && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /Library/Developer/CommandLineTools/usr/bin/make distclean) > /dev/null || true
(rm -f .make-*)
(echo "" > .make-ldflags)
(echo "" > .make-cflags)
MAKE hiredis
cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make static
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb net.c
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb hiredis.c
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sds.c
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb async.c
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb read.c
cc -std=c99 -pedantic -c -O3 -fPIC  -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sockcompat.c
ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o sockcompat.o
MAKE linenoise
cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make
cc  -Wall -Os -g  -c linenoise.c
MAKE lua
cd lua/src && /Library/Developer/CommandLineTools/usr/bin/make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' " MYLDFLAGS="" AR="ar rcu"
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lapi.o lapi.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lcode.o lcode.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ldebug.o ldebug.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ldo.o ldo.c
ldo.c:496:7: warning: unused variable 'c' [-Wunused-variable]
  int c = luaZ_lookahead(p->z);
      ^
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ldump.o ldump.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lfunc.o lfunc.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lgc.o lgc.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o llex.o llex.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lmem.o lmem.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lobject.o lobject.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lopcodes.o lopcodes.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lparser.o lparser.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lstate.o lstate.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lstring.o lstring.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ltable.o ltable.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ltm.o ltm.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lundump.o lundump.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lvm.o lvm.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lzio.o lzio.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o strbuf.o strbuf.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o fpconv.o fpconv.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lauxlib.o lauxlib.c
lauxlib.c:577:61: warning: while loop has empty body [-Wempty-body]
   while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
                                                            ^
lauxlib.c:577:61: note: put the semicolon on a separate line to silence this warning
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lbaselib.o lbaselib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ldblib.o ldblib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o liolib.o liolib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lmathlib.o lmathlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o loslib.o loslib.c
loslib.c:60:3: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]
  lua_tmpnam(buff, err);
  ^
./luaconf.h:657:33: note: expanded from macro 'lua_tmpnam'
#define lua_tmpnam(b,e)         { e = (tmpnam(b) == NULL); }
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/stdio.h:189:1: note: 'tmpnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o ltablib.o ltablib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lstrlib.o lstrlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o loadlib.o loadlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o linit.o linit.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lua_cjson.o lua_cjson.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lua_struct.o lua_struct.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lua_cmsgpack.o lua_cmsgpack.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lua_bit.o lua_bit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o  # DLL needs all object files
ranlib liblua.a
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o lua.o lua.c
cc -o lua  lua.o liblua.a -lm
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o luac.o luac.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC=''    -c -o print.o print.c
cc -o luac  luac.o print.o liblua.a -lm
    CC adlist.o
In file included from adlist.c:34:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC quicklist.o
In file included from quicklist.c:34:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC ae.o
In file included from ae.c:44:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC anet.o
    CC dict.o
In file included from dict.c:47:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC server.o
In file included from server.c:30:
In file included from ./server.h:36:
In file included from ./rio.h:38:
./connection.h:206:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:209:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:234:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:235:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsProcessPendingData();
                         ^
                          void
In file included from server.c:30:
In file included from ./server.h:64:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
In file included from server.c:30:
./server.h:1639:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:1919:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:1929:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:1955:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2025:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2133:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:2173:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
server.c:1479:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess() {
                         ^
                          void
server.c:3045:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void InitServerLast() {
                   ^
                    void
server.c:5105:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void closeClildUnusedResourceAfterFork() {
                                      ^
                                       void
15 warnings generated.
    CC sds.o
In file included from sds.c:40:
In file included from ./sdsalloc.h:42:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC zmalloc.o
In file included from zmalloc.c:47:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
zmalloc.c:409:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge() {
                  ^
                   void
2 warnings generated.
    CC lzf_c.o
    CC lzf_d.o
    CC pqsort.o
pqsort.c:106:7: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
loop:   SWAPINIT(a, es);
        ^~~~~~~~~~~~~~~
pqsort.c:65:47: note: expanded from macro 'SWAPINIT'
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
                                              ^ ~~~~~~~~~
1 warning generated.
    CC zipmap.o
In file included from zipmap.c:80:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC sha1.o
    CC ziplist.o
In file included from ziplist.c:187:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
1 warning generated.
    CC release.o
    CC networking.o
In file included from networking.c:30:
In file included from ./server.h:36:
In file included from ./rio.h:38:
./connection.h:206:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:209:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:234:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:235:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsProcessPendingData();
                         ^
                          void
In file included from networking.c:30:
In file included from ./server.h:64:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
In file included from networking.c:30:
./server.h:1639:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:1919:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:1929:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:1955:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2025:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2133:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:2173:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
12 warnings generated.
    CC util.o
    CC object.o
In file included from object.c:31:
In file included from ./server.h:36:
In file included from ./rio.h:38:
./connection.h:206:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:209:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:234:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:235:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsProcessPendingData();
                         ^
                          void
In file included from object.c:31:
In file included from ./server.h:64:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
In file included from object.c:31:
./server.h:1639:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:1919:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:1929:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:1955:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2025:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2133:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:2173:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
12 warnings generated.
    CC db.o
In file included from db.c:30:
In file included from ./server.h:36:
In file included from ./rio.h:38:
./connection.h:206:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:209:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:234:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:235:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsProcessPendingData();
                         ^
                          void
In file included from db.c:30:
In file included from ./server.h:64:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
In file included from db.c:30:
./server.h:1639:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:1919:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:1929:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:1955:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2025:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2133:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:2173:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
db.c:538:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount() {
                               ^
                                void
13 warnings generated.
    CC replication.o
In file included from replication.c:32:
In file included from ./server.h:36:
In file included from ./rio.h:38:
./connection.h:206:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:209:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:234:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:235:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsProcessPendingData();
                         ^
                          void
In file included from replication.c:32:
In file included from ./server.h:64:
./zmalloc.h:90:19: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int jemalloc_purge();
                  ^
                   void
In file included from replication.c:32:
./server.h:1639:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:1919:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:1929:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:1955:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2025:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2133:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:2173:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
replication.c:1236:31: error: variable has incomplete type 'struct stat64'
            struct redis_stat buf;
                              ^
replication.c:1236:20: note: forward declaration of 'struct stat64'
            struct redis_stat buf;
                   ^
./config.h:45:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
                   ^
replication.c:1283:21: error: call to undeclared function 'fstat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                    redis_fstat(slave->repldbfd,&buf) == -1) {
                    ^
./config.h:44:21: note: expanded from macro 'redis_fstat'
#define redis_fstat fstat64
                    ^
replication.c:1401:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC() {
                        ^
                         void
replication.c:1418:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
static int useDisklessLoad() {
                          ^
                           void
14 warnings and 2 errors generated.
make[1]: *** [replication.o] Error 1
make: *** [all] Error 2

Comment From: sundb

same as #12585

Comment From: KFoxder

Close since duplicate https://github.com/redis/redis/issues/12585