LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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


Closed Thread
 
Search this Thread
Old 02-08-2013, 06:55 AM   #1
jhonboy
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: 0
Why AODV make errors?


hi, i m using ubuntu 12.04 and wants to load AODV,
but i m facing these errors while i make it..



root@jhon:~/aodv-uu-0.9.5$ make
make -C /home/zabi/aodv-uu-0.9.5/lnx KERNEL_DIR=/lib/modules/2.6.31-21-generic/build KCC=gcc XDEFS=-DDEBUG
make[1]: Entering directory `/home/zabi/aodv-uu-0.9.5/lnx'
make -C /lib/modules/2.6.31-21-generic/build SUBDIRS=/home/zabi/aodv-uu-0.9.5/lnx modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.31-21-generic'
CC [M] /home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.o
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_hook’:
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:273: warning: passing argument 1 of ‘ip_route_me_harder’ from incompatible pointer type
include/linux/netfilter_ipv4.h:77: note: expected ‘struct sk_buff *’ but argument is of type ‘struct sk_buff **’
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c: At top level:
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:321: warning: initialization from incompatible pointer type
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:330: warning: initialization from incompatible pointer type
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:339: warning: initialization from incompatible pointer type
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_init’:
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:391: warning: passing argument 1 of ‘dev_get_by_name’ from incompatible pointer type
include/linux/netdevice.h:1099: note: expected ‘struct net *’ but argument is of type ‘char *’
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:391: error: too few arguments to function ‘dev_get_by_name’
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:402: error: implicit declaration of function ‘proc_net_create’
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_exit’:
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:432: warning: passing argument 1 of ‘proc_net_remove’ from incompatible pointer type
include/linux/proc_fs.h:163: note: expected ‘struct net *’ but argument is of type ‘char *’
/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.c:432: error: too few arguments to function ‘proc_net_remove’
make[3]: *** [/home/zabi/aodv-uu-0.9.5/lnx/kaodv-mod.o] Error 1
make[2]: *** [_module_/home/zabi/aodv-uu-0.9.5/lnx] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-21-generic'
make[1]: *** [kaodv.ko] Error 2
make[1]: Leaving directory `/home/zabi/aodv-uu-0.9.5/lnx'
make: *** [kaodv] Error 2

please help me to solve them!
 
Old 02-08-2013, 08:44 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,098

Rep: Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879Reputation: 2879
Quote:
I am using ubuntu 12.04

Are you sure ? The "make result" shows Ubuntu 9.10 .
I.e. 2.6.31-21-generic is Ubuntu 9.10 only, I think.
 
Old 02-09-2013, 07:16 PM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,773

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by knudfl View Post
Are you sure ? The "make result" shows Ubuntu 9.10 .
I.e. 2.6.31-21-generic is Ubuntu 9.10 only, I think.
You are very right, according to the OP's OTHER thread:
http://www.linuxquestions.org/questi...rs-4175449129/

...which has a link to the EXACT same post from 2009, in another forum (???)
 
Old 02-10-2013, 05:00 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
The troll/robot (whatever he/she/it be) has been kindly directed towards the LQ exit. This thread closed now.
 
  


Closed Thread


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
AODV make errors jhonboy Linux - Newbie 2 02-10-2013 04:58 AM
Kernel AODV v2.2.2 - make error goforce Programming 2 06-26-2011 02:53 PM
libogg not installing, make and make install don't give errors, but fail lilmike Linux - Newbie 6 11-14-2009 07:33 PM


All times are GMT -5. The time now is 11:15 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