Describe the bug
When building on AIX, I get the following error.
error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
To reproduce
On AIX 7.1, run make MYLIBS='-ldl' all
Expected behavior
Redis should build.
Additional information
Redis 6.0.15 worked fine. Redis >6.2.0 is failing.
Build logs:
make MYLIBS='-ldl' all
cd src && make all
make[1]: Entering directory '/home/jenkins/redis/src'
CC Makefile.dep
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep
rm -f adlist.d quicklist.d ae.d anet.d dict.d server.d sds.d zmalloc.d lzf_c.d lzf_d.d pqsort.d zipmap.d sha1.d ziplist.d release.d networking.d util.d object.d db.d replication.d rdb.d t_string.d t_list.d t_set.d t_zset.d t_hash.d config.d aof.d pubsub.d multi.d debug.d sort.d intset.d syncio.d cluster.d crc16.d endianconv.d slowlog.d scripting.d bio.d rio.d rand.d memtest.d crcspeed.d crc64.d bitops.d sentinel.d notify.d setproctitle.d blocked.d hyperloglog.d latency.d sparkline.d redis-check-rdb.d redis-check-aof.d geo.d lazyfree.d module.d evict.d expire.d geohash.d geohash_helper.d childinfo.d defrag.d siphash.d rax.d t_stream.d listpack.d localtime.d lolwut.d lolwut5.d lolwut6.d acl.d gopher.d tracking.d connection.d tls.d sha256.d timeout.d setcpuaffinity.d monotonic.d mt19937-64.d anet.d adlist.d dict.d redis-cli.d zmalloc.d release.d ae.d crcspeed.d crc64.d siphash.d crc16.d monotonic.d cli_common.d mt19937-64.d ae.d anet.d redis-benchmark.d adlist.d dict.d zmalloc.d release.d crcspeed.d crc64.d siphash.d crc16.d monotonic.d cli_common.d mt19937-64.d
(cd ../deps && make distclean)
make[2]: Entering directory '/home/jenkins/redis/deps'
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(cd hdr_histogram && make clean) > /dev/null || true
(rm -f .make-*)
make[2]: Leaving directory '/home/jenkins/redis/deps'
(cd modules && make clean)
make[2]: Entering directory '/home/jenkins/redis/src/modules'
rm -rf *.xo *.so
make[2]: Leaving directory '/home/jenkins/redis/src/modules'
(cd ../tests/modules && make clean)
make[2]: Entering directory '/home/jenkins/redis/tests/modules'
rm -f commandfilter.so basics.so testrdb.so fork.so infotest.so propagate.so misc.so hooks.so blockonkeys.so blockonbackground.so scan.so datatype.so auth.so keyspace_events.so blockedclient.so getkeys.so test_lazyfree.so timer.so defragtest.so hash.so zset.so stream.so commandfilter.xo basics.xo testrdb.xo fork.xo infotest.xo propagate.xo misc.xo hooks.xo blockonkeys.xo blockonbackground.xo scan.xo datatype.xo auth.xo keyspace_events.xo blockedclient.xo getkeys.xo test_lazyfree.xo timer.xo defragtest.xo hash.xo zset.xo stream.xo
make[2]: Leaving directory '/home/jenkins/redis/tests/modules'
(rm -f .make-*)
echo STD=-pedantic -DREDIS_STATIC='' -std=c99 >> .make-settings
echo WARN=-Wall -W -Wno-missing-field-initializers >> .make-settings
echo OPT=-O3 >> .make-settings
echo MALLOC=libc >> .make-settings
echo BUILD_TLS= >> .make-settings
echo USE_SYSTEMD= >> .make-settings
echo CFLAGS=-DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h >> .make-settings
echo LDFLAGS= -pthread >> .make-settings
echo REDIS_CFLAGS= >> .make-settings
echo REDIS_LDFLAGS= >> .make-settings
echo PREV_FINAL_CFLAGS=-pedantic -DREDIS_STATIC='' -std=c99 -Wall -W -Wno-missing-field-initializers -O3 -g -ggdb -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -I../deps/hdr_histogram >> .make-settings
echo PREV_FINAL_LDFLAGS= -pthread -g -ggdb -Wl,-bexpall >> .make-settings
(cd ../deps && make hiredis linenoise lua hdr_histogram)
make[2]: Entering directory '/home/jenkins/redis/deps'
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(cd hdr_histogram && make clean) > /dev/null || true
(rm -f .make-*)
(echo "-DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h" > .make-cflags)
(echo " -pthread" > .make-ldflags)
MAKE hiredis
cd hiredis && make static
make[3]: Entering directory '/home/jenkins/redis/deps/hiredis'
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb alloc.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb net.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb hiredis.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sds.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb async.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb read.c
/opt/atc-2.0/opt/gcc/bin/gcc -std=c99 -pedantic -c -O3 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -I/usr/local/opt/openssl/include -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sockcompat.c
ar rcs libhiredis.a alloc.o net.o hiredis.o sds.o async.o read.o sockcompat.o
make[3]: Leaving directory '/home/jenkins/redis/deps/hiredis'
MAKE linenoise
cd linenoise && make
make[3]: Entering directory '/home/jenkins/redis/deps/linenoise'
/opt/atc-2.0/opt/gcc/bin/gcc -Wall -Os -g -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c linenoise.c
make[3]: Leaving directory '/home/jenkins/redis/deps/linenoise'
MAKE lua
cd lua/src && make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h" MYLDFLAGS=" -pthread" AR="ar rc"
make[3]: Entering directory '/home/jenkins/redis/deps/lua/src'
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lapi.o lapi.c
In file included from lua.h:16,
from lapi.c:16:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lcode.o lcode.c
In file included from lua.h:16,
from lcode.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ldebug.o ldebug.c
In file included from lua.h:16,
from ldebug.c:16:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ldo.o ldo.c
In file included from lua.h:16,
from ldo.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ldump.o ldump.c
In file included from lua.h:16,
from ldump.c:12:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lfunc.o lfunc.c
In file included from lua.h:16,
from lfunc.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lgc.o lgc.c
In file included from lua.h:16,
from lgc.c:12:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o llex.o llex.c
In file included from lua.h:16,
from llex.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lmem.o lmem.c
In file included from lua.h:16,
from lmem.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lobject.o lobject.c
In file included from lua.h:16,
from lobject.c:16:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lopcodes.o lopcodes.c
In file included from lua.h:16,
from llimits.h:15,
from lopcodes.h:10,
from lopcodes.c:11:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lparser.o lparser.c
In file included from lua.h:16,
from lparser.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lstate.o lstate.c
In file included from lua.h:16,
from lstate.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lstring.o lstring.c
In file included from lua.h:16,
from lstring.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ltable.o ltable.c
In file included from lua.h:16,
from ltable.c:27:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ltm.o ltm.c
In file included from lua.h:16,
from ltm.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lundump.o lundump.c
In file included from lua.h:16,
from lundump.c:12:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lvm.o lvm.c
In file included from lua.h:16,
from lvm.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lzio.o lzio.c
In file included from lua.h:16,
from lzio.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o strbuf.o strbuf.c
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o fpconv.o fpconv.c
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lauxlib.o lauxlib.c
In file included from lua.h:16,
from lauxlib.c:23:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lbaselib.o lbaselib.c
In file included from lua.h:16,
from lbaselib.c:17:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ldblib.o ldblib.c
In file included from lua.h:16,
from ldblib.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o liolib.o liolib.c
In file included from lua.h:16,
from liolib.c:16:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lmathlib.o lmathlib.c
In file included from lua.h:16,
from lmathlib.c:14:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o loslib.o loslib.c
In file included from lua.h:16,
from loslib.c:17:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o ltablib.o ltablib.c
In file included from lua.h:16,
from ltablib.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lstrlib.o lstrlib.c
In file included from lua.h:16,
from lstrlib.c:17:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o loadlib.o loadlib.c
In file included from lua.h:16,
from loadlib.c:19:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o linit.o linit.c
In file included from lua.h:16,
from linit.c:11:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lua_cjson.o lua_cjson.c
In file included from lua.h:16,
from lua_cjson.c:43:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lua_struct.o lua_struct.c
In file included from lua.h:16,
from lua_struct.c:36:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lua_cmsgpack.o lua_cmsgpack.c
In file included from lua.h:16,
from lua_cmsgpack.c:7:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lua_bit.o lua_bit.c
In file included from lua.h:16,
from lua_bit.c:32:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
ar rc liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o # DLL needs all object files
ranlib liblua.a
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o lua.o lua.c
In file included from lua.h:16,
from lua.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -o lua -pthread lua.o liblua.a -lm -ldl
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o luac.o luac.c
In file included from lua.h:16,
from luac.c:15:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c -o print.o print.c
In file included from lua.h:16,
from lstate.h:10,
from ldebug.h:11,
from print.c:13:
luaconf.h:55: warning: "LUA_USE_MKSTEMP" redefined
55 | #define LUA_USE_MKSTEMP
|
<command-line>: note: this is the location of the previous definition
/opt/atc-2.0/opt/gcc/bin/gcc -o luac -pthread luac.o print.o liblua.a -lm -ldl
make[3]: Leaving directory '/home/jenkins/redis/deps/lua/src'
MAKE hdr_histogram
cd hdr_histogram && make
make[3]: Entering directory '/home/jenkins/redis/deps/hdr_histogram'
/opt/atc-2.0/opt/gcc/bin/gcc -Wall -Os -g -DLUA_USE_POSIX -DLUA_USE_DLOPEN -include stdint-gcc.h -c hdr_histogram.c
make[3]: Leaving directory '/home/jenkins/redis/deps/hdr_histogram'
make[2]: Leaving directory '/home/jenkins/redis/deps'
CC adlist.o
CC quicklist.o
CC ae.o
In file included from ae.c:60:
ae_select.c: In function 'aeApiResize':
ae_select.c:52:37: warning: unused parameter 'eventLoop' [-Wunused-parameter]
52 | static int aeApiResize(aeEventLoop *eventLoop, int setsize) {
| ~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/poll.h:30,
from ae.c:41:
ae_select.c: In function 'aeApiPoll':
ae_select.c:89:43: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
89 | aeFileEvent *fe = &eventLoop->events[j];
| ^~~~~~
ae.c: In function 'aeCreateEventLoop':
ae.c:73:16: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
73 | eventLoop->events = zmalloc(sizeof(aeFileEvent)*setsize);
| ^~~~~~
ae.c:75:20: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
75 | if (eventLoop->events == NULL || eventLoop->fired == NULL) goto err;
| ^~~~~~
ae.c:88:20: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
88 | eventLoop->events[i].mask = AE_NONE;
| ^~~~~~
ae.c:93:26: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
93 | zfree(eventLoop->events);
| ^~~~~~
ae.c: In function 'aeResizeSetSize':
ae.c:127:16: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
127 | eventLoop->events = zrealloc(eventLoop->events,sizeof(aeFileEvent)*setsize);
| ^~~~~~
ae.c:127:45: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
127 | eventLoop->events = zrealloc(eventLoop->events,sizeof(aeFileEvent)*setsize);
| ^~~~~~
ae.c:134:20: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
134 | eventLoop->events[i].mask = AE_NONE;
| ^~~~~~
ae.c: In function 'aeDeleteEventLoop':
ae.c:140:22: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
140 | zfree(eventLoop->events);
| ^~~~~~
ae.c: In function 'aeCreateFileEvent':
ae.c:164:35: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
164 | aeFileEvent *fe = &eventLoop->events[fd];
| ^~~~~~
ae.c: In function 'aeDeleteFileEvent':
ae.c:180:35: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
180 | aeFileEvent *fe = &eventLoop->events[fd];
| ^~~~~~
ae.c:194:28: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
194 | if (eventLoop->events[j].mask != AE_NONE) break;
| ^~~~~~
ae.c: In function 'aeGetFileEvents':
ae.c:201:35: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
201 | aeFileEvent *fe = &eventLoop->events[fd];
| ^~~~~~
ae.c: In function 'aeProcessEvents':
ae.c:402:43: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
402 | aeFileEvent *fe = &eventLoop->events[eventLoop->fired[j].fd];
| ^~~~~~
ae.c:429:34: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
429 | fe = &eventLoop->events[fd]; /* Refresh in case of resize. */
| ^~~~~~
ae.c:443:34: error: 'aeEventLoop' has no member named 'reqevents'; did you mean 'events'?
443 | fe = &eventLoop->events[fd]; /* Refresh in case of resize. */
| ^~~~~~
make[1]: *** [Makefile:368: ae.o] Error 1
make[1]: Leaving directory '/home/jenkins/redis/src'
make: *** [Makefile:6: all] Error 2
Comment From: bemehiser
Turns out I can solve this by including poll.h (as in #include <sys/poll.h>)
export CFLAGS="$CFLAGS -include poll.h"