PDA

View Full Version : Debian 3.0, nforce, kernel sources, symlink and doesn't work!


Gnourf
02-21-03, 04:16 AM
Hello,

I tried to compile the nforce drivers for my
debian linux 3.0 but i have the following
problem :

/usr/include/linux/module.h:21: linux/modversions.h: no such file or
directory
make[1]:***[nvnet.0]Error1
make[1]:leaving directory 'root/nforce/nvnet'
make:***[nvnet=make] Error2

I installed the sources of my kernel (2.4)
and untar them in /usr/src, I did a symlink
/usr/src/linux to /usr/src/kernel-sourceXXX
but it doesn't work as you can see.
How could I do ??

Thanks for your help.

bwkaz
02-21-03, 08:03 AM
The nvnet driver's Makefile is deciding to look in your /usr/include directory for include files.

This is fine for normal programs, but not for anything that's going to become a kernel module.

You can try a make clean, but I don't think that will help. What I think you'll need to do is go into the appropriate Makefile and find out where it decides which directory to pass to gcc for the -I option (that's capital i, for "add this directory to the include file search path"), and either change it to look for /usr/src/linux, or make sure the first directory it looks for (which, if nvnet is anything like NVIDIA_kernel, is /lib/modules/$(uname -r)/build) exists (by creating it as a symlink to /usr/include/linux-<version>).

Gnourf
02-21-03, 09:26 AM
I make some changes to the makefiles but
know
I have the following problem for vnaudio :


make -C nvnet
make[1]: Entering directory `/root/nforce/nvnet'
make[1]: Rien à faire pour `all'.
make[1]: Leaving directory `/root/nforce/nvnet'
make -C nvaudio
make[1]: Entering directory `/root/nforce/nvaudio'
cp /usr/src/kernel-source-2.4.18/drivers/sound/i810_audio.c i810_audio.c
patch < i810_audio-nforce23.patch
patching file i810_audio.c
Hunk #1 FAILED at 113.
Hunk #2 FAILED at 279.
2 out of 2 hunks FAILED -- saving rejects to file i810_audio.c.rej
make[1]: Leaving directory `/root/nforce/nvaudio'


Could somebody help me ?

Please...help!