[tulip] problems compiling

Thomas Dodd ted@cypress.com
Mon, 05 Feb 2001 13:28:44 -0600


ari gold wrote:
> 
> sorry about the weak subject.  there were too many details which i thought
> id save for this message body..
> 
> anyway, here's my system:
> 
> debian woody
> 2.2.18pre21
> 
> i copy pci-scan.h, pci-scan.c, kern_compat.h and tuplip.c (all taken from
> http://www.scyld.com/network/updates.html) to /usr/src/linux/net/inet
> 
> then i run the command at the bottom of pci-scan.c:
> 
> gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c
> pci-scan.c
> 
> and i get the following error:
> 
> In file included from pci-scan.c:53:
> /usr/include/linux/module.h:21: linux/modversions.h No such file or
> directory
> 
> ive tried a bunch of includes with gcc -I ('cause via a find i KNOW that
> modversion.h exists in /usr/src/linux/include/linux) but maybe i didnt do
> the right include or maybe its just broken..

gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes \
 -I/usr/src/linux/include -O6 -c pci-scan.c

Will search in /usr/src/linux/include
for the file linux/modversions.h

What -I<dir> variations did you try?

	-Thomas