LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 08-28-2007, 10:31 AM   #1
rvenkatesh25
LQ Newbie
 
Registered: Aug 2007
Location: Guwahati, India
Distribution: fedora
Posts: 2
Thanked: 0
Compiling a program written for 2.4 kernel, with 2.6 kernel


[Log in to get rid of this advertisement]
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?
rvenkatesh25 is offline  
Tag This Post , , , , ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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 09:42 PM
Error in Kernel.h file, while compiling the kernel Nishant Desai Linux - Kernel 0 11-14-2006 12:19 AM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 01: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 05:17 AM


All times are GMT -5. The time now is 09:01 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration