Won't compile under SMP?

David Henning dhenning@www.usda.gov
Fri Jul 9 15:25:04 1999


Hello All,

I've tried to compile the 0.91 driver using
gcc -D__SMP__ -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
which is located at the end of tulip.c but get multiple errors related to
smp.h on lines 11, 20, and 209.

My system info is:
Dell 4200/333 Dual PII 333Mhz
AMI MegaRAID running a level 0 array.
AIC-7880 and AIC-7860 SCSI adapters.
Phoenix BIOS v4.x
Adaptec ANA-6922 two-port 10/100 PCI card.
RedHat 6.0 2.2.5smp kernel.

I don't need to run both of the interfaces, just one.  The machine was
a leftover and we want to run Linux on it.  I've included the output of
the compile attempt, ifconfig (minus the actuall networking addresses),
and dmesg.  Dell has a diagnostic disk that will allow me to disable the
ethernet interface at the BIOS level.  I get no lights on the card but did
get lights previous to this install so I'm certain it works.

dmesg output:
tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov
eth0: Digital DS21142/3 Tulip at 0xd880, 00 00 d1 1b 77 be, IRQ 10.
eth0:  EEPROM default media type Autosense.
eth0:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth0: ***WARNING***: No MII transceiver found!
eth1: Digital DS21142/3 Tulip at 0xd800, EEPROM not present, 00 00 d1 1b
77 bf, IRQ
 10.
eth1:  Controller 1 of multiport board.
eth1:  EEPROM default media type Autosense.
eth1:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth1: ***WARNING***: No MII transceiver found!

ifconfig output:
eth0      Link encap:Ethernet  HWaddr REMOVED  
          inet addr:ADDRESS REMOVED  Bcast:ADDRESS REMOVED
Mask:REMOVED
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:23 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0xd880 

eth1      Link encap:Ethernet  HWaddr REMOVED 
          inet addr:ADDRESS REMOVED  Bcast:ADDRESS REMOVED
Mask:REMOVED
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:23 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0xd800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

compile output:
/usr/include/asm/smp.h: In function `hard_smp_processor_id':
In file included from /usr/include/linux/smp.h:11,
                 from /usr/include/linux/sched.h:20,
                 from tulip.c:118:
/usr/include/asm/smp.h:209: warning: implicit declaration of function
`GET_APIC_ID'
/usr/include/asm/smp.h:209: `APIC_BASE' undeclared (first use in this
function)
/usr/include/asm/smp.h:209: (Each undeclared identifier is reported only
once
/usr/include/asm/smp.h:209: for each function it appears in.)
/usr/include/asm/smp.h:209: `APIC_ID' undeclared (first use in this
function)


Many thanks,

David Henning
Solaris/Linux Administrator
Digital Systems International Corp.