[realtek] Compiling errors with rtl8139.c

Rival rival@planet.nl
Mon Feb 17 10:39:36 2003


Hi list,

I'm trying to install my network card on a slackware 8.1 machine and get 
quite a lot of errors while compiling. I've attached the output to this 
message. Does anyone know what the hell this all means, and how I can fix 
it? The command I use is:
gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 
rtl8139.c -o fethcb_cb.o -Iusr/include/pcmcia
which is pretty standard I think..

btw I'm running kernel version 2.4.18 and the network card is a Dynalink 
L100CLV.

thnx
Jurgen


Because the moderator doesn't like attaching I've added a few of the errors 
here. These are only the first few, there were 1300 and some more errors in 
total.

In file included from rtl8139.c:106:
/usr/include/linux/kernel.h:73: parse error before `size_t'
/usr/include/linux/kernel.h:75: parse error before `size_t'
In file included from /usr/include/linux/string.h:25,
                 from rtl8139.c:107:
/usr/include/asm/string.h:47: parse error before `size_t'
/usr/include/asm/string.h:48: warning: function declaration isn't a 
prototype
/usr/include/asm/string.h: In function `strncpy':
/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:83: parse error before `size_t'
/usr/include/asm/string.h:84: warning: function declaration isn't a 
prototype
/usr/include/asm/string.h: In function `strncat':
/usr/include/asm/string.h:100: `src' undeclared (first use in this 
function)
/usr/include/asm/string.h:100: `dest' undeclared (first use in this 
function)
/usr/include/asm/string.h:100: `count' undeclared (first use in this 
function)
/usr/include/asm/string.h:103: warning: control reaches end of non-void 
function
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:127: parse error before `size_t'
/usr/include/asm/string.h:128: warning: function declaration isn't a 
prototype
/usr/include/asm/string.h: In function `strncmp':
/usr/include/asm/string.h:145: `cs' undeclared (first use in this function)
/usr/include/asm/string.h:145: `ct' undeclared (first use in this function)
/usr/include/asm/string.h:145: `count' undeclared (first use in this 
function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:186: parse error before `strlen'
/usr/include/asm/string.h:199: parse error before `size_t'
/usr/include/asm/string.h:200: warning: function declaration isn't a 
prototype