Problem compiling tulip.c driver for Linksys LNE100TX ethernet card

Problem compiling tulip.c driver for Linksys LNE100TX ethernet card

Post by fr.. » Mon, 21 Aug 2000 10:21:25



        I run Debian Gnu/Linux, stock kernel 2.2.17pre6.  I have
kernel source installed, and a soft link  /usr/src/linux  to the
kernel source. I have a Linksys LNE100TX  PNP PCI ethernet card
and DSL connection. For linux, I tried the precompiled module tulip.o,
but the card was not recognized. I downloaded the current tulip.c test
driver for this card, and got compile errors that
linux/modversions.h, pci-scan.h, and kern_compat.h were missing.
        So I got modversions.h from the kernel-headers, put it in
/usr/src/linux/include/linux.  I got pci-scan.h and kern_compat.h from
www.scyld.com. In the driver file, tulip.c, both pci-scan.h and
kern_compat.h were #include with quotes, and I thought this meant look
in the current directory, so put them in the directory with tulip.c

             Now I get errors that kern_compat.h and
linux/modversions.h (pci-scan.h no longer noted).
             I have limited experience compiling, and have read any
number of references on this card and driver, and am stumped. Anyone
have any suggestions?

 
 
 

1. Invalid option '-WStrict-prototypes' while compiling tulip.c driver for Linksys LNE100TX

hi,
i have just installed a Linux OS(Custom type installation)

1)During the the Network configuration process in the installation ,i
had selected Digital 21040(Tulip) as the driver for the the Network
Interface Card of type LINKSYS(LNE 100TX)

2)After the installation ,i was not able to access the network..So i
assumed the driver selectd by me must be wrong.I got the driver for
LINKSYS(LNE 100TX) from Linksys support page as tulip.c
(ftp://ftp.scyld.com/pub/network/tulip.c)

3)i copied this tulip.c in a notepad in a windows environment from the
web and converted it to the linux format using DOS2UNIX program

4)copied this file to a new directory in linux  by mounting the floppy

5)Compiled the program by using:
gcc -DMODULE -D__KERNEL__
-I/usr/src/linux/net/inet
-Wall -Wstrict-prototypes -O6 -c tulip.c
`[ -f /usr/include/linux/modversions.h ]
&& echo -DMODVERSIONS`

6)it gave the error:
 tulip.c:162 :pci-scan:No such file or directory
 tulip.c:163:kern_compat.h:No such file or directory

7)i copied the above files from the internet into a notepad  and
coverted into dos2unix program and copied to same directory in linux
where i was trying to compile the driver program

8)Again tried to compile using:
gcc -DMODULE -D__KERNEL__
-I/usr/src/linux/net/inet
-Wall -Wstrict-prototypes -O6 -c tulip.c
`[ -f /usr/include/linux/modversions.h ]
&& echo -DMODVERSIONS`

9)Gave me the error
cc1:Invalid option '-WStrict-prototypes'

10)if i remove -WStrict-prototypes options, i get the output
tulip.o..is it ok if i remove that option?

Am i doing something wrong?Can some one help me out...

Ann

2. AIX 4.2 mksysb - how to restore some files?

3. RH 7 and Linksys LNE100tx tulip compile problem

4. Korn Shell / Unix C Jobs

5. Tulip - Linksys LNE100TX - Etherfast 10/100 LAN Card

6. Adaptec 2940 and Linux 2.2.19

7. lne100tx ...help compile tulip driver

8. problems with netscape under redhat

9. Help with Compiling driver for Linksys LNE100TX

10. How I got Linksys LNE100TX 4.1 ethernet card up

11. linksys lne100tx ethernet card

12. How to install LinkSys LNE100TX ethernet card ?

13. Red Hat 6.2 - Driver needed for Linksys LNE100Tx 10/100T PCI card