NVidia Port Problems with kernel

2003-09-03 Thread Pau Rodriguez
Hello!
I'm a FreeBSD 5.1-CURRENT user and I use NVidia card.
While I'm building 'ports/x11/nvidia-driver' make return errors

 cd /usr/ports/x11/nvidia-driver;make

#ERRORS

/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.   
c: In function 
`nvidia_find_bridge':
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.   
c:234: error: 
`PCIR_HEADERTYPE' undeclared (first use in this function)
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.   
c:234: error: (Each undeclared 
identifier is reported only once
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.   
c:234: error: for each 
function it appears in.)



You can see full output in attrached file 'make.out'.
I know that in previous version of kernel it runs.

If is error that I made answarme. thanks!


Define WITH_FREEBSD_AGP to use FreeBSD AGP GART driver
Define FORCE_AGP_RATE to limit the driver to lower speeds
Define WITH_NVIDIA_HACKS to enable work-arounds to override basic AGP setup
===  Extracting for nvidia-driver-1.0.4365
 Checksum OK for NVIDIA-FreeBSD-x86-1.0-4365.tar.gz.
===  Patching for nvidia-driver-1.0.4365
===   nvidia-driver-1.0.4365 depends on shared library: X11.6 - found
===  Configuring for nvidia-driver-1.0.4365
===  Building for nvidia-driver-1.0.4365
=== module
@ - /usr/src/sys
machine - /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cp 
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../obj/nv-kernel.o
 NVIDIA.o
cc -O -pipe -march=athlon 
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src 
-D__KERNEL__ -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4365  
-DNVCPU_X86   -DNV_BSD   -DNV_INT64_OK   -DNV_UNIX  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src -I. -I@ 
-I@/../include -I/usr/include -finline-limit=15000 -fno-common  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src/nvidia_ctl.c
cc -O -pipe -march=athlon 
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src 
-D__KERNEL__ -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4365  
-DNVCPU_X86   -DNV_BSD   -DNV_INT64_OK   -DNV_UNIX  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src -I. -I@ 
-I@/../include -I/usr/include -finline-limit=15000 -fno-common  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src/nvidia_dev.c
cc -O -pipe -march=athlon 
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src 
-D__KERNEL__ -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4365  
-DNVCPU_X86   -DNV_BSD   -DNV_INT64_OK   -DNV_UNIX  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src -I. -I@ 
-I@/../include -I/usr/include -finline-limit=15000 -fno-common  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src/nvidia_linux.c
cc -O -pipe -march=athlon 
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/module/../src 
-D__KERNEL__ -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4365  
-DNVCPU_X86   -DNV_BSD   -DNV_INT64_OK   -DNV_UNIX  -D_KERNEL -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 

Re: NVidia Port Problems with kernel

2003-09-03 Thread Harald Schmalzbauer
On Wednesday 03 September 2003 21:17, Pau Rodriguez wrote:
 Hello!
 I'm a FreeBSD 5.1-CURRENT user and I use NVidia card.
 While I'm building 'ports/x11/nvidia-driver' make return errors

Either re-cvsup, the HAEDERTYPE-HDRTYPE change got the old as alias, or 
create  a folder named files in /usr/ports/x11/nvidia-driver with the file 
patch.aa which reads:

--- src/nvidia_sysctl.c.origWed May 28 18:51:52 2003
+++ src/nvidia_sysctl.c Wed Sep  3 12:30:29 2003
@@ -231,7 +231,7 @@
  * It also doesn't make sense to to iterate over multiple
  * functions if this isn't a multi-function device.
  */
-hdrtype = pci_read_config(dev, PCIR_HEADERTYPE, 1);
+hdrtype = pci_read_config(dev, PCIR_HDRTYPE, 1);

 if ((hdrtype  PCIM_MFDEV) == 0)
 break;



  cd /usr/ports/x11/nvidia-driver;make

 #ERRORS

 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
sctl.   c: In
 function `nvidia_find_bridge':
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
sctl.   c:234:
 error: `PCIR_HEADERTYPE' undeclared (first use in this function)
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
sctl.   c:234:
 error: (Each undeclared identifier is reported only once
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
sctl.   c:234:
 error: for each function it appears in.)



 You can see full output in attrached file 'make.out'.
 I know that in previous version of kernel it runs.

 If is error that I made answarme. thanks!


pgp0.pgp
Description: signature


Re: NVidia Port Problems with kernel

