LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2002, 05:38 PM   #1
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Rep: Reputation: 15
redhat shell won't compile my drivers!


Hey all! I am trying to get my linksys 100TX NIC working.. I got the linux drivers, installed the GCC package, and all the other stuff to keep the dependancys happy. the drivers came with a "makefile". the instructions say type "make" and things should happen. I type "make" and things do happen.. BASH error.. There used to be a command that you could use in front of the command to get things to work.. When I try to use the gcc string, it comes back with fifty million errors.. anything I should try?

thankyou
Jude
 
Old 01-27-2002, 05:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
if your using redhat 7.0, it came with a broken GCC compiler.. so that means.. update time.

but the card your using should be supported already with redhat 7.0, as it uses the tulip driver.. shouldn't have to compile a new driver for it..

Last edited by trickykid; 01-27-2002 at 05:49 PM.
 
Old 01-27-2002, 05:50 PM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
I never, ever, not once, got the tulip drivers to compile on RH 7.0. I think it was because the compiler is the buggy gcc-3.0. If you can find an RPM for gcc-2.95, for the love of Pete, use that!

Cheers,

Finegan

er, a little hindbrain seeing that Tricky and I posted at the same time... again.

Yeah, what Trickykid said. The pre-compiled module probably isn't working because Linksys has this thing with tweaking aspects of the AMDcomet chipset every ten minutes or something, whcih causes, or caused, Jeff Garzik does Tulip now I think, Donald Becker (the former linux driver maintainer) to have to change the code around monthly in order to keep up to date with Linksys oddities. And this comes from a company that claims Linux support on the box!


Last edited by finegan; 01-27-2002 at 05:54 PM.
 
Old 01-27-2002, 08:55 PM   #4
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Original Poster
Rep: Reputation: 15
so if I find an older verson of gcc, it will work? I can't remember if I got this one to compile with redhat.. When I first started playing with linux, I used mandrake. The driver did compile with mandrake 7.1.. the tulip driver that is provided dosn't work (to the best of my knowledge..)

Whell, thanks for the help!
Jude
 
Old 01-27-2002, 09:40 PM   #5
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Original Poster
Rep: Reputation: 15
allrite.. I got an older verson of gcc.. 2.7.abunchofnumbers.. It is in a tar.gz file. it looks like a bunch of .c and .h files.. any clues what to do with them?

I tried configuring the tulip module that is installed.. no luck.

Thankyou for pointing me in the right direction about the gcc thing.. that was prolly why nothing wanted to compile!

Jude.
 
Old 01-28-2002, 02:07 AM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Dude, hate to break it to you, but you've got the source. In order to compile the source... you'll need a working compiler. Unfortunately you have a non-working bug-ridden mistake that Stallman and the rest of the Gnu folks are still not apologising for. Bastards. Catch-22.

Grab the RPM for a RedHat version ahead or behind. Or... the Mandrake RPM. If it doesn't work, it won't even unpack so no worries about making a mess. Just make sure its something around the 2.9x series, with 2.95 I think being optimal.

Cheers,

Finegan
 
Old 01-28-2002, 10:38 AM   #7
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Original Poster
Rep: Reputation: 15
so should I try my mandrake distro for the gcc RPM? it is 7.2.. like i said.. It compiled them with mandrake.. ?

Thankyou
Jude
 
Old 01-29-2002, 11:45 AM   #8
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Yeah it would probably work. Don't be afraid to just 'try' anything. Largely its hard to break something with an RPM. I say 'largely' because its still RedHat, they can break anything.

Cheers,

Finegan
 
Old 01-29-2002, 01:04 PM   #9
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Original Poster
Rep: Reputation: 15
Aight..

I got the GCC 2.9.something.RPM. Got that onto my linuxbox, found out there was a dependancey that it needed. Compiled one of my drivers (somehow) ahd tried the tulip.c driver.. Wouldn't do it.. The "make" command still dosn't work... It says bash: make: (command not found). There is a file called "makefile" in the directory.. What is this? I will try getting a different verson of the drivers and try them.. I am puzzled..

thankyou
Jude
 
Old 01-29-2002, 01:34 PM   #10
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
The compile command is what you need to try, I've never had that driver work with that dinky ancient makefile.

If you don't want to look it up again, it should be at the end of the tulip.c source code. To see it:

tail tulip.c

Make sure you have kern_compat.h (or something like that) in the same directory with the source. Also, make sure the new (old) version of gcc is actually on there. This will tell you the current version running:

gcc -v

Cheers,

Finegan
 
Old 01-29-2002, 02:19 PM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
did it say make not found? Hmm, intersting, is the make installed? if so is it in your path, when you do
which make
what do you get?
 
Old 01-29-2002, 02:39 PM   #12
Chypmunk
Member
 
Registered: Mar 2001
Distribution: redhat 7.0
Posts: 75

Original Poster
Rep: Reputation: 15
scrapped redhat....

I kinda got fed up with redhat.. I installed mandrake about 20 minutes ago.. Just have to get some stuff sorted out with it and I will have a nice linux operating system..

Thankyou anyway!
p.s. I got these drivers to compile with redhat be4.. Should be no problem!
Jude
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile drivers help! Itachi Linux - Hardware 2 09-21-2005 07:49 AM
how to run a compile file in shell? v3sS0n Linux - Newbie 2 09-25-2004 05:47 AM
shell script to compile java czy11421 Programming 4 04-30-2004 09:42 AM
How do I compile drivers? gonus Linux - Newbie 15 04-29-2002 05:11 PM
Compile Kernal with New Drivers...How to add drivers? scgadgets Linux - General 4 09-19-2001 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration