General problems with 2.1.x
Jordan Mendelson
jordy@wserv.com
Mon Oct 5 18:17:17 1998
Attempting to compile the 1.03 driver into Linux 2.1.124 results in the
following errors:
make[3]: Entering directory `/usr/src/linux-2.1.122/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.1.122/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-
loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o eepro100.o
eepro100.c
eepro100.c:79: parse error before string constant
eepro100.c:79: warning: type defaults to `int' in declaration of
`MODULE_AUTHOR'
eepro100.c:79: warning: function declaration isn't a prototype
eepro100.c:79: warning: data definition has no type or storage class
eepro100.c:80: parse error before string constant
eepro100.c:80: warning: type defaults to `int' in declaration of
`MODULE_DESCRIPTION'
eepro100.c:80: warning: function declaration isn't a prototype
eepro100.c:80: warning: data definition has no type or storage class
eepro100.c:81: parse error before string constant
eepro100.c:81: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:81: warning: function declaration isn't a prototype
eepro100.c:81: warning: data definition has no type or storage class
eepro100.c:82: parse error before string constant
eepro100.c:83: parse error before string constant
eepro100.c:84: parse error before string constant
eepro100.c:84: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:84: warning: function declaration isn't a prototype
eepro100.c:84: warning: data definition has no type or storage class
eepro100.c:85: parse error before string constant
eepro100.c:85: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:85: warning: function declaration isn't a prototype
eepro100.c:85: warning: data definition has no type or storage class
eepro100.c:86: parse error before string constant
eepro100.c:86: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:86: warning: function declaration isn't a prototype
eepro100.c:86: warning: data definition has no type or storage class
eepro100.c:87: parse error before string constant
eepro100.c:87: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:87: warning: function declaration isn't a prototype
eepro100.c:87: warning: data definition has no type or storage class
eepro100.c:88: parse error before string constant
eepro100.c:88: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:88: warning: function declaration isn't a prototype
eepro100.c:88: warning: data definition has no type or storage class
eepro100.c:89: parse error before string constant
eepro100.c:89: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:89: warning: function declaration isn't a prototype
eepro100.c:89: warning: data definition has no type or storage class
eepro100.c:90: parse error before string constant
eepro100.c:90: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:90: warning: function declaration isn't a prototype
eepro100.c:90: warning: data definition has no type or storage class
eepro100.c:91: parse error before string constant
eepro100.c:91: warning: type defaults to `int' in declaration of
`MODULE_PARM'
eepro100.c:91: warning: function declaration isn't a prototype
eepro100.c:91: warning: data definition has no type or storage class
make[3]: *** [eepro100.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.1.122/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.1.122/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.1.122/drivers'
make: *** [_dir_drivers] Error 2
Putting an #ifdef MODULE/#endif around the MODULE_* blocks fixes it. In
2.1.123, I get these error messages every time a socket is closed:
Oct 5 18:13:46 solid kernel: Socket destroy delayed (r=128 w=0)
And the version of eepro100.c that comes with 2.1.x will not work reliably
with my SMP machine (crashes, ifconfig down/up breaks it, etc). This card
is:
eepro100.c:v1.03 8/11/98 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
eth0: OEM i82557/i82558 10/100 Ethernet at 0xef80, 00:A0:C9:E1:F3:D8, IRQ
10.
Board assembly 697680-001, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x24c9f043).
Receiver lock-up workaround activated.
eepro100.c:v1.03 8/11/98 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
Jordan
--
Jordan Mendelson : http://jordy.wserv.com
Web Services, Inc. : http://www.wserv.com