[eepro100] Fwd: Compile-time problems with the newest eepro driver

Donald Becker becker@scyld.com
Thu, 19 Oct 2000 11:10:31 -0400 (EDT)


On Thu, 19 Oct 2000, Eric Hicks wrote:

> One other question, of a less technical nature. Where might I find slightly 
> older versions of the driver, that don't use the new pci-scan.h, pci-scan.c 
> and kern_compat.h files? Perhaps I'll have better luck with that version of 
> the driver.

At the request of Linus, I switched to moving the kernel dependencies into
other files in July/August/September of 1999.  It took about six weeks to
convert and test all of the drivers, but when I was finished Linus ignored
my updates in favor of (broken!) patches from others. 

>When attempting to compile the newest (newest?) eepro driver into my 2.2.5 
>redhat box, I get the following error messages:
...
> >drivers/net/net.a(pci-scan.o): In function `pci_drv_register':
> >pci-scan.o(.text+0x2d): undefined reference to 
> >`pci_read_config_dword_R2ca7e89f'

The buglet is in pci-scan.c.  The modversions signatures were appended, even
when pci-scan.o was not a module.  It was fixed in v1.02 with the following
change:


@@ -20,7 +20,7 @@
 	Other contributers:
 */
 static const char version[] =
-"pci-scan.c:v1.01 5/8/2000  Donald Becker <becker@scyld.com>"
+"pci-scan.c:v1.02 9/27/2000  Donald Becker <becker@scyld.com>"
 " http://www.scyld.com/linux/drivers.html\n";
 
 /* A few user-configurable values that may be modified when a module. */
@@ -45,7 +45,7 @@
 #if defined(CONFIG_SMP) && ! defined(__SMP__)
 #define __SMP__
 #endif
-#if defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
+#if defined(MODULE) && defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
 #define MODVERSIONS
 #endif
 


Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993