On recent CURRENT (r312792), building driver x11/nvidia-driver (375.26) fails with the error shown below: [...] awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -h :> opt_global.h cc -O2 -pipe -O3 -O3 -march=native -fno-strict-aliasing -O3 -O3 -DNV_VERSION_STRING=\"375.26\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -Wno-sign-compare -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -march=native -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.nvidia_acpi.o -MTnvidia_acpi.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -mno-aes -mno-avx -std=iso9899:1999 -c nvidia_acpi.c -o nvidia_acpi.o In file included from nvidia_acpi.c:14: In file included from ./nv-freebsd.h:109: /usr/src/sys/sys/capability.h:41:2: error: this file includes <sys/capability.h> which is deprecated [-Werror,-W#warnings] #warning this file includes <sys/capability.h> which is deprecated ^ 1 error generated. *** Error code 1 Stop. make[7]: stopped in /usr/obj/usr/src/sys/FREYJA/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-375.26/src/nvidia
A commit references this bug: Author: danfe Date: Fri Jan 27 10:10:55 UTC 2017 New revision: 432548 URL: https://svnweb.freebsd.org/changeset/ports/432548 Log: Chase `sys/capability.h' rename to `sys/capsicum.h' in FreeBSD src r263232. This is to unbreak the build on recent -CURRENT, where deprecation warning was added in r312758 (FreeBSD src aka base). While here, wrap one overly long line. PR: 216478 Changes: head/x11/nvidia-driver/Makefile
Should be fixed as of ports r432548, thanks! Feel free to reopen the bug if the problem persists.