Blizzard of warnings on NetBSD 8

Eric S. Raymond esr at
Tue Aug 28 14:01:44 UTC 2018

Hal Murray via devel <devel at>:
> What's the story?
> I'm catching up after being off line for several weeks.  I updated a NetBSD 
> box to 8.0 and now it produces lots and lots of warnings that I expect would 
> get fixed before a release.
> Most are complaining about %m.  Sample:
>   ../../libntp/msyslog.c:512:5: warning: %m is only allowed in syslog(3) like 
> functions [-Wformat=]
> There is also:
> ../../ntpd/ntp_control.c:2628:8: warning: format '%u' expects argument of type 
> 'unsigned int', but argument 4 has type 'int' [-Wformat=]
> /usr/pkg/lib/ warning: warning: tmpnam() possibly used 
> unsafely, use mkstemp() or mkdtemp()
> /usr/pkg/lib/ warning: warning: tempnam() possibly used 
> unsafely, use mkstemp() or mkdtemp()

If waf detects lack of %m support in syslog(3) it does that expansion internally.

These warnings are spurious.  They mean we need to find out how to declare
to the NetBSD compiler that msyslog() is syslog-like, but that's all.

I don't consider this a release blocker.
		<a href="">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute:
Please visit their site and donate: the civilization you save might be your own.

More information about the devel mailing list