Opened 20 months ago
Closed 20 months ago
#69887 closed defect (fixed)
valkey fails to build on 10.6: error: 'fstat64' is deprecated [-Werror,-Wdeprecated-declarations]
| Reported by: | barracuda156 | Owned by: | mohd-akram (Mohamed Akram) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.9.3 |
| Keywords: | tiger, leopard, snowleopard | Cc: | |
| Port: | valkey |
Description
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_valkey/valkey/work/compwrap/cc/opt/local/bin/clang-mp-11 -pedantic -DREDIS_STATIC='' -Wno-c11-extensions -std=gnu11 -Wall -W -Wno-missing-field-initializers -Werror=deprecated-declarations -Wstrict-prototypes -O3 -g -ggdb -arch x86_64 -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -I../deps/hdr_histogram -I../deps/fpconv -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL=1 -I/usr/local/opt/openssl/include -DBUILD_TLS_MODULE=0 -MMD -o rdb.o -c rdb.c
replication.c:1666:21: error: 'fstat64' is deprecated [-Werror,-Wdeprecated-declarations]
redis_fstat(slave->repldbfd,&buf) == -1) {
^
./config.h:50:21: note: expanded from macro 'redis_fstat'
#define redis_fstat fstat64
^
/usr/include/sys/stat.h:463:35: note: 'fstat64' has been explicitly marked deprecated here
int fstat64(int, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA);
^
/usr/include/Availability.h:137:53: note: expanded from macro '__OSX_AVAILABLE_BUT_DEPRECATED'
__AVAILABILITY_INTERNAL##_macIntro##_DEP##_macDep
^
<scratch space>:179:1: note: expanded from here
__AVAILABILITY_INTERNAL__MAC_10_5_DEP__MAC_10_6
^
/usr/include/AvailabilityInternal.h:253:72: note: expanded from macro '__AVAILABILITY_INTERNAL__MAC_10_5_DEP__MAC_10_6'
#define __AVAILABILITY_INTERNAL__MAC_10_5_DEP__MAC_10_6 __AVAILABILITY_INTERNAL_DEPRECATED
^
/usr/include/AvailabilityInternal.h:36:67: note: expanded from macro '__AVAILABILITY_INTERNAL_DEPRECATED'
#define __AVAILABILITY_INTERNAL_DEPRECATED __attribute__((deprecated,visibility("default")))
^
1 error generated.
make[1]: *** [replication.o] Error 1
Change History (2)
comment:1 Changed 20 months ago by barracuda156
comment:2 Changed 20 months ago by barracuda156
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.

This fixes reported error and two other issues: https://github.com/macports/macports-ports/pull/23817