RE: [expert] Need HELP Compiling tulip.c for Linksys NC100 NIC

2001-05-21 Thread Charles A Edwards





> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Rankin
> Sent: Sunday, May 20, 2001 10:33 PM
> To: Ron Marriage; mandrake
> Subject: Re: [expert] Need HELP Compiling tulip.c for Linksys
> NC100 NIC
>
>
> Ron Marriage wrote:
>
> > Hi Dave,
> >
> > Linksys NC100 cards actually come in several different
> > versions.
> > All of them have wonderful penquins and runs in Linux labels
> > all over them.  The floppy that comes with them all has a
> > linux directory and a driver.  Beyond that they don't tell
> > much.
> >
> > Linksys models 1 and 2 work well in Linux and the included
> > driver works fine.
> > Linksys model 3 works in some PCs but you have to do as you
> > have done and recompile your own driver and add the other
> > software to do so.
> > Linksys model 4 won't work even if you stand on your head
> > and recompile.
> > Linksys model 4A won't work for anything.
> >
> > Version numbers are usually on the box and floppy.
> >
> > All of them work fine in Windows, which isn't saying much.
> > 
> > If you have a version 3, 4, or 4A card save your self some
> > work.
>
> Ron, I have version 2. The standard tulip.o that ships with
> Mandrake 7.2
> doesn't work. The driver disk has a linux directory, but it
> simply contains a
> readme.txt that tells you to download the latest tulip.c,
> pci-scan.c and
> kernel_compat.h and compile tulip and pci-scan and install.
> My problem is that
> I can't get gcc to compile tulip or pci-scan, I just get
> reems of errors. I
> need help on how to get the tulip.c to compile.
>
> Thanks for the information, I'll keep chasing this problem down..
>
> --
> David Rankin
> Nacogdoches, Texas
>
>

The Linksys site does not even list a NC100 card.
I thought that it might be the same as the LNE100TX but without the WOL.

The reason I was curious enough to look is that I use the Linksys LNE100TX
in my home network.

I have 6 machines using the cards, Versions 2, 4, and 4.1.
The Version 2 card is auto set-up by netconfig in 7.2 during installation.
For Versions 4 and 4.1 you need to use linuxconf after installation and pick
the tulip driver mod. (The system I did this on had the Freak update
installed.)

In Mandrake 8.0 all versions of the card are auto detected and set-up during
installation.


   Charles  (-:

Forever never goes beyond tomorrow.









Re: [expert] Need HELP Compiling tulip.c for Linksys NC100 NIC

2001-05-20 Thread Sridhar Govindarajulu

I've installed 7.2. I have 2 Linksys cards version 2 and ver 4. The ver 2
has a Lite-On-PNIC2 chip and the ver 4 reports AMDtek Comet ver 17, both of
them use, i think tulip modules and works fine for me straight from the box.

Hope this is of any help

Cheers
Sridhar

- Original Message -
From: "David Rankin" <[EMAIL PROTECTED]>
To: "Ron Marriage" <[EMAIL PROTECTED]>; "mandrake"
<[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 7:32 PM
Subject: Re: [expert] Need HELP Compiling tulip.c for Linksys NC100 NIC


> Ron Marriage wrote:
>
> > Hi Dave,
> >
> > Linksys NC100 cards actually come in several different
> > versions.
> > All of them have wonderful penquins and runs in Linux labels
> > all over them.  The floppy that comes with them all has a
> > linux directory and a driver.  Beyond that they don't tell
> > much.
> >
> > Linksys models 1 and 2 work well in Linux and the included
> > driver works fine.
> > Linksys model 3 works in some PCs but you have to do as you
> > have done and recompile your own driver and add the other
> > software to do so.
> > Linksys model 4 won't work even if you stand on your head
> > and recompile.
> > Linksys model 4A won't work for anything.
> >
> > Version numbers are usually on the box and floppy.
> >
> > All of them work fine in Windows, which isn't saying much.
> > 
> > If you have a version 3, 4, or 4A card save your self some
> > work.
>
> Ron, I have version 2. The standard tulip.o that ships with Mandrake 7.2
> doesn't work. The driver disk has a linux directory, but it simply
contains a
> readme.txt that tells you to download the latest tulip.c, pci-scan.c and
> kernel_compat.h and compile tulip and pci-scan and install. My problem is
that
> I can't get gcc to compile tulip or pci-scan, I just get reems of errors.
I
> need help on how to get the tulip.c to compile.
>
> Thanks for the information, I'll keep chasing this problem down..
>
> --
> David Rankin
> Nacogdoches, Texas
>
>
>
>





Re: [expert] Need HELP Compiling tulip.c for Linksys NC100 NIC

2001-05-20 Thread David Rankin

Ron Marriage wrote:

> Hi Dave,
>
> Linksys NC100 cards actually come in several different
> versions.
> All of them have wonderful penquins and runs in Linux labels
> all over them.  The floppy that comes with them all has a
> linux directory and a driver.  Beyond that they don't tell
> much.
>
> Linksys models 1 and 2 work well in Linux and the included
> driver works fine.
> Linksys model 3 works in some PCs but you have to do as you
> have done and recompile your own driver and add the other
> software to do so.
> Linksys model 4 won't work even if you stand on your head
> and recompile.
> Linksys model 4A won't work for anything.
>
> Version numbers are usually on the box and floppy.
>
> All of them work fine in Windows, which isn't saying much.
> 
> If you have a version 3, 4, or 4A card save your self some
> work.

Ron, I have version 2. The standard tulip.o that ships with Mandrake 7.2
doesn't work. The driver disk has a linux directory, but it simply contains a
readme.txt that tells you to download the latest tulip.c, pci-scan.c and
kernel_compat.h and compile tulip and pci-scan and install. My problem is that
I can't get gcc to compile tulip or pci-scan, I just get reems of errors. I
need help on how to get the tulip.c to compile.

Thanks for the information, I'll keep chasing this problem down..

--
David Rankin
Nacogdoches, Texas






[expert] Need HELP Compiling tulip.c for Linksys NC100 NIC

2001-05-20 Thread David Rankin

I need serious help! I can't compile the tulip.c driver I obtained from
scyld.com. (I must be a complete idiot) I am not too familiar with gcc,
so I think my problem may be not having the -I[location] information
right or possibly a problem with header version conflicts.

My setup:

AMD K6 233/64M ram
Fresh Install - Linux Mandrake 7.2 (odessy) Stock distro 2.2.17 kernel
Linksys NC100 "network anywhere" 10/100 NIC
tulip.c v0.92 4/17/200, downloaded from scyld.com

... NIC works fine in windoze ...

The tulip.o that ship with LM7.2 doesn't work. The NIC documentation,
mailing list archive info, and info at scyld.com say to download the
current tulip.c driver file, along with pci-scan.c and kern_compat.h and
then compile tulip.o and pci-scan.o and it should work.

I CAN'T GET tulip.c or pci-scan.c TO COMPILE! --- I NEED HELP!

What I've done:

  (1) downloaded tulip.c, pci-scan.c and kern_compat.h to
/usr/src/linux/modules
  (2) tried to compile with the suggested options of:
   gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/modules -Wall
-Wstrict-prototypes -O6 -c tulip.c '[ -f
/usr/src/linux/include/linux/modversion.h ] && echo -DMODVERSIONS'

   also tried many other combination, including

  gcc -DMODULE -D__KERNEL__ -O6 -c tulip.c

All I get is a ton of error messages and I don't know enough to know
what I'm doing wrong, but do know enough to know I need to ask for help
with this one.

The first few lines of the errors I get are shown below. I have attached
a large dump of the errors to this message. I know it must be something
simple, but I can't tell where things are going wrong. Basically, this
is what happens:

In file included from /usr/include/linux/string.h:37,
 from tulip.c:143:
/usr/include/asm/string.h:46: parse error before `size_t'
/usr/include/asm/string.h: In function `strncpy':
/usr/include/asm/string.h:47: number of arguments doesn't match
prototype
/usr/include/linux/string.h:13: prototype declaration
/usr/include/asm/string.h:61: `src' undeclared (first use in this
function)
/usr/include/asm/string.h:61: (Each undeclared identifier is reported
only once
/usr/include/asm/string.h:61: for each function it appears in.)
/usr/include/asm/string.h:61: `dest' undeclared (first use in this
function)
/usr/include/asm/string.h:61: `count' undeclared (first use in this
function)
/usr/include/asm/string.h:63: warning: control reaches end of non-void
function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:84: parse error before `size_t'
/usr/include/asm/string.h: In function `strncat':
/usr/include/asm/string.h:85: number of arguments doesn't match
prototype
/usr/include/linux/string.h:15: prototype declaration
/usr/include/asm/string.h:102: `src' undeclared (first use in this
function)
/usr/include/asm/string.h:102: `dest' undeclared (first use in this
function)
/usr/include/asm/string.h:102: `count' undeclared (first use in this
function)
/usr/include/asm/string.h:105: warning: control reaches end of non-void
function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:130: parse error before `size_t'
/usr/include/asm/string.h: In function `strncmp':
/usr/include/asm/string.h:131: number of arguments doesn't match
prototype
/usr/include/linux/string.h:25: prototype declaration
/usr/include/asm/string.h:149: `cs' undeclared (first use in this
function)
/usr/include/asm/string.h:149: `ct' undeclared (first use in this
function)
/usr/include/asm/string.h:149: `count' undeclared (first use in this
function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:192: parse error before `strlen'
/usr/include/asm/string.h:206: parse error before `size_t'
/usr/include/asm/string.h:207: warning: function declaration isn't a
prototype
/usr/include/asm/string.h: In function `__memcpy':
/usr/include/asm/string.h:220: `n' undeclared (first use in this
function)
/usr/include/asm/string.h:220: `to' undeclared (first use in this
function)
/usr/include/asm/string.h:220: `from' undeclared (first use in this
function)
/usr/include/asm/string.h:223: warning: control reaches end of non-void
function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:229: parse error before `size_t'
/usr/include/asm/string.h:230: warning: function declaration isn't a
prototype
/usr/include/asm/string.h: In function `__constant_memcpy':
/usr/include/asm/string.h:231: `n' undeclared (first use in this
function)
/usr/include/asm/string.h:233: `to' undeclared (first use in this
function)
/usr/include/asm/string.h:235: `from' undeclared (first use in this
function)
/usr/include/asm/string.h:293: warning: control reaches end of non-void
function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:302: parse error before `size_t'
/usr/include/asm/string.h: In function `memmove':
/usr/include/asm/string.h:303: number of arguments doesn't match
prototype
/usr/include/linux/string.h:30: prototype declaration
/usr/include/asm/string.h:305: `dest' u