Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#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)

main.log (186.0 KB) - added by bb8 12 months ago.

Download all attachments as: .zip

Change History (8)

Changed 12 months ago by bb8

Attachment: main.log added

comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:2 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to dgilman
Status: newassigned

I think this was caused by #64111.

comment:3 Changed 12 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 12 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 Changed 12 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 12 months ago by dgilman (David Gilman)

Resolution: fixed
Status: assignedclosed

In cddfa595351ca6a505f37ad44d09078c5e4bdf07/macports-ports (master):

redis: update to 7.2.1

Closes: #68254

comment:7 in reply to:  5 Changed 12 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).

Note: See TracTickets for help on using tickets.