Package: src:redis Version: 5:5.0.3-1 Severity: important debian/rules sets export DEB_LDFLAGS_MAINT_APPEND = -ldl -latomic $(LUA_LDFLAGS)
which fails with ld --as-needed as the default. cc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -ldl -latomic -llua5.1-cjson -llua5.1-bitop ../deps/lua/src/lua_struct.o ../deps/lua/src/lua_cmsgpack.o -g -ggdb -rdynamic -o redis-server adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o -llua5.1 -ljemalloc -lm -ldl -pthread -lrt -lhiredis /usr/bin/ld: scripting.o: in function `luaLoadLibraries': ./src/scripting.c:844: undefined reference to `luaopen_cjson' /usr/bin/ld: ./src/scripting.c:847: undefined reference to `luaopen_bit' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:242: redis-server] Error 1