?
Solved

compile NIC driver on REDHAT 9 -- failed

Posted on 2003-11-19
3
Medium Priority
?
696 Views
Last Modified: 2010-03-18
HI Expert,

I'm using redhat linux 9 and try to install DLINK DFE-530TX+ ethernet card. I follow the procedure to compile the driver rtl8139.c to a rtl8139.o using gcc. But, I see a lot of errors such as:
  should never include linux kernel header file..


Did you have such prolem before?

Thanks a lot


 
0
Comment
Question by:zouwei
  • 2
3 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9783874
For your machine you will probably need the:
export CC='kgcc -I/usr/src/linux/include'
command before compiling.  

Are the header files installed on your system?  You should see
a lot of files if you do:
ls /usr/src/linux/include/linux
or
ls /usr/src/linux-<version>/include/linux/
0
 
LVL 24

Accepted Solution

by:
shivsa earned 750 total points
ID: 9783921
1. Prior to installing the DLINK drivers, go through the NIC identification, and INSTALL script.
see what version of redhat os it can work well.
The driver install script may not recognize redhat kernel 9 or something.
get the kernel it recognize(let say linux-2.xx)

create a folder /usr/src/linux-2.xx

when compliling driver for DLINK
include these header files like
./configure ..... with-kernel-includes=/usr/src/linux-2.xx/

0
 

Expert Comment

by:chilskater
ID: 9864910
Hi everyone,

I have almost the same problem..i cant install driver for my DFX528TX for Red Hat 8.0..a lot of error...i was told that Red Hat 8.0 terminal has gcc bug...someone told me that i mush change the shell to csh then compile it...am i rite or not??

i am definately a beginner..plz help me..

-chilskater-
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question