If looking for a version of mochad that compiles with the latest build tools and that is compatible with systemd (Debian, Raspberry Pi OS, Armbian, etc.): install Steve Porter's version 0.1.21 or apply minimal patches to only two files of version 0.1.17 as explained here: Patching version 0.1.17 by mmauka. If IPV6 support is needed see version 0.1.19 by Neil Cherry. If compatibility with systemd is also needed , install a fork: sigmdel/mochad. More information in excruciating details at Mochad on...
I know this is late and may seem stupid, but which version of Mochad are you using ? I had a similar problem which was solved with version 0.1.17. For some reason SourceForge still serves version 0.1.16 as the "lastest version".