MAODV-在UBUNTU上编译出错

da门 发布于 2016/05/23 21:17
阅读 168
收藏 0

Wall -O3 -g -DDEBUG -DMAODV   -DDEBUG  -DARM  -c -o k_mroute.o k_mroute.c
make: Wall: Command not found
make: [k_mroute.o] Error 127 (ignored)
Wall -O3 -g -DDEBUG -DMAODV   -DDEBUG  -DARM  -c -o maodv_neighbor.o maodv_neighbor.c
make: Wall: Command not found
make: [maodv_neighbor.o] Error 127 (ignored)
Wall -O3 -g -DDEBUG -DMAODV   -DDEBUG  -DARM -o aodvd main.o list.o debug.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o aodv_rreq.o aodv_rrep.o aodv_rerr.o nl.o maodv_grph.o maodv_mact.o multicast_routing_table.o igmp.o maodv_rreq.o maodv_rrep.o k_mroute.o maodv_neighbor.o 
make: Wall: Command not found
make: [aodvd] Error 127 (ignored)
make -C /home/basalloy/maodv-uu-0.9.5/lnx KERNEL_DIR=/usr/src/linux-headers-2.6.28-11-generic KCC= LD= XDEFS=-DDEBUG 
make[1]: Entering directory `/home/basalloy/maodv-uu-0.9.5/lnx'
make -C /usr/src/linux-headers-2.6.28-11-generic SUBDIRS=/home/basalloy/maodv-uu-0.9.5/lnx modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
  CC [M]  /home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.o
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_update_route_timeouts’:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:123: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:123: error: (Each undeclared identifier is reported only once
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:123: error: for each function it appears in.)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kmaodv_update_route_timeouts’:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:164: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:167: error: ‘NF_IP_LOCAL_OUT’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_hook’:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:280: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:397: error: ‘NF_IP_LOCAL_OUT’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:522: warning: passing argument 1 of ‘ip_route_me_harder’ from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:526: error: ‘NF_IP_POST_ROUTING’ undeclared (first use in this function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: At top level:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:571: warning: initialization from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:576: error: ‘NF_IP_PRE_ROUTING’ undeclared here (not in a function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:580: warning: initialization from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:585: error: ‘NF_IP_LOCAL_OUT’ undeclared here (not in a function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:589: warning: initialization from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:594: error: ‘NF_IP_POST_ROUTING’ undeclared here (not in a function)
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_init’:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:645: warning: passing argument 1 of ‘dev_get_by_name’ from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:645: error: too few arguments to function ‘dev_get_by_name’
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:645: warning: assignment from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:656: error: implicit declaration of function ‘proc_net_create’
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c: In function ‘kaodv_exit’:
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:686: warning: passing argument 1 of ‘proc_net_remove’ from incompatible pointer type
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:686: error: too few arguments to function ‘proc_net_remove’
/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.c:686: warning: statement with no effect
make[3]: *** [/home/basalloy/maodv-uu-0.9.5/lnx/kaodv-mod.o] Error 1
make[2]: *** [_module_/home/basalloy/maodv-uu-0.9.5/lnx] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
make[1]: *** [kaodv.ko] Error 2
make[1]: Leaving directory `/home/basalloy/maodv-uu-0.9.5/lnx'
make: *** [kaodv] Error 2
哪位大神求解啊,快疯了
加载中
返回顶部
顶部