error compiling inetutils 2.5 on macOS Sonoma

Erik A Johnson <[email protected]>
Newsgroups gmane.comp.gnu.inetutils.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.