LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2009, 06:53 PM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Compiling Older kernel with new kernel headers


For reasons that I have no control over I am having to compile a Linux 2.6.19 kernel. This kernel has been fiddled with by linksys so upgrading it may or may not be possible. The problem I am having is when I attempt to compile it I am getting an error saying 'PATH_MAX' undeclared in sumversion.c. I suspect that this is due to me having sanitized kernel headers from Linux 2.6.30. One good note is that linksys provided in the tarball a tool chain but I am having issues being able to get the make file in the kernel to use the that tool chain instead of mine. Anyone got any ideas on what I can do?
 
Old 12-13-2009, 07:26 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
What do you mean by "having sanitized kernel headers from Linux 2.6.30". Are you saying that you've removed the header files that linksys supplied and replaced them with something else? If so, that's not too likely to compile as they make changes to kernel structures with just about every version. If you're talking about some externel header folder (outside of your kernel source tree), then that's irrelevant to the compilation to the kernel.
 
Old 12-13-2009, 07:40 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
No my kernel headers that I used to build glibc with is from kernal 2.6.30 I have not replaced them but I thought GCC will link with whatever it has for its spec. Unless the kernel make file does things differently. Again my question remains even if all this talk of headers is nonsense why is the kernel not building?

Last edited by exvor; 12-13-2009 at 07:41 PM.
 
Old 12-13-2009, 07:54 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by exvor View Post
Again my question remains even if all this talk of headers is nonsense why is the kernel not building?
What command are you using? What exactly is the error response? If it's a generic type of error, maybe I can help. If it's something specific to gentoo, maybe not.
 
Old 12-13-2009, 07:55 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
Hehe I fixed my own issue. Apparently back in the 2.6.1 - 22 kernels sumversion.c did not have a required include in it and it would cause this error on newer compiles for some reason. The file is mising a #include<limits.h> in the header. I added it back in and now it seams to be compiling fine. Thanks for responding tho.

Last edited by exvor; 12-13-2009 at 07:57 PM. Reason: Clarifying some stuff
 
Old 12-13-2009, 08:21 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Glad you got it fixed.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling Linux kernel API headers development LFS krzysz00 Linux From Scratch 3 03-14-2009 04:51 PM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Probleam after compiling older kernel Gonto SUSE / openSUSE 3 05-30-2005 02:35 PM
Compiling an older kernel on a newer system J_Szucs Linux - General 7 05-30-2005 01:49 AM
kernel headers 2.4.x used when compiling 2.6.7?? init Slackware 2 06-29-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration