[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Error while compiling kernel

Posted on 2000-03-20
1
Medium Priority
?
249 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 200 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month20 days, 13 hours left to enroll

865 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