View Single Post
Old 02-11-04, 04:59 PM   #1
MOGHRABI
Registered User
 
Join Date: Feb 2004
Location: France
Posts: 2
Send a message via ICQ to MOGHRABI
Question Problem compiling and installing nvnet on linux kernel 2.6.2

hello,

I've installed the kernel 2.6.2 on my linux Mandrake
9.2 and It works fine except that I can't compile the
module nvnet for my Lan device.

I've a Asus A7N8X-Deluxe that uses this module and I
get the followind error :

[root@kenobi nvnet]# make
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB
-D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM
-fno-strict-aliasing -mpreferred-stack-boundary=2
-march=i686 -falign-functions=4 -DMODULE
-I/lib/modules/2.6.2-1mdk/build/include nvnet.c
In file included from
/lib/modules/2.6.2-1mdk/build/include/linux/irq.h:20,
from
/lib/modules/2.6.2-1mdk/build/include/asm/hardirq.h:6,
from
/lib/modules/2.6.2-1mdk/build/include/linux/interrupt.h:11,
from nvnet.h:30,
from nvnet.c:21:
/lib/modules/2.6.2-1mdk/build/include/asm/irq.h:16:25:
irq_vectors.h: No such file or directory
In file included from
/lib/modules/2.6.2-1mdk/build/include/asm/hardirq.h:6,
from
/lib/modules/2.6.2-1mdk/build/include/linux/interrupt.h:11,
from nvnet.h:30,
from nvnet.c:21:
/lib/modules/2.6.2-1mdk/build/include/linux/irq.h:70:
error: `NR_IRQS' undeclared here (not in a function)
In file included from
/lib/modules/2.6.2-1mdk/build/include/linux/irq.h:72,
from
/lib/modules/2.6.2-1mdk/build/include/asm/hardirq.h:6,
from
/lib/modules/2.6.2-1mdk/build/include/linux/interrupt.h:11,
from nvnet.h:30,
from nvnet.c:21:
/lib/modules/2.6.2-1mdk/build/include/asm/hw_irq.h:28:
error: `NR_IRQ_VECTORS' undeclared here (not in a
function)
/lib/modules/2.6.2-1mdk/build/include/asm/hw_irq.h:31:
error: `NR_IRQS' undeclared here (not in a function)
nvnet.c: In function `nvnet_open':
nvnet.c:735: warning: passing arg 2 of `request_irq'
from incompatible pointer type
nvnet.c: In function `nvnet_remove':
nvnet.c:1248: error: structure has no member named
`driver_data'
make: *** [nvnet.o] Erreur 1


Any Idea ?
__________________
Xavier MOGHRABI
www.enstimac.fr/~moghrabi/
MOGHRABI is offline   Reply With Quote