Not all Homebrew formulas are compatible with Apple Silicon. Or maybe this is a bug in the current formula or version of that utility you are compiling.
Since that is a programming & compiling issue, you will have more luck working with the Homebrew community (do they have their own forums) or perhaps with the developer of the "libsmi" utility. The Homebrew developers don't seem to want to deal with this issue judging by the "Do not report this issue" note.
It has been a long time since I tried to do any network monitoring, but I thought WireShark would just work on a Mac, although I don't know if it is compatible with Apple Silicon. Seems WireShark does have a "macOS ARM" version.
As when I tried to install REFind, it said “unknown CPU type detected”, mate.
Then it is not compatible with Apple Silicon.
I would imagine that the Kali Linux installation would provide a GRUB2 boot menu to allow you to choose which OS to boot into....this is the default for most Linux distributions.