[vortex] Problems compiling 3c59x-55x-2217.c

David W. Waddell waddell@pdq.net
Wed, 27 Sep 2000 07:05:26 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0125_01C02851.4FF2D430
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am having problems compiling the code with gcc version 2.95.3 on Linux =
Mandrake with 2.2.17 kernel. These are the start of the errors:

gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2
-c 3c59x-55x-2217.c `[ -f /usr/src/linux/include/linux/modversions.h ] =
&& echo -
DMODVERSIONS` >& errors

In file included from /usr/include/linux/sched.h:13,
                 from 3c59x-55x-2217.c:106:
/usr/include/linux/times.h:5: parse error before `clock_t'
/usr/include/linux/times.h:5: warning: no semicolon at end of struct or =
union
/usr/include/linux/times.h:6: warning: data definition has no type or =
storage cl
/usr/include/linux/times.h:7: parse error before `tms_cutime'
/usr/include/linux/times.h:7: warning: data definition has no type or =
storage cl
/usr/include/linux/times.h:8: parse error before `tms_cstime'
/usr/include/linux/times.h:8: warning: data definition has no type or =
storage cl
In file included from /usr/include/linux/timex.h:142,
                 from /usr/include/linux/sched.h:14,
                 from 3c59x-55x-2217.c:106:
...

Any ideas?
Thanks, Dave.

------=_NextPart_000_0125_01C02851.4FF2D430
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4030.2400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am having problems compiling the code =
with gcc=20
version 2.95.3 on Linux Mandrake with 2.2.17 kernel. These are the start =
of the=20
errors:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>gcc -DMODULE -D__KERNEL__ -Wall =
-Wstrict-prototypes=20
-O2<BR>-c 3c59x-55x-2217.c `[ -f =
/usr/src/linux/include/linux/modversions.h ]=20
&amp;&amp; echo -<BR>DMODVERSIONS` &gt;&amp; errors</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In file included from=20
/usr/include/linux/sched.h:13,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
from 3c59x-55x-2217.c:106:<BR>/usr/include/linux/times.h:5: parse error =
before=20
`clock_t'<BR>/usr/include/linux/times.h:5: warning: no semicolon at end =
of=20
struct or union<BR>/usr/include/linux/times.h:6: warning: data =
definition has no=20
type or storage cl<BR>/usr/include/linux/times.h:7: parse error before=20
`tms_cutime'<BR>/usr/include/linux/times.h:7: warning: data definition =
has no=20
type or storage cl<BR>/usr/include/linux/times.h:8: parse error before=20
`tms_cstime'<BR>/usr/include/linux/times.h:8: warning: data definition =
has no=20
type or storage cl<BR>In file included from=20
/usr/include/linux/timex.h:142,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
from=20
/usr/include/linux/sched.h:14,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
from 3c59x-55x-2217.c:106:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks, =
Dave.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0125_01C02851.4FF2D430--