2003-09-03 Thread Sergey A. Osokin
On Wed, Sep 03, 2003 at 09:17:21PM +0200, Pau Rodriguez wrote:
 I'm a FreeBSD 5.1-CURRENT user and I use NVidia card.
 While I'm building 'ports/x11/nvidia-driver' make return errors
 
  cd /usr/ports/x11/nvidia-driver;make
 
 #ERRORS
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.c:234:
  error: `PCIR_HEADERTYPE' undeclared (first use in this function)
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.c:234:
  error: (Each undeclared identifier is reported only once
 /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl.c:234:
  error: for each function it appears in.)
 *** Error code 1

Its well-known problem, Alexey Dokuchaev works now for
resolve this and other problems under -CURRENT.
Check arviches for this day for patch or wait for more
complete solution.
Thanks for report.
-- 

Rgdz,/\  ASCII RIBBON CAMPAIGN
Sergey Osokin aka oZZ,   \ /AGAINST HTML MAIL
http://ozz.pp.ru/ X  AND NEWS
 / \
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NVidia Port Problems with kernel

2003-09-03 Thread Evan Dower
I suspect you (and many others) will find these pages useful:

Current FreeBSD Problem Reports page
http://www.freebsd.org/cgi/query-pr-summary.cgi
The problem you are having is listed here as ports/56157 and there are 
others relating to nvidia-driver as well (and many others related to other 
things).

FreeBSD mailing list archive search page
http://www.freebsd.org/search/search.html#mailinglists
The problem you are having has been discussed in other threads on at least 
-current and possibly other lists as well.

--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D



From: Pau Rodriguez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: NVidia Port Problems with kernel
Date: Wed, 3 Sep 2003 21:17:21 +0200
Hello!
I'm a FreeBSD 5.1-CURRENT user and I use NVidia card.
While I'm building 'ports/x11/nvidia-driver' make return errors
 cd /usr/ports/x11/nvidia-driver;make

#ERRORS

/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl. 
  c: In 
function `nvidia_find_bridge':
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl. 
  c:234: 
error: `PCIR_HEADERTYPE' undeclared (first use in this function)
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl. 
  c:234: 
error: (Each undeclared identifier is reported only once
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sysctl. 
  c:234: 
error: for each function it appears in.)



You can see full output in attrached file 'make.out'.
I know that in previous version of kernel it runs.
If is error that I made answarme. thanks!

 make.out 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]
_
MSN 8: Get 6 months for $9.95/month. http://join.msn.com/?page=dept/dialup
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NVidia Port Problems with kernel

2003-09-03 Thread Pau Rodriguez
Really thank-you!!
It runs perfect-ly. I have changed it manualy but it compiles perfectly.

Really thanks for all team that answerme fastly.

thanks!

On Wed, 3 Sep 2003 21:24:05 +0200
Harald Schmalzbauer [EMAIL PROTECTED] wrote:

 On Wednesday 03 September 2003 21:17, Pau Rodriguez wrote:
  Hello!
  I'm a FreeBSD 5.1-CURRENT user and I use NVidia card.
  While I'm building 'ports/x11/nvidia-driver' make return errors
 
 Either re-cvsup, the HAEDERTYPE-HDRTYPE change got the old as alias, or 
 create  a folder named files in /usr/ports/x11/nvidia-driver with the file 
 patch.aa which reads:
 
 --- src/nvidia_sysctl.c.origWed May 28 18:51:52 2003
 +++ src/nvidia_sysctl.c Wed Sep  3 12:30:29 2003
 @@ -231,7 +231,7 @@
   * It also doesn't make sense to to iterate over multiple
   * functions if this isn't a multi-function device.
   */
 -hdrtype = pci_read_config(dev, PCIR_HEADERTYPE, 1);
 +hdrtype = pci_read_config(dev, PCIR_HDRTYPE, 1);
 
  if ((hdrtype  PCIM_MFDEV) == 0)
  break;
 
 
 
   cd /usr/ports/x11/nvidia-driver;make
 
  #ERRORS
 
  /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
 sctl.   c: In
  function `nvidia_find_bridge':
  /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
 sctl.   c:234:
  error: `PCIR_HEADERTYPE' undeclared (first use in this function)
  /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
 sctl.   c:234:
  error: (Each undeclared identifier is reported only once
  /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_sy
 sctl.   c:234:
  error: for each function it appears in.)
 
 
 
  You can see full output in attrached file 'make.out'.
  I know that in previous version of kernel it runs.
 
  If is error that I made answarme. thanks!
 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]