Redis 7.0.12 doesn't build on macOS Sonoma / Ventura

Overview

I used the one-line GDK installation instructions but they failed and I'm left without any idea what to do next.

Attempting to follow instructions for the asdf route it seems that things fall over during make bootstrap:

$ make bootstrap
INFO: Performing common preflight checks..
INFO: Setting up 'darwin' platform..
INFO: This GDK has already had platform packages installed.
INFO: Remove '/Users/roxspring/gitlab-development-kit/.cache/.gdk_platform_setup' to force execution.
INFO: Installing asdf..
INFO: Installing/updating asdf plugins..
Location of gitleaks plugin: /Users/roxspring/.asdf/plugins/gitleaks
Updating gitleaks to main
Already on 'main'
Your branch is up to date with 'origin/main'.
Location of golang plugin: /Users/roxspring/.asdf/plugins/golang
Updating golang to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of minio plugin: /Users/roxspring/.asdf/plugins/minio
Updating minio to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of nodejs plugin: /Users/roxspring/.asdf/plugins/nodejs
Updating nodejs to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of postgres plugin: /Users/roxspring/.asdf/plugins/postgres
Updating postgres to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of redis plugin: /Users/roxspring/.asdf/plugins/redis
Updating redis to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of ruby plugin: /Users/roxspring/.asdf/plugins/ruby
Updating ruby to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of rust plugin: /Users/roxspring/.asdf/plugins/rust
Updating rust to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of shellcheck plugin: /Users/roxspring/.asdf/plugins/shellcheck
Updating shellcheck to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of vale plugin: /Users/roxspring/.asdf/plugins/vale
Updating vale to main
Already on 'main'
Your branch is up to date with 'origin/main'.
Location of yarn plugin: /Users/roxspring/.asdf/plugins/yarn
Updating yarn to main
Already on 'main'
Your branch is up to date with 'origin/main'.
INFO: Installing asdf tools..
ruby 3.1.4 is already installed
ruby 3.2.2 is already installed
gitleaks 8.16.4 is already installed
golang 1.20.3 is already installed
golang 1.20.7 is already installed
golang 1.21.1 is already installed
golang 1.21.0 is already installed
golang 1.20.5 is already installed
minio 2022-07-15T03-44-22Z is already installed
nodejs 18.17.1 is already installed
nodejs 18.17.0 is already installed
postgres 13.9 is already installed
postgres 14.8 is already installed
** Resuming transfer from byte position 2992216
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   206  100   206    0     0    556      0 --:--:-- --:--:-- --:--:--   558
cd src && /Library/Developer/CommandLineTools/usr/bin/make install
    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:227:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:230:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:255:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:256: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:67:
In file included from ./ae.h:36:
./monotonic.h:36:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *monotonicInit();
                         ^
                          void
./monotonic.h:39:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *monotonicInfoString();
                               ^
                                void
./monotonic.h:42:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
monotonic_clock_type monotonicGetType();
                                     ^
                                      void
In file included from replication.c:32:
In file included from ./server.h:71:
./zmalloc.h:120: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:2409:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:2410:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllModulesHandleReplAsyncLoad();
                                       ^
                                        void
./server.h:2537:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void unblockPostponedClients();
                            ^
                             void
./server.h:2539:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void whileBlockedCron();
                     ^
                      void
./server.h:2540:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void blockingOperationStarts();
                            ^
                             void
./server.h:2541:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void blockingOperationEnds();
                          ^
                           void
./server.h:2692:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void resizeReplicationBacklog();
                             ^
                              void
./server.h:2720:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *getFailoverStateString();
                                  ^
                                   void
./server.h:2755:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:2772:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:2773:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void resetChildState();
                    ^
                     void
./server.h:2817:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2893:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2912:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void startCommandExecution();
                          ^
                           void
./server.h:2916:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void propagatePendingCommands();
                             ^
                              void
./server.h:3017:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int serverPubsubSubscriptionCount();
                                 ^
                                  void
./server.h:3018:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int serverPubsubShardSubscriptionCount();
                                      ^
                                       void
