Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Error while compiling kernel

Posted on 2000-03-20
1
Medium Priority
?
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

618 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