With an up-to-date pkgsrc, and all other packages rebuilt from scratch,
I am seeing a whole bunch of printf-related compile errors when trying
to build libusb. Here's a sample - the entire log file is attached to
this message...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Werror -O2 -D_FORTIFY_SOURCE=2
-Wall -MT bsd.lo -MD -MP -MF .deps/bsd.Tpo -c bsd.c -fPIC -DPIC -o
.libs/bsd.o
In file included from /usr/include/stdio.h:597:0,
from bsd.c:35:
bsd.c: In function 'ensure_ep_open.isra.0':
bsd.c:269:36: error: '%s' directive output may be truncated writing up to
1024 bytes into a region of size 19 [-Werror=format-truncation=]
snprintf(buf, sizeof(buf) - 1, "%s.%02d", dev->device->filename, ep);
^
bsd.c:269:36: note: directive argument in the range [0, 15]
bsd.c:269:5: note: '__builtin_snprintf' output between 4 and 1028 bytes into
a destination of size 19
snprintf(buf, sizeof(buf) - 1, "%s.%02d", dev->device->filename, ep);
^
This failure prevents me from building sysutils/apcupsd ...
In case it matters, the host system is
NetBSD speedy.whooppee.com 8.99.37 NetBSD 8.99.37 (SPEEDY 2019-04-24 23:45:06
UTC) #0: Thu Apr 25 09:00:09 UTC 2019
paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY
amd64
All packages were built in a chroot sandbox...
+--------------------+--------------------------+-----------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost |
+--------------------+--------------------------+-----------------------+