Bug 216478 - x11/nvidia-driver: capability.h:41:2: error: this file includes <sys/capability.h>
Summary: x11/nvidia-driver: capability.h:41:2: error: this file includes <sys/capabili...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alexey Dokuchaev
Depends on:
Reported: 2017-01-26 05:45 UTC by O. Hartmann
Modified: 2017-01-27 10:14 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2017-01-26 05:45:29 UTC
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

make[7]: stopped in /usr/obj/usr/src/sys/FREYJA/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-375.26/src/nvidia
Comment 1 commit-hook freebsd_committer 2017-01-27 10:11:52 UTC
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

  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

Comment 2 Alexey Dokuchaev freebsd_committer 2017-01-27 10:14:17 UTC
Should be fixed as of ports r432548, thanks!  Feel free to reopen the bug if the problem persists.