./server.h:3072:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:3074:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
sds getConfigDebugInfo();
                      ^
                       void
./server.h:3076:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initServerClientMemUsageBuckets();
                                    ^
                                     void
./server.h:3077:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void freeServerClientMemUsageBuckets();
                                    ^
                                     void
./server.h:3143:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
./server.h:3220:17: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int ldbIsEnabled();
                ^
                 void
./server.h:3224:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long evalMemory();
                        ^
                         void
./server.h:3225:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
dict* evalScriptsDict();
                     ^
                      void
./server.h:3226:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long evalScriptsMemory();
                               ^
                                void
./server.h:3229:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int isInsideYieldingLongCommand();
                               ^
                                void
./server.h:3568:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void applyWatchdogPeriod();
                        ^
                         void
In file included from replication.c:35:
In file included from ./functions.h:47:
./script.h:104:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsRunning();
                   ^
                    void
./script.h:105:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char* scriptCurrFunction();
                              ^
                               void
./script.h:106:17: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsEval();
                ^
                 void
./script.h:107:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsTimedout();
                    ^
                     void
./script.h:108:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
client* scriptGetClient();
                       ^
                        void
./script.h:109:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
client* scriptGetCaller();
                       ^
                        void
./script.h:110:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
mstime_t scriptTimeSnapshot();
                           ^
                            void
./script.h:111:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long scriptRunDuration();
                           ^
                            void
In file included from replication.c:35:
./functions.h:113:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsMemory();
                             ^
                              void
./functions.h:114:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsMemoryOverhead();
                                     ^
                                      void
./functions.h:115:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsNum();
                          ^
                           void
./functions.h:116:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsLibNum();
                             ^
                              void
./functions.h:117:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
dict* functionsLibGet();
                     ^
                      void
./functions.h:119:43: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
functionsLibCtx* functionsLibCtxGetCurrent();
                                          ^
                                           void
./functions.h:120:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
functionsLibCtx* functionsLibCtxCreate();
                                      ^
                                       void
./functions.h:128:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int luaEngineInitEngine();
                       ^
                        void
./functions.h:129:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int functionsInit();
                 ^
                  void
replication.c:1571:31: error: variable has incomplete type 'struct stat64'
            struct redis_stat buf;
                              ^
replication.c:1571:20: note: forward declaration of 'struct stat64'
            struct redis_stat buf;
                   ^
./config.h:46:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
                   ^
replication.c:1620: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:45:21: note: expanded from macro 'redis_fstat'
#define redis_fstat fstat64
                    ^
