Date: Fri, 23 Nov 2007 04:17:50 +0300 From: Yuri Pankov <yuri.pankov@gmail.com> To: Doug Barton <dougb@FreeBSD.org> Cc: Alexey Dokuchaev <danfe@FreeBSD.org>, freebsd-current@FreeBSD.org Subject: Re: Lack of agpvar.h causing nvidia-driver build to fail Message-ID: <20071123011750.GA970@darklight.org.ru> In-Reply-To: <4745EA72.6070201@FreeBSD.org> References: <alpine.BSF.0.99999.0711220046260.982@qbhto.arg> <200711221438.25776.yuri.pankov@gmail.com> <4745EA72.6070201@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 22, 2007 at 12:45:38PM -0800, Doug Barton wrote: > Yuri Pankov wrote: > > On Thursday 22 November 2007 11:49:40 Doug Barton wrote: > >> On the latest -current, I'm trying to debug the issue with > >> nvidia-driver-100.14.19 not being able to "see" my external monitor > >> that's attached to the dock. However, I didn't get very far: > >> > >> cc -O2 -fno-strict-aliasing -pipe -ggdb -ggdb > >> -DNV_VERSION_STRING=\"100.14.19\" -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 -Wall > >> -Wredundant-decls -Wnested-externs -Wstrict-prototypes > >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > >> -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c > >> In file included from nvidia_ctl.c:14: > >> nv-freebsd.h:75:24: error: pci/agpvar.h: No such file or directory > >> *** Error code 1 > >> > >> This seems to be related to the removal of that header by jhb on 12 > >> November. > >> > >> Doug > > > > Hi, > > > > I've had the same problem and filed PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=118063 > > Doesn't work for me: > > cc -O2 -fno-strict-aliasing -pipe -ggdb -ggdb > -DNV_VERSION_STRING=\"100.14.19\" -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 -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:170: warning: implicit declaration of function 'suser' > nvidia_os.c:170: warning: nested extern declaration of 'suser' > *** Error code 1 > > > > -- > > This .signature sanitized for your protection Sorry, worked before -Werror was re-enabled. Simply adding #include <sys/priv.h> to src/nvidia_os.c should fix it. Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071123011750.GA970>