Solved

compile NIC driver on REDHAT 9 -- failed

Posted on 2003-11-19
3
684 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
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…

707 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