Re: 2.2.18pre2 compilation failure

From: Arjan van de Ven (
Date: Sun Sep 03 2000 - 04:03:47 EST

In article <> you wrote:
> This came up today.

> /usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
> /usr/src/linux/include/linux/kernel_stat.h:47: `smp_num_cpus' undeclared (first use in this function)
> /usr/src/linux/include/linux/kernel_stat.h:47: (Each undeclared identifier is reported only once
> /usr/src/linux/include/linux/kernel_stat.h:47: for each function it appears in.)make[3]: *** [ksyms.o] Error 1


This is caused by you changing from UP to SMP without "make mrproper".
This is a (so far unfixed) bug in the 2.2 build system.
So the solution is to copy the .config to a safe place, type "make
mrproper", copy the .config back and then type "make oldconfig".
If you see more things that don't compile, try the patch at
to see if that fixes it.

   Arjan van de Ven
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:15 EST