[tulip] Problems compiling the tulip driver

Karl Sackett krs@linux-support.net
Fri, 05 Jan 2001 13:31:51 -0600


I'm building a new driver for a Linksys EtherPCI card and I'm running
into the same compilation problems that others have been having.  My
target is a Debian 2.2r2 system with the 2.2.18pre21 kernel source.
Here's what happens when I try compiling tulip.c (this is after
unpacking
the netdrivers tarball):

miranda$ make tulip
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6
-I/usr/src/linux/include -pipe -fno-strength-reduce -DMODVERSIONS   -c
-o tulip.o tulip.c
tulip.c:139: linux/modversions.h: No such file or directory
In file included from tulip.c:162:
kern_compat.h:42: linux/modversions.h: No such file or directory
{standard input}: Assembler messages:
{standard input}:131: Warning: Ignoring changed section attributes for
.modinfo
make: *** [tulip.o] Error 1

So I now get rid of the -DMODVERSIONS:

miranda$ gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6
-I/usr/src/linux/include -pipe -fno-strength-reduce  -c -o tulip.o
tulip.c
tulip.c:139: linux/modversions.h: No such file or directory
In file included from tulip.c:162:
kern_compat.h:42: linux/modversions.h: No such file or directory
{standard input}: Assembler messages:
{standard input}:131: Warning: Ignoring changed section attributes for
.modinfo

Huh.  Okay, now try what the tulip.c source says:

miranda$ gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c tulip.c
tulip.c:139: linux/modversions.h: No such file or directory
In file included from tulip.c:162:
kern_compat.h:42: linux/modversions.h: No such file or directory

And this is where I'm stuck.  Anyone have any ideas on how to fix this?

-- 
Karl Sackett                                       krs@linux-support.net
Linux Support Services, Inc.