#68254 closed defect (fixed)
redis @7.2.0_0.darwin_23_arm64 error: error: variable has incomplete type 'struct stat64'
Reported by: | bb8 | Owned by: | dgilman (David Gilman) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | |
Port: | redis |
Description
:info:build replication.c:1617:31: error: variable has incomplete type 'struct stat64' :info:build struct redis_stat buf; :info:build ^ :info:build replication.c:1617:20: note: forward declaration of 'struct stat64' :info:build struct redis_stat buf; :info:build ^ :info:build ./config.h:46:20: note: expanded from macro 'redis_stat' :info:build #define redis_stat stat64 :info:build ^ :info:build replication.c:1666:21: error: call to undeclared function 'fstat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] :info:build redis_fstat(slave->repldbfd,&buf) == -1) { :info:build ^ :info:build ./config.h:45:21: note: expanded from macro 'redis_fstat' :info:build #define redis_fstat fstat64 :info:build ^ :info:build 2 errors generated.
Attachments (1)
Change History (8)
Changed 14 months ago by bb8
comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to dgilman |
---|---|
Status: | new → assigned |
I think this was caused by #64111.
comment:3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
I also see /bin/sh: pkg-config: command not found
in the log, suggesting that this port should have a build dependency on path:bin/pkg-config:pkgconfig
.
comment:4 Changed 14 months ago by dgilmanAIDENTIFIED (David Gilman)
There's a ticket upstream, it seems like a recent regression in xcode related to the new macos release https://github.com/redis/redis/issues/12585
comment:5 follow-up: 7 Changed 14 months ago by bb8
Can confirm that applying upstream patches from https://github.com/redis/redis/issues/12585 fix the build in Sonoma (without having to uninstall Homebrew).
comment:6 Changed 14 months ago by dgilman (David Gilman)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to bb8:
Can confirm that applying upstream patches from https://github.com/redis/redis/issues/12585 fix the build in Sonoma (without having to uninstall Homebrew).
The log shows that it was using openssl from Homebrew. If you've now successfully installed this port from source while still having Homebrew installed, then the port is probably now linked with Homebrew openssl. We cannot support such a configuration. Please choose one package manager and uninstall the other(s).
Your log contains occurrences of "/opt/homebrew". If you want to use MacPorts, please uninstall Homebrew first. Having multiple package managers installed on the same machine will cause problems.