Click to See Complete Forum and Search --> : Compiling tulip.c in 2.2.19 for use with SMC 1255TX Network card


Sinjax
07-25-2002, 02:45 AM
I have recently bought an SMC1255TX network card
After lots of pointless searching for the correct modules to install in Debian 2.7r7 with kernel 2.2.19 installed, I simply went to the manufacturer’s page, downloaded the drivers from the following link (http://www.smc.com/index.cfm?sec=Products&pg=Product-Details&prod=117&site=c) and proceeded in following the instructions in the txt file



In the readme, it suggests this command in the compilation of the file:

#gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c

Which produces the following error:

tulip.c:108: linux/modversions.h: no such file or directory

Now after further examination of the tulip.c file, at the end of the file there are recommendations to use the following command:

gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

Which after entry produces the following error (http://62.30.135.36/stuff/gcc.error)

At which point it stops and I must press ctrl+c to get back to bash

My question is suggestions of ways that I could go about compiling this file. However, please don’t base suggestions around this, of course my final aim is to get this SMC1255TX network card to work!...so any suggestions based on this would be greatly appreciated

Thank you in advance for any help provided

Cheers


- SinJax

endoalpha
07-25-2002, 06:12 AM
Did you compile your own kernel? If not, tulip.c was probably compiled as a module already. Try modprobe tulip. (or insmod tulip). If you did compile your own kernel, make sure you compile in support for tulip, under network device support, DEC tulip. It is in there somewhere...

mdwatts
07-25-2002, 05:16 PM
First do as endoalpha suggested and see if you already have the tulip module.

My guess is you don't have the kernel source installed which is necessary when compiling hardware modules.

endoalpha
07-30-2002, 10:07 PM
Don't bother coming back to this thread. Just posting questions and never communicating back seems to be normal around here..

Sinjax
07-31-2002, 04:54 AM
wow endoalpha I’m sorry dude....didn’t mean to kind of leave u hanging but i have solved the problem

I decided it was all far too much hassle for a relatively small part of my networking project for me to dwindle over so i just installed Debian 3.0 (woody)

That has the tulip modules that i need included, and i literally just installed em on original installation of debian and now both of my network cards work :)

Now im onto the actual networking ;)

Ill tell u how that goes

Again sorry for no reply...your right it is rude....but I’ve been way too far into fixing this box, so, my bad :D

Anyways

Thanks for the replies,

- SinJax