troubleshooting Question

Cannot compile new linux kernel!

Avatar of Mike R.
Mike R. asked on
Operating SystemsLinux Distributions
11 Comments1 Solution644 ViewsLast Modified:

I’m trying to update a Kernel on an Intel box with dual Xeon processors...but I’m running into problems.  I cannot get the source files to successfully compile.  I am trying to compile 2.4.20-31.9smp and I am restricted to using this kernel.  The machine is currently running 2.4-6smp.  I have upgraded the kernel on other machines in the same way I’m trying to upgrade this one.  

On the first try I used the “config” that was included with the src files (as this was the preferred config.) Here’s what happens...
#cd /usr/src/linux-2.4.20-31.9smp
#make clean
#make dep
#make bzImage
/usr/src/ linux-2.4.20-31.9smp/include/linux/smp.h: error: conflicting type for ‘smp_send_reschedule’
./usr/src/ linux-2.4.20-31.9smp/include/linux/smp.h: error: previous declarations  of ‘smp_send_reschedule’ were found

SO...I did a “make mrproper” and a “make old config” and then used “make xconfig” to disable the SMP and tried again.  Then I just got a DIFFERENT series of errors...

#make bzImage
/usr/src/ linux-2.4.20-31.9smp/include/linux/sched.h:712 error: conflicting type for ‘sleep_on’
./usr/src/ linux-2.4.20-31.9smp/include/linux/sched.h:712: error: previous declarations  of ‘sleep_on’ were found

And I don’t know what to disable to get past this one...BUT THE MORE CRITICAL QUESTION is, WHY AM I HAVING SO MUCH DIFFICULTY with these errors in the first place, when the identical configuration was used on other machines with no errors?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros