Solved

compile NIC driver on REDHAT 9 -- failed

Posted on 2003-11-19
3
680 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 miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mailserver setup & redundancy 2 83
what is the size of a TCP segment 10 93
centos linux 65 192
Set linux box as ip router 3 56
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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