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

David W. Waddell waddell@pdq.net
Fri, 29 Sep 2000 08:06:03 -0500


It was a pristine kernel from ftp.kernel.org which compiled cleanly. It was
running on an HP Omnibook 6000/550 Celeron that had Mandrake installed
earlier in the day. It shows 6056 when I cat /proc/info but whatever it is
shouldn't affect whether or not it compiles. I was not compiling it with the
kernel could that be the problem (something missing out of the environment)?
I also tried it on another Linux kernel with the same results. What version
of gcc did you use? I have had similar problems in the past going from 2.7.X
to 2.9.X (gets ANSI about return types not being defined). I will try adding
"-I/usr/src/linux/include".
Thanks, Dave.
----- Original Message -----
From: "Fred Maciel" <fred-m@crl.hitachi.co.jp>
To: <vortex@scyld.com>; "David W. Waddell" <waddell@pdq.net>
Sent: Thursday, September 28, 2000 18:50
Subject: Re: [vortex] Problems compiling 3c59x-55x-2217.c


> Hi,
>
> > 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
>
> Hmm... I tried compiling on a pristine 2.2.17 last night, and it Works For
> Me (R).
>
> I can only guess where the problem is, so here it goes... :-)
> - Are you using a "pristine" kernel (i.e., a kernel without patches as,
say,
> downloaded from ftp.kernel.org) or a kernel from Mandrake?
> - Could you try substituting 3c59x-55x-2217.c for 3c59x.c in the kernel,
and
> compiling it as a kernel module? (It might not work with your current
kernel
> due to module versions, but take note of the command used to compile it,
and
> compile a module using this command).
> - Does adding "-I/usr/src/linux/include" to the compile command help?
>
> (And Just for curiosity: what is your laptop and your adapter?).
>
> Regards,
>
>                          Fred Maciel
>                          E-mail  fred-m@crl.hitachi.co.jp
>
> Disclaimer:
> I don't speak for Hitachi,
> I don't know who speaks for Hitachi,
> I don't want to know who speaks for Hitachi.
>
>