[tulip] problems compiling tulip.c and pci-scan.c

Luke Shulenburger sluke@bartender.mit.edu
Sat, 10 Mar 2001 17:30:52 -0500 (EST)


I've been having problems getting anything but pathetic transfer speeds
over a 100Mb Full duplex connection using my DS21143 card and the tulip
driver in the 2.4.0 kernel on an alpha. So, I decided to try to download
and compile the tulip driver on this site and see if it performs any
better.  I'm getting an aweful lot of error messages whenever I try to
compile either the tulip.c or pci-scan.c.  I'm not the world's best c
hacker so I was wondering if anybody might have some tips for me.  Here
are the error messages I get when I try to compile tulip.c

In file included from /usr/include/asm/spinlock.h:6,
                 from /usr/include/linux/spinlock.h:35,
                 from /usr/include/linux/module.h:11,
                 from tulip.c:137:
/usr/include/asm/current.h:4: global register variable follows a function
definition
/usr/include/asm/current.h:4: warning: call-clobbered register used for
global register variable
tulip.c: In function `tulip_open':
tulip.c:1437: structure has no member named `tbusy'
tulip.c:1438: structure has no member named `start'
tulip.c:1449: warning: unsigned int format, different type arg (arg 3)
tulip.c:1449: warning: unsigned int format, different type arg (arg 4)
tulip.c:1449: warning: unsigned int format, different type arg (arg 5)
tulip.c: In function `select_media':
tulip.c:1706: warning: unsigned int format, different type arg (arg 4)
tulip.c:1712: warning: unsigned int format, different type arg (arg 4)
tulip.c:1723: warning: unsigned int format, different type arg (arg 3)
tulip.c:1777: warning: unsigned int format, different type arg (arg 4)
tulip.c: In function `tulip_timer':
tulip.c:1850: warning: unsigned int format, different type arg (arg 4)
tulip.c:1850: warning: unsigned int format, different type arg (arg 5)
tulip.c:1850: warning: unsigned int format, different type arg (arg 7)
tulip.c:1850: warning: unsigned int format, different type arg (arg 8)
tulip.c:1850: warning: unsigned int format, different type arg (arg 9)
tulip.c:1917: warning: unsigned int format, different type arg (arg 3)
tulip.c: In function `nway_lnk_change':
tulip.c:2120: warning: unsigned int format, different type arg (arg 5)
tulip.c:2177: warning: unsigned int format, different type arg (arg 4)
tulip.c:2177: warning: unsigned int format, different type arg (arg 5)
tulip.c: In function `mxic_timer':
tulip.c:2233: warning: unsigned int format, different type arg (arg 3)
tulip.c: In function `pnic_timer':
tulip.c:2327: warning: unsigned int format, different type arg (arg 5)
tulip.c:2327: warning: unsigned int format, different type arg (arg 6)
tulip.c: In function `comet_timer':
tulip.c:2370: warning: unsigned int format, different type arg (arg 3)
tulip.c:2370: warning: unsigned int format, different type arg (arg 4)
tulip.c: In function `tulip_tx_timeout':
tulip.c:2401: warning: unsigned int format, different type arg (arg 3)
tulip.c:2401: warning: unsigned int format, different type arg (arg 5)
tulip.c:2401: warning: unsigned int format, different type arg (arg 6)
tulip.c:2415: warning: unsigned int format, different type arg (arg 3)
tulip.c:2415: warning: unsigned int format, different type arg (arg 4)
tulip.c:2415: warning: unsigned int format, different type arg (arg 5)
tulip.c:2415: warning: unsigned int format, different type arg (arg 6)
tulip.c:2415: warning: unsigned int format, different type arg (arg 7)
tulip.c:2433: warning: unsigned int format, different type arg (arg 3)
tulip.c:2433: warning: unsigned int format, different type arg (arg 4)
tulip.c: In function `tulip_start_xmit':
tulip.c:2530: structure has no member named `tbusy'
tulip.c:2563: structure has no member named `tbusy'
tulip.c: In function `tulip_interrupt':
tulip.c:2590: structure has no member named `interrupt'
tulip.c:2594: structure has no member named `interrupt'
tulip.c:2607: warning: unsigned int format, different type arg (arg 4)
tulip.c:2667: structure has no member named `tbusy'
tulip.c:2671: structure has no member named `tbusy'
tulip.c:2672: `NET_BH' undeclared (first use in this function)
tulip.c:2672: (Each undeclared identifier is reported only once
tulip.c:2672: for each function it appears in.)
tulip.c:2707: warning: unsigned int format, different type arg (arg 4)
tulip.c:2754: warning: unsigned int format, different type arg (arg 3)
tulip.c:2759: structure has no member named `interrupt'
tulip.c: In function `tulip_close':
tulip.c:2903: structure has no member named `start'
tulip.c:2904: structure has no member named `tbusy'
tulip.c:2908: warning: unsigned int format, different type arg (arg 3)
tulip.c: In function `tulip_get_stats':
tulip.c:2943: structure has no member named `start'
tulip.c: In function `set_rx_mode':
tulip.c:3182: structure has no member named `tbusy'

Is this a problem with the 64 nature of the alpha?  I'm a little lost on
that one.  The problems with compiling pci-scan.c seems to be a
configuration problem on my end, but I'm not quite sure how to fix them.
Here's the output of a compile attempt:

In file included from /usr/include/asm/spinlock.h:6,
                 from /usr/include/linux/spinlock.h:35,
                 from /usr/include/linux/module.h:11,
                 from pci-scan.c:53:
/usr/include/asm/current.h:4: global register variable follows a function
definition
/usr/include/asm/current.h:4: warning: call-clobbered register used for
global register variable

I've tried pointing all of the includes to the files in my kernel source
tree, but this generated many of the same errors.  Can anybody point me in
the right direction?

Luke Shulenburger
(sluke@mit.edu)