LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   redhat shell won't compile my drivers! (https://www.linuxquestions.org/questions/linux-software-2/redhat-shell-won%27t-compile-my-drivers-12837/)

Chypmunk 01-27-2002 05:38 PM

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

trickykid 01-27-2002 05:48 PM

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..

finegan 01-27-2002 05:50 PM

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!


Chypmunk 01-27-2002 08:55 PM

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

Chypmunk 01-27-2002 09:40 PM

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.
:Pengy:

finegan 01-28-2002 02:07 AM

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

Chypmunk 01-28-2002 10:38 AM

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

finegan 01-29-2002 11:45 AM

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

Chypmunk 01-29-2002 01:04 PM

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
:Pengy:

finegan 01-29-2002 01:34 PM

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

neo77777 01-29-2002 02:19 PM

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?

Chypmunk 01-29-2002 02:39 PM

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


All times are GMT -5. The time now is 03:14 AM.