[tulip-bug] compilation problems

trent brown tbrown@occamnetworks.com
Sun, 10 Dec 2000 09:03:24 -0800


Got it thanks to your archives! I just needed to include the path in the
compile options  "-I/usr/src/linux/include".

thanks for the drivers
Trent
trent brown wrote:
> 
> I'm attempting to compile tulip.c and pci-scan.c for a linksys card but
> unfortunatly the compile fails. I'm running Mandrake 7.1 with
> 2.2.16-9mdk kernel, and
> gcc -v
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
> gcc version 2.95.3 19991030 (prerelease) .
> 
> The reported errors are numerous, and may be similar to the ones
> reported On Mon, 27 Nov 2000 by Keith Warno though I cannot be sure. Is
> there a workaround for this? Thanks in adance!
> 
> Compile example with a few of the errors:
> 
> gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c tulip.csee
> In file included from /usr/include/linux/string.h:37,
>                  from tulip.c:143:
> /usr/include/asm/string.h:46: parse error before `size_t'
> /usr/include/asm/string.h: In function `strncpy':
> /usr/include/asm/string.h:47: number of arguments doesn't match
> prototype
> /usr/include/linux/string.h:13: prototype declaration
> /usr/include/asm/string.h:61: `src' undeclared (first use in this
> function)
> /usr/include/asm/string.h:61: (Each undeclared identifier is reported
> only once
> /usr/include/asm/string.h:61: for each function it appears in.)
> /usr/include/asm/string.h:61: `dest' undeclared (first use in this
> function)
> /usr/include/asm/string.h:61: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:63: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:84: parse error before `size_t'
> /usr/include/asm/string.h: In function `strncat':
> /usr/include/asm/string.h:85: number of arguments doesn't match
> prototype
> /usr/include/linux/string.h:15: prototype declaration
> /usr/include/asm/string.h:102: `src' undeclared (first use in this
> function)
> /usr/include/asm/string.h:102: `dest' undeclared (first use in this
> function)
> /usr/include/asm/string.h:102: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:105: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:130: parse error before `size_t'
> /usr/include/asm/string.h: In function `strncmp':
> /usr/include/asm/string.h:131: number of arguments doesn't match
> prototype
> /usr/include/linux/string.h:25: prototype declaration
> /usr/include/asm/string.h:149: `cs' undeclared (first use in this
> function)
> /usr/include/asm/string.h:149: `ct' undeclared (first use in this
> function)
> /usr/include/asm/string.h:149: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:192: parse error before `strlen'
> /usr/include/asm/string.h:206: parse error before `size_t'
> /usr/include/asm/string.h:207: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `__memcpy':
> /usr/include/asm/string.h:220: `n' undeclared (first use in this
> function)
> /usr/include/asm/string.h:220: `to' undeclared (first use in this
> function)
> /usr/include/asm/string.h:220: `from' undeclared (first use in this
> function)
> /usr/include/asm/string.h:223: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:229: parse error before `size_t'
> /usr/include/asm/string.h:230: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `__constant_memcpy':
> /usr/include/asm/string.h:231: `n' undeclared (first use in this
> function)
> /usr/include/asm/string.h:233: `to' undeclared (first use in this
> function)
> /usr/include/asm/string.h:235: `from' undeclared (first use in this
> function)
> /usr/include/asm/string.h:293: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:302: parse error before `size_t'
> /usr/include/asm/string.h: In function `memmove':
> /usr/include/asm/string.h:303: number of arguments doesn't match
> prototype
> /usr/include/linux/string.h:30: prototype declaration
> /usr/include/asm/string.h:305: `dest' undeclared (first use in this
> function)
> /usr/include/asm/string.h:305: `src' undeclared (first use in this
> function)
> /usr/include/asm/string.h:311: `n' undeclared (first use in this
> function)
> /usr/include/asm/string.h:325: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:330: parse error before `size_t'
> /usr/include/asm/string.h:331: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `memchr':
> /usr/include/asm/string.h:334: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:343: `c' undeclared (first use in this
> function)
> /usr/include/asm/string.h:343: `cs' undeclared (first use in this
> function)
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:347: parse error before `size_t'
> /usr/include/asm/string.h:348: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `__memset_generic':
> /usr/include/asm/string.h:355: `c' undeclared (first use in this
> function)
> /usr/include/asm/string.h:355: `s' undeclared (first use in this
> function)
> /usr/include/asm/string.h:355: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:358: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:368: parse error before `size_t'
> /usr/include/asm/string.h:369: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `__constant_c_memset':
> /usr/include/asm/string.h:382: `c' undeclared (first use in this
> function)
> /usr/include/asm/string.h:382: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:382: `s' undeclared (first use in this
> function)
> /usr/include/asm/string.h:385: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:389: parse error before `strnlen'
> /usr/include/asm/string.h:389: parse error before `size_t'
> /usr/include/asm/string.h:390: conflicting types for `strnlen'
> /usr/include/linux/string.h:22: previous declaration of `strnlen'
> /usr/include/asm/string.h: In function `strnlen':
> /usr/include/asm/string.h:404: `s' undeclared (first use in this
> function)
> /usr/include/asm/string.h:404: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:413: parse error before `size_t'
> /usr/include/asm/string.h:414: warning: function declaration isn't a
> prototype
> /usr/include/asm/string.h: In function `__constant_c_and_count_memset':
> /usr/include/asm/string.h:415: `count' undeclared (first use in this
> function)
> /usr/include/asm/string.h:417: `s' undeclared (first use in this
> function)
> /usr/include/asm/string.h:419: `pattern' undeclared (first use in this
> function)
> /usr/include/asm/string.h:450: warning: control reaches end of non-void
> function
> /usr/include/asm/string.h: At top level:
> /usr/include/asm/string.h:472: parse error before `size_t'
> /usr/include/asm/string.h: In function `memscan':
> /usr/include/asm/string.h:473: number of arguments doesn't match
> prototype
> /usr/include/linux/string.h:31: prototype declaration
> /usr/include/asm/string.h:474: `size' undeclared (first use in this
> function)
> /usr/include/asm/string.h:475: `addr' undeclared (first use in this
> function)
> /usr/include/asm/string.h:482: `c' undeclared (first use in this
> function)
> /usr/include/asm/string.h:484: warning: control reaches end of non-void
> function
> In file included from /usr/include/linux/sched.h:13,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from tulip.c:147:
> /usr/include/linux/times.h: At top level:
> /usr/include/linux/times.h:5: parse error before `clock_t'
> /usr/include/linux/times.h:5: warning: no semicolon at end of struct or
> union
> /usr/include/linux/times.h:6: warning: data definition has no type or
> storage class
> /usr/include/linux/times.h:7: parse error before `tms_cutime'
> /usr/include/linux/times.h:7: warning: data definition has no type or
> storage class
> /usr/include/linux/times.h:8: parse error before `tms_cstime'
> /usr/include/linux/times.h:8: warning: data definition has no type or
> storage class
> In file included from /usr/include/linux/timex.h:142,
>                  from /usr/include/linux/sched.h:14,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from tulip.c:147:
> /usr/include/linux/time.h:10: parse error before `time_t'
> /usr/include/linux/time.h:10: warning: no semicolon at end of struct or
> union
> /usr/include/linux/time.h:12: parse error before `}'
> /usr/include/linux/time.h: In function `timespec_to_jiffies':
> /usr/include/linux/time.h:32: dereferencing pointer to incomplete type
> /usr/include/linux/time.h:33: dereferencing pointer to incomplete type
> /usr/include/linux/time.h: In function `jiffies_to_timespec':
> /usr/include/linux/time.h:45: dereferencing pointer to incomplete type
> /usr/include/linux/time.h:46: dereferencing pointer to incomplete type
> /usr/include/linux/time.h: At top level:
> /usr/include/linux/time.h:50: parse error before `time_t'
> /usr/include/linux/time.h:50: warning: no semicolon at end of struct or
> union
> /usr/include/linux/time.h:51: warning: data definition has no type or
> storage class
> /usr/include/linux/time.h:83: field `it_interval' has incomplete type
> /usr/include/linux/time.h:84: field `it_value' has incomplete type
> /usr/include/linux/time.h:88: field `it_interval' has incomplete type
> /usr/include/linux/time.h:89: field `it_value' has incomplete type
> In file included from /usr/include/linux/sched.h:14,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from tulip.c:147:
> /usr/include/linux/timex.h:163: field `time' has incomplete type
> In file included from /usr/include/linux/fs.h:274,
>                  from /usr/include/linux/tty.h:20,
>                  from /usr/include/linux/sched.h:21,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from tulip.c:147:
> /usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
> /usr/include/linux/hpfs_fs_i.h:5: warning: no semicolon at end of struct
> or union
> /usr/include/linux/hpfs_fs_i.h:12: parse error before `:'
> In file included from /usr/include/linux/fs.h:276,
> 
> _______________________________________________
> tulip-bug mailing list
> tulip-bug@scyld.com
> http://www.scyld.com/mailman/listinfo/tulip-bug