Solved

Error while compiling kernel

Posted on 2000-03-20
1
216 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

757 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

18 Experts available now in Live!

Get 1:1 Help Now