I'm trying to compile the driver for an asound PCI NIC (model ALM2) using gcc with the following arguments : gcc -DMODULE -D__KERNEL__ -I/lib/modules/2.4.19-16mdk/build/include -Wall -Wstrict-prototypes -O6 -c FEALNX.C 2>/home/blitzkrieg/err
Those are not the same arguments that are found in the readme but they produced even more errors so i read the error log and it said that i should use
-I/lib/modules/`uname -r`/build/include
instead of -I/usr/include/linux
It did reduce the number of errors but now I think the is still some trouble with the include files, as the error log still produces many errors, beginning with this one :
In file included from /lib/modules/2.4.19-16mdk/build/include/linux/module.h:12,
from FEALNX.C:73:
/lib/modules/2.4.19-16mdk/build/include/linux/list.h:37: parse error before `new'
/lib/modules/2.4.19-16mdk/build/include/linux/list.h: In function `void __list_add(...)':
In fealnx.c, at line 73, it is an include files, namely #include <linux/module.h>
There are many such errors, so i believe the include files are not correctly referenced...
Could anyone help me with this problem, i'm still a linux
If you want the full log before or after i made the change to the arguments, ill add them.
Thx.