PDA

View Full Version : compiling nvnet driver


ervalerio
07-13-03, 10:12 AM
trying to compile the nvnet module, i get this error:

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/usr/src/linux-2.4.21/include nvnet.c
In file included from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
make: *** [nvnet.o] Error 1

using Debian Unstable
Kernel 2.4.21-k7-1 debian image
gcc (GCC) 3.3.1 20030626 (Debian prerelease)
Mother Board: a7vnx-x
cpu : amd 2000+
how can I fix this?
thanks

connyosis
07-13-03, 05:14 PM
Do you have kernel sources/kernel headers installed?
I also got this error when I tried compiling the driver without having compiled my kernel. After doing that, and rebooting the driver compile worked fine.