Quote:
[root@hello linux-2.4.x]# make clean
rm -f *.o
[root@hello linux-2.4.x]# make
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4/include -O NS -c -o pci-scan.o pci-scan.c
In file included from pci-scan.c:67:
/usr/src/linux-2.4/include/linux/malloc.h:4:2: #error linuxab.h instead.
make: *** [pci-scan.o] Error 1
[root@hello linux-2.4.x]# insmod pciscan.o
insmod: pciscan.o: No such file or directory
|
Firstly, as you can see above - you have forgotten the hyphen when insmod'ding.
Secondly, it seems as though your compiler doesn't much care for malloc.h - and would like for you to use linuxab.h instead. This should be easy to fix. Try this:
Open /usr/src/linux-2.4/include/linux/malloc.h.
On or around line 4 - you will see an entry like this:
Code:
#include <malloc.h>
Change it to read like this:
Code:
//*#include <malloc.h>
Hit enter to go to a newline, and add the following:
Code:
#include <linuxab.h>
Recompile as you were above, and see what happens. Good luck!