Solved

Error while compiling kernel

Posted on 2000-03-20
1
219 Views
Last Modified: 2013-12-15
While trying to compile the kernel of RedHat 6.1, after writting :
make zImage (or bzImage)
I'm getting the following error messege :
/usr/src/linux/include/linux/kernel_stat.h:44: `smp_num_cpus' undeclared (first use in this function)

The compilation doesn't end properly.
I have Dual P3 processor(s).
Can someone help ?
0
Comment
Question by:ygal02
1 Comment
 
LVL 4

Accepted Solution

by:
kiffney earned 50 total points
ID: 2645970
This is a post by Michael Chastain.

Yes, this is a known bug with CONFIG_MODVERSIONS. If you have
CONFIG_MODVERSIONS turned on, and you build a kernel, and then you change
certain options such as CONFIG_SMP, you will get stale *.ver files and
your build will blow up.


Workaround:


copy your /usr/src/linux/.config file somewhere
make mrproper (or remove your whole tree and re-install it)
put your /usr/src/linux/.config file back
make oldconfig
make dep
make clean
make bzImage
make modules
make modules_install (if you want)


Hope this helps,


Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"


0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now