Created attachment 187318 [details] poudriere failure log Build errors. "error: use of undeclared identifier" See attached poudriere output error log.
It appears to affect stable and i386 current: I can reproduce this under current on i386 requiring libusb.h in two files. I will upload shortly after some additional testing... which just completed.
Created attachment 187324 [details] nut libusb patch. Try this patch. It should fix stable and current on i386. (Current on amd64 works without it.)
I'm running FreeBSD-11.1-RELEASE-p1 on amd64, which wasn't actually working. I'll give the patch a try though.
Confirmed. Patch fixes the build for me on amd64 / FreeBSD-11.1-RELEASE-p1.
The patch Attachment #187324 [details], fixed my system 11.1-p2 amd64 as well. Also discovered prior to patch that if I removed the Serial option the port would build. Builds fine after patch with serial option checked.
Oh, sorry, I had SERIAL turned off too when tested patch which leads to this problem. My mistake.
A commit references this bug: Author: cy Date: Fri Oct 20 14:51:35 UTC 2017 New revision: 452531 URL: https://svnweb.freebsd.org/changeset/ports/452531 Log: Fix build with SERIAL option. PR: 223122 Changes: head/sysutils/nut/Makefile head/sysutils/nut/files/patch-drivers_libshut.c head/sysutils/nut/files/patch-drivers_usbhid-ups.c
Forgotten to close?