replication.c:1751:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC() {
                        ^
                         void
replication.c:1768:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
static int useDisklessLoad() {
                          ^
                           void
replication.c:1807:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void replicationAttachToNewMaster() { 
                                 ^
                                  void
replication.c:3851:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *getFailoverStateString() {
                                  ^
                                   void
replication.c:3863:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void clearFailoverState() {
                       ^
                        void
58 warnings and 2 errors generated.
make[1]: *** [replication.o] Error 1
make: *** [install] Error 2

ERROR: Failed to install some asdf tools.
make: *** [bootstrap] Error 1

~/gitlab-development-kit on  main ⌚ 18:38:09
$ make bootstrap
INFO: Performing common preflight checks..
INFO: Setting up 'darwin' platform..
INFO: This GDK has already had platform packages installed.
INFO: Remove '/Users/roxspring/gitlab-development-kit/.cache/.gdk_platform_setup' to force execution.
INFO: Installing asdf..
INFO: Installing/updating asdf plugins..
Location of gitleaks plugin: /Users/roxspring/.asdf/plugins/gitleaks
Updating gitleaks to main
Already on 'main'
Your branch is up to date with 'origin/main'.
Location of golang plugin: /Users/roxspring/.asdf/plugins/golang
Updating golang to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of minio plugin: /Users/roxspring/.asdf/plugins/minio
Updating minio to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of nodejs plugin: /Users/roxspring/.asdf/plugins/nodejs
Updating nodejs to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of postgres plugin: /Users/roxspring/.asdf/plugins/postgres
Updating postgres to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of redis plugin: /Users/roxspring/.asdf/plugins/redis
Updating redis to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of ruby plugin: /Users/roxspring/.asdf/plugins/ruby
Updating ruby to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of rust plugin: /Users/roxspring/.asdf/plugins/rust
Updating rust to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of shellcheck plugin: /Users/roxspring/.asdf/plugins/shellcheck
Updating shellcheck to master
Already on 'master'
Your branch is up to date with 'origin/master'.
Location of vale plugin: /Users/roxspring/.asdf/plugins/vale
Updating vale to main
Already on 'main'
Your branch is up to date with 'origin/main'.
Location of yarn plugin: /Users/roxspring/.asdf/plugins/yarn
Updating yarn to main
Already on 'main'
Your branch is up to date with 'origin/main'.
INFO: Installing asdf tools..
ruby 3.1.4 is already installed
ruby 3.2.2 is already installed
gitleaks 8.16.4 is already installed
golang 1.20.3 is already installed
golang 1.20.7 is already installed
golang 1.21.1 is already installed
golang 1.21.0 is already installed
golang 1.20.5 is already installed
minio 2022-07-15T03-44-22Z is already installed
nodejs 18.17.1 is already installed
nodejs 18.17.0 is already installed
postgres 13.9 is already installed
postgres 14.8 is already installed
** Resuming transfer from byte position 2992216
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   206  100   206    0     0    620      0 --:--:-- --:--:-- --:--:--   626
cd src && /Library/Developer/CommandLineTools/usr/bin/make install
    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:227:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateSocket();
                            ^
                             void
./connection.h:230:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
connection *connCreateTLS();
                         ^
                          void
./connection.h:255:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int tlsHasPendingData();
                     ^
                      void
./connection.h:256: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:67:
In file included from ./ae.h:36:
./monotonic.h:36:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *monotonicInit();
                         ^
                          void
./monotonic.h:39:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *monotonicInfoString();
                               ^
                                void
./monotonic.h:42:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
monotonic_clock_type monotonicGetType();
                                     ^
                                      void
In file included from replication.c:32:
In file included from ./server.h:71:
./zmalloc.h:120: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:2409:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllDatatypesHandleErrors();
                                  ^
                                   void
./server.h:2410:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int moduleAllModulesHandleReplAsyncLoad();
                                       ^
                                        void
./server.h:2537:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void unblockPostponedClients();
                            ^
                             void
./server.h:2539:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void whileBlockedCron();
                     ^
                      void
./server.h:2540:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void blockingOperationStarts();
                            ^
                             void
./server.h:2541:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void blockingOperationEnds();
                          ^
                           void
./server.h:2692:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void resizeReplicationBacklog();
                             ^
                              void
./server.h:2720:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *getFailoverStateString();
                                  ^
                                   void
./server.h:2755:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC();
                        ^
                         void
./server.h:2772:26: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int hasActiveChildProcess();
                         ^
                          void
./server.h:2773:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void resetChildState();
                    ^
                     void
./server.h:2817:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
user *ACLCreateUnlinkedUser();
                           ^
                            void
./server.h:2893:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
size_t freeMemoryGetNotCountedMemory();
                                    ^
                                     void
./server.h:2912:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void startCommandExecution();
                          ^
                           void
./server.h:2916:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void propagatePendingCommands();
                             ^
                              void
./server.h:3017:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int serverPubsubSubscriptionCount();
                                 ^
                                  void
./server.h:3018:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int serverPubsubShardSubscriptionCount();
                                      ^
                                       void
./server.h:3072:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initConfigValues();
                     ^
                      void
./server.h:3074:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
sds getConfigDebugInfo();
                      ^
                       void
./server.h:3076:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void initServerClientMemUsageBuckets();
                                    ^
                                     void
./server.h:3077:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void freeServerClientMemUsageBuckets();
                                    ^
                                     void
./server.h:3143:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long dbTotalServerKeyCount();
                               ^
                                void
./server.h:3220:17: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int ldbIsEnabled();
                ^
                 void
./server.h:3224:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long evalMemory();
                        ^
                         void
./server.h:3225:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
dict* evalScriptsDict();
                     ^
                      void
./server.h:3226:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long evalScriptsMemory();
                               ^
                                void
./server.h:3229:32: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int isInsideYieldingLongCommand();
                               ^
                                void
./server.h:3568:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void applyWatchdogPeriod();
                        ^
                         void
In file included from replication.c:35:
In file included from ./functions.h:47:
./script.h:104:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsRunning();
                   ^
                    void
./script.h:105:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char* scriptCurrFunction();
                              ^
                               void
./script.h:106:17: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsEval();
                ^
                 void
./script.h:107:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int scriptIsTimedout();
                    ^
                     void
./script.h:108:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
client* scriptGetClient();
                       ^
                        void
./script.h:109:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
client* scriptGetCaller();
                       ^
                        void
./script.h:110:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
mstime_t scriptTimeSnapshot();
                           ^
                            void
./script.h:111:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
long long scriptRunDuration();
                           ^
                            void
In file included from replication.c:35:
./functions.h:113:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsMemory();
                             ^
                              void
./functions.h:114:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsMemoryOverhead();
                                     ^
                                      void
./functions.h:115:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsNum();
                          ^
                           void
./functions.h:116:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
unsigned long functionsLibNum();
                             ^
                              void
./functions.h:117:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
dict* functionsLibGet();
                     ^
                      void
./functions.h:119:43: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
functionsLibCtx* functionsLibCtxGetCurrent();
                                          ^
                                           void
./functions.h:120:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
functionsLibCtx* functionsLibCtxCreate();
                                      ^
                                       void
./functions.h:128:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int luaEngineInitEngine();
                       ^
                        void
./functions.h:129:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int functionsInit();
                 ^
                  void
replication.c:1571:31: error: variable has incomplete type 'struct stat64'
            struct redis_stat buf;
                              ^
replication.c:1571:20: note: forward declaration of 'struct stat64'
            struct redis_stat buf;
                   ^
./config.h:46:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
                   ^
replication.c:1620: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:45:21: note: expanded from macro 'redis_fstat'
#define redis_fstat fstat64
                    ^
replication.c:1751:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void restartAOFAfterSYNC() {
                        ^
                         void
replication.c:1768:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
static int useDisklessLoad() {
                          ^
                           void
replication.c:1807:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void replicationAttachToNewMaster() { 
                                 ^
                                  void
replication.c:3851:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
const char *getFailoverStateString() {
                                  ^
                                   void
replication.c:3863:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void clearFailoverState() {
                       ^
                        void
58 warnings and 2 errors generated.
make[1]: *** [replication.o] Error 1
make: *** [install] Error 2

ERROR: Failed to install some asdf tools.
make: *** [bootstrap] Error 1

Updated to include the whole output - which I now notice includes some errors among the warnings too:

int functionsInit();
                 ^
                  void
replication.c:1571:31: error: variable has incomplete type 'struct stat64'
            struct redis_stat buf;
                              ^
replication.c:1571:20: note: forward declaration of 'struct stat64'
            struct redis_stat buf;
                   ^
./config.h:46:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
                   ^
replication.c:1620: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:45:21: note: expanded from macro 'redis_fstat'
#define redis_fstat fstat64
                    ^

Any suggestion what I should try next?

Impacted categories

The following categories relate to this issue:

  • gdk-reliability - e.g. When a GDK action fails to complete.
  • gdk-usability - e.g. Improvements or suggestions around how the GDK functions.
  • gdk-performance - e.g. When a GDK action is slow or times out.

Steps to replicate (optional)

  • curl "https://gitlab.com/gitlab-org/gitlab-development-kit/-/raw/main/support/install" | bash

Proposal (optional)

Environment (optional)

  • Operating system name: Darwin DB0996.lan 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64 - macOS 13.5.2 (22G91)
  • Architecture: arm64
  • The contents of your gdk.yml (if any)
  • Ruby version: ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [arm64-darwin22]
  • GDK version: 465d2478
Edited Sep 19, 2023 by Rob Oxspring
Assignee Loading
Time tracking Loading