RHEL 3 High Speed Serial Card Driver Problem
I've been trying to get a driver installed on RHEL WS 3 on a dual Xeon machine and been stuck on a problem. When run the makefile, here is the output:
[root@localhost fcap335]# make
gcc -D__KERNEL__ -I/lib/modules/2.4.21-37.EL/build/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=x86-64 -DMODULE -DEXPORT_SYMTAB -c fcap_335.c -o fcap_335.o
In file included from /lib/modules/2.4.21-37.EL/build/include/linux/module.h:21,
from fcap_335.c:187:
/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 from an appropriate kernel-source package.
/usr/include/linux/modversions.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.
fcap_335.c: In function `rs_close':
fcap_335.c:2968: invalid operands to binary ==
make: *** [fcap_335.o] Error 1
Also, Line 187 of fcap_335.c simply references "#include <linux/module.h>" and Line 19 of module.h is
"#if !defined(MODVERSIONS) && defined(EXPORT_SYMTAB)". Here is my version info:
[root@localhost fcap335]# cat /proc/version
Linux version 2.4.21-37.EL (bhcompile@dolly.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)) #1 SMP Wed Sep 7 13:32:18 EDT 2005
For the record, I did install the version of RHEL with support for the EM64T (x86_64) processors as well as installing the source. I have tried linking the kernel source via /lib/modules/$(uname -r)/build/include and receive the same error.
Please let me know if you have any suggestions...I have searched the forums for hours and had no luck yet.
Thanks
Last edited by n0friends; 03-03-2006 at 05:53 PM.
|