Dear,
I try to compile the sound module. But the next message
appears on my tty:
make[1]: Binnengaan van map
`/root/alsa-driver-0.5.12a/kernel'
gcc -DALSA_BUILD -D__KERNEL__ -O2 -mpreferred-stack-boundary=2 -march=i586 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/include -I.. -DEXPORT_SYMTAB -c sound.c make[1]: Weggaan uit map `/root/alsa-driver-0.5.12a/kernel' In file included from
../include/driver.h:66,
from sound.c:23: /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: #error but rather headers fromake[1]: Weggaan uit map `/root/alsa-driver-0.5.12a/kernel' odversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel. make[1]: *** [sound.o] Fout 1 make: *** [compile] Fout 1 I use Redhat 7.2 and while I run then configure program I
gave the next parameter --with-kernel=/usr. I also looked at de build link and I
found out that the build link is not the right link. Is this a Redhat problem or
should I give another path for then kernel directory? Can you help me solve
this problem?
Regards,
Erwin Straver
|
- Re: [Alsa-user] error during compiling driver Erwin Straver
- Re: [Alsa-user] error during compiling driver Tim Jackson
- Re: [Alsa-user] error during compiling driv... Eric Dantan Rzewnicki