LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-28-2007, 09:31 AM   #1
rvenkatesh25
LQ Newbie
 
Registered: Aug 2007
Location: Guwahati, India
Distribution: fedora
Posts: 2

Rep: Reputation: 0
Compiling a program written for 2.4 kernel, with 2.6 kernel


I am upgrading the kernel of a linux-router from 2.4.21 to 2.6.22. The routing algorithm is a proprietary one. While compiling it with the new kernel, I got the following error:

Code:
In file included from /lib/modules/2.6.22.2/build/include/asm/thread_info.h:16,
                 from /lib/modules/2.6.22.2/build/include/linux/thread_info.h:21,
                 from /lib/modules/2.6.22.2/build/include/linux/preempt.h:9,
                 from /lib/modules/2.6.22.2/build/include/linux/spinlock.h:49,
                 from /lib/modules/2.6.22.2/build/include/linux/seqlock.h:29,
                 from /lib/modules/2.6.22.2/build/include/linux/time.h:7,
                 from /lib/modules/2.6.22.2/build/include/linux/skbuff.h:19,
                 from /lib/modules/2.6.22.2/build/include/linux/if_ether.h:113,
                 from /lib/modules/2.6.22.2/build/include/linux/netdevice.h:29,
                 from wmrp.h:4,
                 from wmrp.c:1:
/lib/modules/2.6.22.2/build/include/asm/processor.h:83: error: ‚CONFIG_X86_L1_CACHE_SHIFT‚ undeclared here (not in a function)
/lib/modules/2.6.22.2/build/include/asm/processor.h:83: error: requested alignment is not a constant
In the 2.4.21 /lib/modules/`uname -r`/include/linux directory, skbuff.h is not included from if_ether.h, but in 2.6.22 it is. How should I tacle this error?
 
  


Reply

Tags
algorithm, compilation, kernel, routing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Gůes Slackware - Installation 2 04-15-2007 08:42 PM
Error in Kernel.h file, while compiling the kernel Nishant Desai Linux - Kernel 0 11-13-2006 11:19 PM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration