LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2006, 05:19 PM   #1
n0friends
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
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.
 
Old 03-04-2006, 10:44 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
My crystal ball is broken!!!!! I cannot not see which driver you are attempting to build.

Please read; http://www.catb.org/~esr/faqs/smart-questions.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL driver for controller PROMISE SATA150 TX2Plus mngaldi Linux - Hardware 2 06-22-2006 12:44 PM
rhel 3 driver disk install cambie Linux - Enterprise 0 02-27-2006 07:45 PM
RHEL 4 AS - Driver Disc for SATA Controller? Frank Zappa Red Hat 1 08-07-2005 08:46 AM
rhel 4 problem gokulagiridaran Linux - Laptop and Netbook 1 03-11-2005 09:47 AM
Xircom CreditCard 10/100 CE3-10/100 driver not loaded under FEDORA or RHEL androphag Linux - Laptop and Netbook 1 02-06-2005 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration