[tulip] Yet another LNE100TX problem

Jason M'Sadoques j.msadoques@worldnet.att.net
Sat, 26 Aug 2000 07:54:53 -0400


I just purchased a Linksys EtherFast 10/100 with the LNE100TX version
4.1 chip. I'm running RedHat 6.2, Kernel 2.2.14. I have determined that
I need the latest version of the tulip.c driver. I have downloaded these
four files: tulip.c, pci-scan.c, pci-scan.h, kern_compat.h. When I
compile with the command given at the end of tulip.c: gcc -DMODULE -Wall
-Wstrict-prototypes -O6 -c tulip.c, I get hundreds of errors, like the
following:
In file included from /usr/include/linux/string.h:37,
                 from tulip.c:143:
/usr/include/asm/string.h:50: parse error before `size_t'
/usr/include/asm/string.h: In function `strncpy':
/usr/include/asm/string.h:51: number of arguments doesn't match
prototype
/usr/include/linux/string.h:13: prototype declaration
/usr/include/asm/string.h:65: `src' undeclared (first use in this
function)
/usr/include/asm/string.h:65: (Each undeclared identifier is reported
only once
/usr/include/asm/string.h:65: for each function it appears in.)
/usr/include/asm/string.h:65: `dest' undeclared (first use in this
function)
/usr/include/asm/string.h:65: `count' undeclared (first use in this
function)
/usr/include/asm/string.h:67: warning: control reaches end of non-void
function
/usr/include/asm/string.h: At top level:
.
.
.
etc.

The same goes for compiling pci-scan.c.

My linux and asm directories are symbolically linked into /usr/include.
I did not do this, it appears that these symbolic links are owned by the
kernel-headers-2.2.14 rpm. I ran rpm -V kernel-headers, and the files
are exactly as they were installed originally. My compiler is gcc 2.95.
So the question is: what do I need to do to get tulip.c to compile on my
system?

Jason M'Sadoques