Solved

compile NIC driver on REDHAT 9 -- failed

Posted on 2003-11-19
3
667 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now