LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Compiling routing algo written for 2.4 kernel, with 2.6 kernel (https://www.linuxquestions.org/questions/linux-networking-3/compiling-routing-algo-written-for-2-4-kernel-with-2-6-kernel-580417/)

rvenkatesh25 08-28-2007 09:33 AM

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?

acid_kewpie 08-28-2007 02:19 PM

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.


All times are GMT -5. The time now is 09:22 PM.