Subject: 2.4.19 compilation non-SMP fails

Compilation fails in kernel 2.4.19 when SMP support is deactivated.



In file included from ksyms.c:17:
/home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h: In
function `kstat_irqs':
/home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
`smp_num_cpus' undeclared (first use in this function)
/home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
(Each undeclared identifier is reported only once
/home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
for each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Saliendo directorio
`/home/cyphra/C?digo/linux-2.4.19-core1/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Saliendo directorio
`/home/cyphra/C?digo/linux-2.4.19-core1/kernel'
make: *** [_dir_kernel] Error 2

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
>From field.


2002-08-15 05:59:27

by Scott Bronson

[permalink] [raw]
Subject: Re: 2.4.19 compilation non-SMP fails

It appears to be a well-known problem.

You need to make mrproper when you flip the SMP setting. Make sure to
save your .config...


On Wed, 2002-08-14 at 19:57, Francisco Javier Fernandez wrote:
> Compilation fails in kernel 2.4.19 when SMP support is deactivated.
>
>
>
> In file included from ksyms.c:17:
> /home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h: In
> function `kstat_irqs':
> /home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
> `smp_num_cpus' undeclared (first use in this function)
> /home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
> (Each undeclared identifier is reported only once
> /home/cyphra/C?digo/linux-2.4.19-core1/include/linux/kernel_stat.h:45:
> for each function it appears in.)
> make[2]: *** [ksyms.o] Error 1
> make[2]: Saliendo directorio
> `/home/cyphra/C?digo/linux-2.4.19-core1/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Saliendo directorio
> `/home/cyphra/C?digo/linux-2.4.19-core1/kernel'
> make: *** [_dir_kernel] Error 2
>
> --
> I do not get viruses because I do not use MS software.
> If you use Outlook then please do not put my email address in your
> address-book so that WHEN you get a virus it won't use my address in the
> From field.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>