I found that devel/lua-sysctl is broken on lua 5.3+. Reason is usage of `lua_pushunsigned` which was removed later, it actually prints warning about it during compilation and triggers error (unresolved syntax) on load.
Fix is available at https://reviews.freebsd.org/file/data/gxfrmopl44mjywxwjmd4/PHID-FILE-3ei27wlsg7ug6gcszzqk/D28992.diff I also sent it to the upstream: https://github.com/kaworu/lua-sysctl/pull/8
uzsolt@uzsolt.hu please approve changes.
A commit references this bug: Author: samm Date: Mon Mar 1 07:57:51 UTC 2021 New revision: 566833 URL: https://svnweb.freebsd.org/changeset/ports/566833 Log: devel/lua-sysctl: fix module loading on lua 5.3+ PR: 253930 Approved by: uzsolt@uzsolt.hu (maintainer) Differential Revision: https://reviews.freebsd.org/D28992 Changes: head/devel/lua-sysctl/Makefile head/devel/lua-sysctl/files/ head/devel/lua-sysctl/files/patch-src_lua__sysctl.c