[tulip-bug] Problem linking tulip driver into kernel in RH7
    Donald Becker 
    becker@scyld.com
    Wed, 24 Jan 2001 00:20:37 -0500 (EST)
    
    
  
On Tue, 23 Jan 2001, Julia Steinberger wrote:
> Our problem arises when we try to compile the kernel with the tulip.c
> driver linked into it -- not as a loadable module. Our basic approach is
> 
> ===>1.
> to compile pci-scan.c and tulip.c (using
> kgcc -I/usr/src/linux/include -D__KERNEL__ -DMODULE -Wall
> -Wstrict-prototypes -O6 -c tulip.c                    
Ahhh, don't do this for a built-in driver.  You don't want -DMODULE.
> We then move the pci-scan.o and tulip.o executables into the 
> /usr/src/drivers/net/ directory, and modify the 
Just move the *.c and *.h files there, not *.o files.
> /usr/src/linux/drivers/net/Makefile as described in
> http://www.scyld.com/network/updates.html#single .
...
> drivers/net/net.a(Space.o)(.data.init+0x0): undefined reference to
> `tulip_probe'
Exactly the error you would expect when the Tulip driver is compiled as
a module.
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