compiling inetutils 2.5 on macOS Sonoma gives an error compiling src/syslogd.c because the third argument in the prototype for ttymsg is "char *" but macOS /usr/include/util.h has it as "const char *”.
The following is a hack to fix: perl -i.orig -ple 's/(ttymsg\s*\(struct iovec\s*\*,\s*int,\s*)(char\s*\*)/$1const $2/;' src/syslogd.c