Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

kernel build error: `smp_num_cpus' undeclared

0 views
Skip to first unread message

doug reeder

unread,
Jan 10, 2001, 6:26:47 PM1/10/01
to

I'm trying to recompile the kernel (kernel 2.2.12 from the Red Hat 6.1
distribution) on a HP Visualize PC (like an HP Kayak, but with a
slot for a second processor). Only one processor is installed, so I
said NO to 'symmetric multi-processing support' in 'make xconfig' so
the kernel would run a tad faster.

make dep and make clean run without problems.

But, when I run 'make bzdisk', compilation halts with the error:

In file included from ksyms.c:17:
/usr/src/linux-2.2.12/include/linux/kernel_stat.h:44: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.2.12/include/linux/kernel_stat.h:44: (Each undeclared identifier is reported only once
/usr/src/linux-2.2.12/include/linux/kernel_stat.h:44: for each function it appears in.)
make[2]: *** [ksyms.o] Error 1

I've never encounted this problem when rebuilding the kernel on our Kayaks
running Red Hat 6.1.

The processor is a 600 MHz Pentium III.

Any suggestions other than re-compiling with 'Symmetric multi-processing
support' set to YES ?
--
P. Douglas Reeder Lecturer, Computer. Science. Dept., Ohio State Univ..
ree...@cis.ohio-state.edu http://www.cis.ohio-state.edu/~reeder/reeder.html
GE/S d+ s+:- a C+@$ UH+ P+ L E W++ N+ o? K? w !O M+ V PS+() PE Y+ PGP- t 5+ !X
R>+ tv+ b+++>$ DI+ D- G e+++ h r+>+++ y+>++

0 new messages