Solved

compile NIC driver on REDHAT 9 -- failed

Posted on 2003-11-19
3
676 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 250 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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