nvidia-driver not compiling with recent -current (implicit declaration of function 'suser')

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Sat, 11 Oct 2008 14:23:03 -0700
This first happened to me on 3 October but I didn't have time to
follow up. The nvidia driver module doesn't work with the latest
-current, and trying to compile a new one results in the errors in the
attached log. This is after booting with a new kernel, but not
installing the world. Is this a case where the new world (including
headers) needs to be installed before it will compile? If so, a note
should probably go into /usr/ports/UPDATING.


Doug

-- 

    This .signature sanitized for your protection


===>  Vulnerability check disabled, database not found
===>  Found saved configuration for nvidia-driver-173.14.12
===>  Extracting for nvidia-driver-173.14.12
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-173.14.12.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-173.14.12.tar.gz.
===>  Patching for nvidia-driver-173.14.12
===>  Applying FreeBSD patches for nvidia-driver-173.14.12
===>   nvidia-driver-173.14.12 depends on shared library: X11.6 - found
===>   nvidia-driver-173.14.12 depends on shared library: m.3 - found
===>   nvidia-driver-173.14.12 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-173.14.12
===>  Building for nvidia-driver-173.14.12
===> src (all)
_at_ -> /usr/local/src/sys
machine -> /usr/local/src/sys/i386/include
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
awk -f _at_/tools/vnode_if.awk _at_/kern/vnode_if.src -p
awk -f _at_/tools/vnode_if.awk _at_/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -pipe -ggdb -fno-strict-aliasing -ggdb -DNV_VERSION_STRING=\"173.14.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ggdb -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
cc -O2 -pipe -ggdb -fno-strict-aliasing -ggdb -DNV_VERSION_STRING=\"173.14.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ggdb -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_dev.c
cc -O2 -pipe -ggdb -fno-strict-aliasing -ggdb -DNV_VERSION_STRING=\"173.14.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ggdb -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_linux.c
cc -O2 -pipe -ggdb -fno-strict-aliasing -ggdb -DNV_VERSION_STRING=\"173.14.12\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ggdb -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_os.c
cc1: warnings being treated as errors
nvidia_os.c: In function 'os_is_administrator':
nvidia_os.c:168: warning: implicit declaration of function 'suser'
nvidia_os.c:168: warning: nested extern declaration of 'suser'
*** Error code 1

Stop in /usr/local/tmp/mnt/slave/data/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.12/src.
*** Error code 1

Stop in /usr/local/tmp/mnt/slave/data/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.12.
*** Error code 1

Stop in /mnt/slave/data/ports/x11/nvidia-driver.
*** Error code 1

Stop in /mnt/slave/data/ports/x11/nvidia-driver.
Received on Sat Oct 11 2008 - 19:23:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC