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

Fred Maciel fred-m@crl.hitachi.co.jp
Fri, 29 Sep 2000 08:50:28 +0900


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.