2.2.16 compilation problems with smp.h - APIC_BASE and APIC_ID

From: jpranevich@lycos-inc.com
Date: Mon Jul 10 2000 - 13:42:01 EST


Hello,

I'm trying to compile Intel's source for their eepro100 driver (Their driver is
somewhat faster than Becker's driver on my hardware, mostly it's a legacy thing)
on a 2.2.17 kernel (RedHat distributed, may have additional patches).
Unfortunately, it fails to compile with the following message:

gcc -D__KERNEL__ -DMODULE -DLINUX -DEXPORT_SYMTAB -I/usr/include -I. -D__SMP__
-DMODVERSIONS -O2 -pipe -c e100.c -o e100_main.o
/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 /usr/include/linux/mm.h:4,
                 from e100.h:44,
                 from e100.c:156:
/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)
make: *** [e100_main.o] Error 1

--

I know this module isn't supported, but if someone could point me in the direction I need to go to get this to work. It appears as if these symbols exist in i82489.h (which requires fixmap.h), but simply including them doesn't help much. Is this a problem with the kernel or with the external module? (Doubting the latter as the problem appears in smp.h...)

I appreciate any input you could provide,

Joe Pranevich (wearing his @work hat) Production Support Analyst - Lycos.com, Angelfire.com

(Please cc: back to me, I don't read the kernel list with this email address.)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:11 EST