LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 02-08-2013, 02:57 AM   #1
jhonboy
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: 0
AODV make errors


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



zabi@zabi:~/aodv-uu-0.9.5$ sudo 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-09-2013, 08:47 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,827

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Quote:
Originally Posted by jhonboy View Post
hi, i m using ubuntu 9.10 and wants to load AODV,
but i m facing these errors while i make it..

zabi@zabi:~/aodv-uu-0.9.5$ sudo 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
First, Ubuntu 9 is VERY old...the latest is 12. An upgrade is certainly in order. Second, when you upgrade, you'll be able to just install AODV from the pre-built package, so you won't need to compile it; and, it's a later version, as 0.9.5 is a bit old as well.

Most importantly...this seems to be a problem you've had since 2009, according to the Ubuntu forums.
http://ubuntuforums.org/archive/inde...t-1460972.html

The EXACT SAME POST?
 
1 members found this post helpful.
Old 02-10-2013, 04:58 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,372

Rep: Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911
Indeed this is a kind of robot/troll that has plagiarized an old post from the Ubuntu forums. We don't have to worry about it, now, since he/she/it was kindly directed towards the exit. Thanks for reporting, TB0ne!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blimps software - Weird compile errors during make install after a make depend aafc Linux - Software 3 09-19-2012 10:07 AM
Kernel AODV v2.2.2 - make error goforce Programming 2 06-26-2011 02:53 PM
installation errors with git during 'make' and 'make install' etheria Linux - Newbie 5 11-27-2009 11:38 AM
libogg not installing, make and make install don't give errors, but fail lilmike Linux - Newbie 6 11-14-2009 07:33 PM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM


All times are GMT -5. The time now is 08:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration