[tulip] compiling and paths

ktt kestutis98@yahoo.com
Wed, 29 Nov 2000 04:35:09 -0800 (PST)


I have installed kernel-headers-2.2.17_2.2.17pre6-1
from the *.deb
package in my debian potato
system, but while compiling the driver:

 gcc -DMODVERSIONS -DMODULES -D__KERNEL__
-I/usr/src/linux/net/inet -Wall -Wstrict-prototypes
-O6 -c tulip.c

getting an error:

tulip.c:139: linux/modversions.h: No such file or
directory
 
after I manually editing the tulip.c file:

#include </usr/src/linux/include/linux/modversions.h>

instead of:

#include <linux/modversions.h>

and correcting the paths in the modutils.h file:

<...>                            
#include
</usr/src/linux/include/linux/modules/8390.ver>       
                
#include
</usr/src/linux/include/linux/modules/DAC960.ver>     
                
#include
</usr/src/linux/include/linux/modules/ac97_codec.ver> 
                
#include
</usr/src/linux/include/linux/modules/ad1816.ver>     
               
<..>


instead of the 

<...>
#include <linux/modules/DAC960.ver>                   
  
#include <linux/modules/ac97_codec.ver>               
  
#include <linux/modules/ad1816.ver>                   
 
<...>

but getting many errors again [this is the end of the
list]:

<...>
                 from tulip.c:155:
/usr/include/asm/pgtable.h: In function
`flush_tlb_mm':
/usr/include/asm/pgtable.h:60: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h: In function
`flush_tlb_page':
/usr/include/asm/pgtable.h:67: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h: In function
`flush_tlb_range':
/usr/include/asm/pgtable.h:74: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h: In function `set_pgdir':
/usr/include/asm/pgtable.h:558: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h:559: dereferencing pointer
to incomplete type
/usr/include/asm/pgtable.h:561: dereferencing pointer
to incomplete type
tulip.c: In function `strnlen':
/usr/include/asm/string.h:392: warning: `__res' might
be used uninitialized in this function
tulip.c: At top level:
/usr/include/linux/coda.h:261: storage size of
`va_atime' isn't known
/usr/include/linux/coda.h:262: storage size of
`va_mtime' isn't known
/usr/include/linux/coda.h:263: storage size of
`va_ctime' isn't known
/usr/include/linux/coda.h:563: storage size of `attr'
isn't known
/usr/include/linux/fs.h:422: storage size of `f_owner'
isn't known
/usr/include/linux/sched.h:288: storage size of
`times' isn't known

something wrong with the paths again?

could anybody forward me a precompilled driver for
i386
with the kernel-headers-2.2.17_2.2.17pre6-1 ?



thanks for any help.


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/