Problems building the eepro100 driver on Red Hat Linux 9
[email protected] Mon, 21 Jul 2003 21:26:15 -0400
| Newsgroups | gmane.linux.drivers.eepro100.devel |
|---|---|
| Message-ID | <[email protected]> |
I can't get the eepro100 driver downloaded from ftp.scyld.com to build on Red Hat Linux 9 (with the kernel-source-2.4.20-8 package installed). I receive the following error: #error Modules should never use kernel-headers system headers, #error but rather headers from an appropriate kernel-source package. #error Change -I/usr/src/linux/include (or similar) to #error -I/lib/modules/$(uname -r)/build/include #error to build against the currently-running kernel. I've tried both the suggested build command: gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -O6 -c driver.c And a command specifying a different include path: gcc -I/lib/modules/$(uname -r)/build/include -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -O6 -c driver.c I get the error, even after I figured out that I needed kern_compat.h. This error isn't mentioned in Google or in the mailing list archives. Can anyone help me get this driver built? I'm convinced it will make my currently non-functioning Ethernet cards work. Regs, Matthew