Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-28-2007, 10:31 AM   #1
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:

In file included from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from /lib/modules/,
                 from wmrp.h:4,
                 from wmrp.c:1:
/lib/modules/ error: ‚CONFIG_X86_L1_CACHE_SHIFT‚ undeclared here (not in a function)
/lib/modules/ 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?


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/ 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 > Forums > Non-*NIX Forums > Programming

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

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