question

$ make -C tests/modules/
cc -I../../src  -W -Wall -dynamic -fno-common -g -ggdb -std=c99 -O2 -fPIC -c commandfilter.c -o commandfilter.xo
ld -o commandfilter.so commandfilter.xo -bundle -undefined dynamic_lookup  -lc
ld: library not found for -lc
make: *** [commandfilter.so] Error 1
rm commandfilter.xo

system

Darwin  Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64

Makefile changes

 %.so: %.xo
     $(CC) -o $@ $< $(SHOBJ_LDFLAGS) $(LDFLAGS) $(LIBS)

make pass

Hope can give me some help

why?

Comment From: sundb

Fixed in #9637. Which version are you using?

Comment From: liupeidong0620

Redis server v=6.2.5

thanks