Opened 2 weeks ago

Closed 11 days 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

https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/200611/steps/install-port/logs/stdio

Change History (2)

comment:1 Changed 12 days ago by barracuda156

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

comment:2 Changed 11 days ago by barracuda156

Resolution: fixed
Status: assignedclosed

In b5ea3be0308e961ddca59edec93691b33505b050/macports-ports (master):

valkey: fix on 10.6, remove brewism

Closes: #69887

Note: See TracTickets for help on using tickets.