Cannot compile 3c59x.c with SMP on Mandrake 6.0 distribution (bug # 52@bugs.linux-mandrake.com)

v - CN Michael James vmjames@punchnetworks.com
Wed Aug 25 18:50:25 1999


Package: kernel-headers
Version: 2.2.9
Release: 27mdk

Attempt to compile a new 3c59x.c module 
(see http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html) with the
given instructions fail, apparently because of problems with
Mandrake-supplied /usr/include/smp.h.  (The same module compiles
successfully without SMP, but the result cannot be 'insmod'ed on
my SMP system.)

 
Error message follows:
____________________________________________________________________________
_____________________________________________
FYI: I've just filed a bug against rpm package "kernel-sources" 
regarding the following compilation failure.  I believe this is
a problem with the include files rather than 3c59x.c.

[vmjames@localhost vmjames]$ gcc -D__SMP__ -DMODULE -D__KERNEL__
-DMODVERSIONS -Wall -Wstrict-prototypes -O6 -c 3c59x.c 

/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 3c59x.c:69:
/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)

[vmjames@localhost vmjames]$ 
____________________________________________________________________________
_____________________________________________