[root@luckfox-rv1106 ~/software/samba/samba-4.22.3]# make
PYTHONHASHSEED=1 WAF_MAKE=1 ./buildtools/bin/waf build
Waf: Entering directory `/root/software/samba/samba-4.22.3/bin/default'
Selected embedded Heimdal build
[3793/4455] Compiling source4/torture/krb5/kdc-heimdal.c
In file included from ../../source4/torture/krb5/kdc-heimdal.c:29:
../../lib/cmdline/cmdline.h:22:10: fatal error: popt.h: No such file or directory
22 | #include <popt.h>
| ^~~~~~~~
compilation terminated.
Waf: Leaving directory `/root/software/samba/samba-4.22.3/bin/default'
Build failed
-> task in 'TORTURE_KRB5' failed with exit status 1 (run with -v to display more information)
make: *** [Makefile:7: all] Error 1
[root@luckfox-rv1106 ~/software/samba/samba-4.22.3]#