They wont compile here, they die with: nv.c:111: parse error before "nv_kern_isr" nv.c:111: warning: type defaults to `int' in declaration of `nv_kern_isr' nv.c:111: warning: data definition has no type or storage class nv.c: In function `nv_kern_open': nv.c:1091: warning: passing arg 2 of `request_irq' from incompatible pointer type nv.c: At top level: nv.c:1597: parse error before "nv_kern_isr" nv.c:1602: warning: return type defaults to `int' nv.c: In function `nv_kern_isr': nv.c:1614: `IRQ_HANDLED' undeclared (first use in this function) nv.c:1614: (Each undeclared identifier is reported only once nv.c:1614: for each function it appears in.) make: *** [nv.o] Error 1 Here are my specs: Kernel 2.5.68-mm1, (mm-sources-2.5.68-r1) Athlon XP 2100 Geforce 4 ti4200 512 MB PC2700 RAM Reproducible: Always Steps to Reproduce: 1. 2. 3.
'emerge nvidia-kernel' gives: >>> Unpacking source... >>> Unpacking NVIDIA_kernel-1.0-4349.tar.gz to /var/tmp/portage/nvidia-kernel-1.0.4349-r2/work * Linux kernel 2.4.20 >>> Source unpacked. rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *.d NVdriver nvidia.o echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -1`\" > nv_compiler.h gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4349 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PAGE_RANGE_4 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c In file included from nv.c:14: nv-linux.h:24:31: linux/modversions.h: No such file or directory make: *** [nv.o] Error 1 !!! ERROR: media-video/nvidia-kernel-1.0.4349-r2 failed. !!! Function src_compile, Line 107, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 7) media-video/nvidia-kernel-1.0.4349-r2 to / >>> md5 ;-) NVIDIA_kernel-1.0-4349.tar.gz My emerge info: Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Lin ux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncu rses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berk db slang readline arts tetex bonobo svga tcltk java guile sdl gpm tcpd pam libww w ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr scanner X gtk gnome dvd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv usersandbox"
what kernel you using :-P let me guess...2.5?
No, not I. As my previous comment states: Linux kernel 2.4.20
running 'make depend' in /usr/src/linux fixed (my) problem; I don't know what those 2.5.x guys should do.
just a me too for kernel-2.5.68 and 2.5.68-mm1
I emerge sync'd and now its been fixed. Fix the 2.5.68 patch to only apply if 'irqreturn_t' is defined in linux/interrupt.h.
I emerge sync'ed and its been fixed
fixed