LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2011, 11:54 AM   #1
Khyatikapoor
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
AODV kernel with linux kernel 2.6


hi can any one plz tell me how to integrate AODV with linux kernel 2.6...
im using the make command but it shows so many errors..

errors:

gcc -O3 -DMODULE -D__KERNEL__ -DLINUX -DMESSAGES -DAODV_GATEWAY -DAODV_SIGNAL -I/lib/modules/`uname -r`/build/include/ -c aodv_dev.c -o aodv_dev.o
In file included from /lib/modules/2.6.38-8-generic/build/include/linux/list.h:7:0,
from /lib/modules/2.6.38-8-generic/build/include/linux/module.h:9,
from aodv_dev.h:12,
from aodv_dev.c:9:
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory
compilation terminated.
make: *** [aodv_dev.o] Error 1
khyati@khyati-VirtualBox:~/Desktop/kernel/kernel-aodv_v2.2.2$



please can anyone help me out with this problem..
 
Old 06-02-2011, 04:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by Khyatikapoor View Post
hi can any one plz tell me how to integrate AODV with linux kernel 2.6...im using the make command but it shows so many errors..

errors:
gcc -O3 -DMODULE -D__KERNEL__ -DLINUX -DMESSAGES -DAODV_GATEWAY -DAODV_SIGNAL -I/lib/modules/`uname -r`/build/include/ -c aodv_dev.c -o aodv_dev.o
In file included from /lib/modules/2.6.38-8-generic/build/include/linux/list.h:7:0,
from /lib/modules/2.6.38-8-generic/build/include/linux/module.h:9,
from aodv_dev.h:12,
from aodv_dev.c:9:
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory
compilation terminated.
make: *** [aodv_dev.o] Error 1
khyati@khyati-VirtualBox:~/Desktop/kernel/kernel-aodv_v2.2.2$

please can anyone help me out with this problem..
You're not getting "so many errors"...just one. And did you READ that error? Did you see the part where it tells you there is a missing include file, and what the name of that missing file is???.
Quote:
Originally Posted by Khyatikapoor
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory
Install the source header files, or correct the location in your code.
 
Old 06-02-2011, 04:39 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I think the problem stems from the fact that the AODV driver
was written for kernels 2.2, migrated to 2.4, but never to
2.6, and the directory structures have seriously changed ...
 
  


Reply


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
Kernel AODV v2.2.2 - make error goforce Programming 2 06-26-2011 03:53 PM
Kernel AODV and libipq mahbub_bd Linux - Networking 1 05-19-2011 05:24 AM
AODV installation in Linux jaikumar360 Linux - Newbie 1 10-31-2010 01:00 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Where can i find comments on Kernel-AODV module source codes? quzheng Programming 0 07-18-2004 04:44 PM


All times are GMT -5. The time now is 12:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration