LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 0
Compiling routing algo 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 tackle this error?
 
Old 08-28-2007, 02:19 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread

Tags
compilation, kernel



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
Compiling a program written for 2.4 kernel, with 2.6 kernel rvenkatesh25 Programming 0 08-28-2007 09:31 AM
/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
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:06 AM.

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