Results 1 to 6 of 6

Thread: Installing AODV.uu

  1. #1
    Join Date
    May 2008
    Beans
    11

    Installing AODV.uu

    I'm trying to install AODV-Uu in Ubuntu Fiesty Fawn
    I've already installed kernel-source-2.6.8 & kernel-headers-2.6-386 as directed in the link http://my.opera.com/subjam/blog/show.dml/472834.
    Is there a problem of conflict between my current kernel version and installed one ie 2.6.8
    I dont know how to know my current version of kernel. I tried 'uname -r -s' which gives 'Linux 2.6.20-15-server'
    But i'm still not sure what kernel it is.
    Then I installed GCC and 'make' commands
    But when i type 'make' after going into the aodv-uu-0.9.5 folder i get the following list of errors

    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o main.o main.c
    main.c:22:19: error: stdio.h: No such file or directory
    main.c:23:20: error: stdlib.h: No such file or directory
    main.c:24:20: error: unistd.h: No such file or directory
    main.c:25:19: error: errno.h: No such file or directory
    main.c:26:23: error: sys/types.h: No such file or directory
    main.c:27:24: error: sys/socket.h: No such file or directory
    main.c:28:22: error: sys/stat.h: No such file or directory
    In file included from /usr/include/linux/posix_types.h:47,
    from /usr/include/linux/types.h:5,
    from /usr/include/linux/if.h:22,
    from main.c:30:
    /usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:13:22: error: features.h: No such file or directory
    main.c:32:20: error: getopt.h: No such file or directory
    main.c:33:19: error: ctype.h: No such file or directory
    In file included from main.c:35:
    defs.h:28:22: error: sys/time.h: No such file or directory
    defs.h:32:24: error: sys/signal.h: No such file or directory
    defs.h:33:24: error: netinet/in.h: No such file or directory
    defs.h:34:23: error: arpa/inet.h: No such file or directory
    defs.h:35:24: error: netinet/ip.h: No such file or directory
    defs.h:36:23: error: sys/ioctl.h: No such file or directory
    defs.h:39:20: error: syslog.h: No such file or directory
    defs.h:41:20: error: string.h: No such file or directory
    defs.h:42:19: error: fcntl.h: No such file or directory
    In file included from defs.h:45,
    from main.c:35:
    timer_queue.h:40: error: field ‚timeout‚ has incomplete type
    timer_queue.h: In function ‚timeval_diff‚:
    timer_queue.h:53: error: dereferencing pointer to incomplete type
    timer_queue.h:54: error: dereferencing pointer to incomplete type
    timer_queue.h:54: error: dereferencing pointer to incomplete type
    timer_queue.h:54: error: dereferencing pointer to incomplete type
    timer_queue.h: In function ‚timeval_add_msec‚:
    timer_queue.h:66: error: dereferencing pointer to incomplete type
    timer_queue.h:67: error: dereferencing pointer to incomplete type
    timer_queue.h:68: error: dereferencing pointer to incomplete type
    In file included from main.c:35:
    defs.h: At top level:
    defs.h:96: error: field ‚ipaddr‚ has incomplete type
    defs.h:97: error: field ‚netmask‚ has incomplete type
    defs.h:98: error: field ‚broadcast‚ has incomplete type
    defs.h:103: error: field ‚bcast_time‚ has incomplete type
    defs.h:104: error: field ‚fwd_time‚ has incomplete type
    defs.h: In function ‚name2index‚:
    defs.h:157: warning: implicit declaration of function ‚strcmp‚
    In file included from aodv_socket.h:30,
    from main.c:39:
    aodv_rerr.h:27:20: error: endian.h: No such file or directory
    In file included from aodv_rerr.h:30,
    from aodv_socket.h:30,
    from main.c:39:
    routing_table.h: At top level:
    routing_table.h:35: error: field ‚neighbor‚ has incomplete type
    routing_table.h:47: error: field ‚dest_addr‚ has incomplete type
    routing_table.h:50: error: field ‚next_hop‚ has incomplete type
    routing_table.h:57: error: field ‚last_hello_time‚ has incomplete type
    aodv_rerr.h:44:2: error: #error "Adjust your <bits/endian.h> defines"
    In file included from main.c:39:
    aodv_socket.h:45: error: array type has incomplete element type
    aodv_socket.h:45: error: array type has incomplete element type
    In file included from aodv_hello.h:28,
    from main.c:42:
    aodv_rrep.h:52:2: error: #error "Adjust your <bits/endian.h> defines"
    main.c:75: error: array type has incomplete element type
    main.c:76: error: ‚required_argument‚ undeclared here (not in a function)
    main.c:77: error: ‚no_argument‚ undeclared here (not in a function)
    main.c: In function ‚usage‚:
    main.c:100: warning: implicit declaration of function ‚fprintf‚
    main.c:100: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:100: error: ‚stderr‚ undeclared (first use in this function)
    main.c:100: error: (Each undeclared identifier is reported only once
    main.c:100: error: for each function it appears in.)
    main.c:101: warning: implicit declaration of function ‚exit‚
    main.c:101: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:105: warning: implicit declaration of function ‚printf‚
    main.c:105: warning: incompatible implicit declaration of built-in function ‚printf‚
    main.c:128: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c: In function ‚set_kernel_options‚:
    main.c:138: warning: implicit declaration of function ‚open‚
    main.c:138: error: ‚O_WRONLY‚ undeclared (first use in this function)
    main.c:140: warning: implicit declaration of function ‚write‚
    main.c:142: warning: implicit declaration of function ‚close‚
    main.c:162: warning: implicit declaration of function ‚memset‚
    main.c:162: warning: incompatible implicit declaration of built-in function ‚memset‚
    main.c:163: warning: implicit declaration of function ‚sprintf‚
    main.c:163: warning: incompatible implicit declaration of built-in function ‚sprintf‚
    main.c:179: warning: incompatible implicit declaration of built-in function ‚memset‚
    main.c:180: warning: incompatible implicit declaration of built-in function ‚sprintf‚
    main.c: In function ‚find_default_gw‚:
    main.c:201: error: ‚FILE‚ undeclared (first use in this function)
    main.c:201: error: ‚route‚ undeclared (first use in this function)
    main.c:204: warning: implicit declaration of function ‚fopen‚
    main.c:207: warning: implicit declaration of function ‚perror‚
    main.c:208: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:211: warning: implicit declaration of function ‚fgets‚
    main.c:212: warning: implicit declaration of function ‚strtok‚
    main.c:212: warning: assignment makes pointer from integer without a cast
    main.c:213: warning: assignment makes pointer from integer without a cast
    main.c:216: warning: assignment makes pointer from integer without a cast
    main.c:217: warning: assignment makes pointer from integer without a cast
    main.c:219: warning: implicit declaration of function ‚fclose‚
    main.c: In function ‚get_if_info‚:
    main.c:239: warning: implicit declaration of function ‚socket‚
    main.c:239: error: ‚SOCK_DGRAM‚ undeclared (first use in this function)
    main.c:241: warning: implicit declaration of function ‚strcpy‚
    main.c:241: warning: incompatible implicit declaration of built-in function ‚strcpy‚
    main.c:242: warning: implicit declaration of function ‚ioctl‚
    main.c:243: error: ‚LOG_ERR‚ undeclared (first use in this function)
    main.c:243: error: ‚errno‚ undeclared (first use in this function)
    main.c:248: warning: type-punning to incomplete type might break strict-aliasing rules
    main.c: In function ‚attach_callback_func‚:
    main.c:267: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:267: error: ‚stderr‚ undeclared (first use in this function)
    main.c:268: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c: In function ‚load_modules‚:
    main.c:282: error: storage size of ‚st‚ isn‚t known
    main.c:285: error: ‚FILE‚ undeclared (first use in this function)
    main.c:285: error: ‚m‚ undeclared (first use in this function)
    main.c:287: warning: incompatible implicit declaration of built-in function ‚memset‚
    main.c:289: warning: implicit declaration of function ‚stat‚
    main.c:290: warning: incompatible implicit declaration of built-in function ‚sprintf‚
    main.c:296: warning: implicit declaration of function ‚system‚
    main.c:298: warning: implicit declaration of function ‚usleep‚
    main.c:303: warning: assignment makes pointer from integer without a cast
    main.c:307: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:307: error: ‚stderr‚ undeclared (first use in this function)
    main.c:309: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:315: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:318: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:282: warning: unused variable ‚st‚
    main.c: In function ‚remove_modules‚:
    main.c:329: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:329: error: ‚stderr‚ undeclared (first use in this function)
    main.c: In function ‚host_init‚:
    main.c:342: warning: incompatible implicit declaration of built-in function ‚memset‚
    main.c:347: error: ‚SOCK_DGRAM‚ undeclared (first use in this function)
    main.c:351: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:351: error: ‚stderr‚ undeclared (first use in this function)
    main.c:352: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:358: warning: incompatible implicit declaration of built-in function ‚strcpy‚
    main.c:365: warning: implicit declaration of function ‚strlen‚
    main.c:365: warning: incompatible implicit declaration of built-in function ‚strlen‚
    main.c:366: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:368: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:370: warning: incompatible implicit declaration of built-in function ‚strcpy‚
    main.c:372: error: ‚LOG_ERR‚ undeclared (first use in this function)
    main.c:372: error: ‚errno‚ undeclared (first use in this function)
    main.c:375: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:381: error: ‚LOG_NOTICE‚ undeclared (first use in this function)
    main.c:385: warning: incompatible implicit declaration of built-in function ‚strcpy‚
    main.c:394: warning: implicit declaration of function ‚gettimeofday‚
    main.c:399: warning: assignment makes pointer from integer without a cast
    main.c:408: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:419: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:421: error: dereferencing pointer to incomplete type
    main.c:428: error: dereferencing pointer to incomplete type
    main.c:434: error: dereferencing pointer to incomplete type
    main.c:441: warning: assignment makes pointer from integer without a cast
    main.c:450: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:451: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c: In function ‚signal_handler‚:
    main.c:460: error: ‚SIGSEGV‚ undeclared (first use in this function)
    main.c:461: error: ‚LOG_ERR‚ undeclared (first use in this function)
    main.c:463: error: ‚SIGINT‚ undeclared (first use in this function)
    main.c:464: error: ‚SIGHUP‚ undeclared (first use in this function)
    main.c:465: error: ‚SIGTERM‚ undeclared (first use in this function)
    main.c:467: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c: In function ‚main‚:
    main.c:480: warning: implicit declaration of function ‚strrchr‚
    main.c:480: warning: incompatible implicit declaration of built-in function ‚strrchr‚
    main.c:495: warning: implicit declaration of function ‚getopt_long‚
    main.c:497: error: ‚EOF‚ undeclared (first use in this function)
    main.c:515: error: ‚optarg‚ undeclared (first use in this function)
    main.c:524: warning: implicit declaration of function ‚isdigit‚
    main.c:525: warning: implicit declaration of function ‚atoi‚
    main.c:527: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:527: error: ‚stderr‚ undeclared (first use in this function)
    main.c:528: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:541: warning: implicit declaration of function ‚atof‚
    main.c:563: warning: incompatible implicit declaration of built-in function ‚printf‚
    main.c:565: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:575: warning: implicit declaration of function ‚geteuid‚
    main.c:576: warning: incompatible implicit declaration of built-in function ‚fprintf‚
    main.c:577: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:582: warning: implicit declaration of function ‚fork‚
    main.c:583: warning: incompatible implicit declaration of built-in function ‚exit‚
    main.c:588: warning: implicit declaration of function ‚setsid‚
    main.c:591: warning: implicit declaration of function ‚atexit‚
    main.c:609: warning: implicit declaration of function ‚signal‚
    main.c:609: error: ‚SIGHUP‚ undeclared (first use in this function)
    main.c:610: error: ‚SIGINT‚ undeclared (first use in this function)
    main.c:611: error: ‚SIGTERM‚ undeclared (first use in this function)
    main.c:618: warning: implicit declaration of function ‚FD_ZERO‚
    main.c:620: warning: implicit declaration of function ‚FD_SET‚
    main.c:629: error: ‚LOG_NOTICE‚ undeclared (first use in this function)
    main.c:642: warning: implicit declaration of function ‚memcpy‚
    main.c:642: warning: incompatible implicit declaration of built-in function ‚memcpy‚
    main.c:646: warning: implicit declaration of function ‚select‚
    main.c:647: error: ‚errno‚ undeclared (first use in this function)
    main.c:647: error: ‚EINTR‚ undeclared (first use in this function)
    main.c:648: error: ‚LOG_WARNING‚ undeclared (first use in this function)
    main.c:655: warning: implicit declaration of function ‚FD_ISSET‚
    main.c: In function ‚cleanup‚:
    main.c:668: error: ‚LOG_DEBUG‚ undeclared (first use in this function)
    make: *** [main.o] Error


    PLZZZ HELP ME OUT...........WAITING ANXIOUSLY

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,138
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing AODV.uu

    When you run 'uname -r' it gives you the version number of your running kernel, in your case, 2.6.20-15. That's the problem we have here, the source and maybe the headers, do not match the running kernel. Also, I believe you need more tools than GCC to get the compile done. Please try:
    Code:
    sudo apt-get install build-essential
    sudo apt-get install linux-source
    sudo apt-get install linux-headers-generic
    These generic package will pull in the source and headers needed by your running kernel. Then try 'make' again.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    May 2008
    Beans
    11

    Re: Installing AODV.uu

    Hey chilli... thankxx a lot for helping me out... i did what you said... and it worked a little.... after doing what you said... i got following errors when i again typed make in the adov-uu folder... ther are not complete errors but some of them...

    kaodv-mod.c:38:22: error: linux/in.h: No such file or directory
    kaodv-mod.c:39:22: error: linux/ip.h: No such file or directory
    kaodv-mod.c:40:23: error: linux/udp.h: No such file or directory
    kaodv-mod.c:41:23: error: linux/tcp.h: No such file or directory
    kaodv-mod.c:42:21: error: net/tcp.h: No such file or directory
    kaodv-mod.c:43:23: error: net/route.h: No such file or directory
    In file included from kaodv-mod.c:45:
    kaodv-mod.h:6:24: error: linux/list.h: No such file or directory
    kaodv-mod.h:7:28: error: linux/spinlock.h: No such file or directory
    In file included from kaodv-mod.c:45:
    kaodv-mod.h:11: error: field ‚l‚ has incomplete type
    kaodv-mod.h:12: error: field ‚if_addr‚ has incomplete type
    kaodv-mod.h:13: error: field ‚bc_addr‚ has incomplete type
    kaodv-mod.h:17: warning: type defaults to ‚int‚ in declaration of ‚LIST_HEAD‚
    kaodv-mod.h:17: warning: parameter names (without types) in function declaration
    kaodv-mod.h:18: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚ifilock‚
    kaodv-mod.h: In function ‚if_info_add‚:
    kaodv-mod.h:27: warning: implicit declaration of function ‚kmalloc‚
    kaodv-mod.h:27: error: ‚GFP_ATOMIC‚ undeclared (first use in this function)
    kaodv-mod.h:27: error: (Each undeclared identifier is reported only once
    kaodv-mod.h:27: error: for each function it appears in.)
    kaodv-mod.h:34: warning: implicit declaration of function ‚dev_hold‚
    kaodv-mod.h:36: warning: implicit declaration of function ‚in_dev_get‚
    kaodv-mod.h:36: warning: assignment makes pointer from integer without a cast
    kaodv-mod.h:42: error: dereferencing pointer to incomplete type
    kaodv-mod.h:42: error: ‚NULL‚ undeclared (first use in this function)
    kaodv-mod.h:43: error: dereferencing pointer to incomplete type
    kaodv-mod.h:44: warning: implicit declaration of function ‚strcmp‚
    kaodv-mod.h:44: error: dereferencing pointer to incomplete type
    kaodv-mod.h:44: error: dereferencing pointer to incomplete type
    kaodv-mod.h:48: error: dereferencing pointer to incomplete type
    kaodv-mod.h:49: error: dereferencing pointer to incomplete type
    kaodv-mod.h:51: warning: implicit declaration of function ‚in_dev_put‚
    kaodv-mod.h:54: warning: implicit declaration of function ‚write_lock‚
    kaodv-mod.h:54: error: ‚ifilock‚ undeclared (first use in this function)
    kaodv-mod.h:55: warning: implicit declaration of function ‚list_add‚
    kaodv-mod.h:55: error: ‚ifihead‚ undeclared (first use in this function)
    kaodv-mod.h:56: warning: implicit declaration of function ‚write_unlock‚
    kaodv-mod.h: In function ‚if_info_purge‚:
    kaodv-mod.h:65: error: ‚ifilock‚ undeclared (first use in this function)
    kaodv-mod.h:66: warning: implicit declaration of function ‚list_for_each_safe‚
    kaodv-mod.h:66: error: ‚ifihead‚ undeclared (first use in this function)
    kaodv-mod.h:66: error: expected ‚;‚ before ‚{‚ token
    kaodv-mod.h: In function ‚if_info_from_ifindex‚:
    kaodv-mod.h:81: warning: implicit declaration of function ‚read_lock‚
    kaodv-mod.h:81: error: ‚ifilock‚ undeclared (first use in this function)
    kaodv-mod.h:82: warning: implicit declaration of function ‚list_for_each‚
    kaodv-mod.h:82: error: ‚ifihead‚ undeclared (first use in this function)
    kaodv-mod.h:82: error: expected ‚;‚ before ‚{‚ token
    kaodv-mod.h: At top level:
    kaodv-mod.h:100: warning: ‚struct iphdr‚ declared inside parameter list
    kaodv-mod.h:100: warning: its scope is only this definition or declaration, which is probably not what you want
    In file included from kaodv-mod.c:46:
    kaodv-expl.h:30: error: field ‚l‚ has incomplete type
    kaodv-expl.h:33: error: expected specifier-qualifier-list before ‚__u32‚
    kaodv-expl.h:40: error: expected ‚)‚ before ‚daddr‚
    kaodv-expl.h:41: error: expected ‚)‚ before ‚daddr‚
    kaodv-expl.h:43: error: expected ‚)‚ before ‚daddr‚
    kaodv-expl.h:46: error: expected ‚)‚ before ‚daddr‚
    In file included from kaodv-mod.c:47:
    kaodv-netlink.h:27:25: error: linux/types.h: No such file or directory
    kaodv-netlink.h:28:27: error: linux/netlink.h: No such file or directory
    kaodv-netlink.h:29:29: error: linux/rtnetlink.h: No such file or directory
    In file included from kaodv-mod.c:47:
    kaodv-netlink.h:102: error: expected specifier-qualifier-list before ‚u_int8_t‚
    kaodv-netlink.h:133: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    kaodv-netlink.h:133: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    kaodv-netlink.h:134: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    kaodv-netlink.h:135: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    kaodv-netlink.h:136: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    kaodv-netlink.h:136: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    In file included from kaodv-mod.c:48:
    kaodv-queue.h:28: error: expected ‚)‚ before ‚daddr‚
    kaodv-queue.h:30: warning: ‚struct sk_buff‚ declared inside parameter list
    kaodv-queue.h:31: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    In file included from kaodv-mod.c:49:
    kaodv-ipenc.h:29:27: error: asm/byteorder.h: No such file or directory
    In file included from kaodv-mod.c:49:
    kaodv-ipenc.h:34: error: expected specifier-qualifier-list before ‚u_int8_t‚
    kaodv-ipenc.h:42:2: error: #error "Adjust your <asm/byteorder.h> defines"
    kaodv-ipenc.h:48: error: expected declaration specifiers or ‚...‚ before ‚__u32‚
    In file included from kaodv-mod.c:50:
    kaodv-debug.h:35: error: expected ‚)‚ before ‚addr‚
    kaodv-debug.h: In function ‚print_eth‚:
    kaodv-debug.h:57: warning: implicit declaration of function ‚sprintf‚
    kaodv-debug.h:57: warning: incompatible implicit declaration of built-in function ‚sprintf‚
    kaodv-mod.c: At top level:
    kaodv-mod.c:65: error: expected declaration specifiers or ‚...‚ before string constant
    kaodv-mod.c:65: warning: data definition has no type or storage class
    kaodv-mod.c:65: warning: type defaults to ‚int‚ in declaration of ‚MODULE_DESCRIPTION‚
    kaodv-mod.c:66: error: expected declaration specifiers or ‚...‚ before string constant
    kaodv-mod.c:66: warning: data definition has no type or storage class
    kaodv-mod.c:66: warning: type defaults to ‚int‚ in declaration of ‚MODULE_AUTHOR‚
    kaodv-mod.c:75: warning: ‚struct iphdr‚ declared inside parameter list
    kaodv-mod.c:76: error: conflicting types for ‚kaodv_update_route_timeouts‚
    kaodv-mod.h:100: error: previous declaration of ‚kaodv_update_route_timeouts‚ was here
    kaodv-mod.c: In function ‚kaodv_update_route_timeouts‚:
    kaodv-mod.c:78: error: storage size of ‚bcaddr‚ isn‚t known
    kaodv-mod.c:84: error: ‚NULL‚ undeclared (first use in this function)
    kaodv-mod.c:84: error: dereferencing pointer to incomplete type
    kaodv-mod.c:89: error: ‚NF_IP_PRE_ROUTING‚ undeclared (first use in this function)
    kaodv-mod.c:90: error: dereferencing pointer to incomplete type
    kaodv-mod.c:91: error: dereferencing pointer to incomplete type
    kaodv-mod.c:91: error: dereferencing pointer to incomplete type
    kaodv-mod.c:91: error: too many arguments to function ‚kaodv_netlink_send_rt_update_msg‚
    kaodv-mod.c:92: error: dereferencing pointer to incomplete type
    kaodv-mod.c:92: error: ‚INADDR_BROADCAST‚ undeclared (first use in this function)
    kaodv-mod.c:92: error: dereferencing pointer to incomplete type
    kaodv-mod.c:93: error: dereferencing pointer to incomplete type
    kaodv-mod.c:94: error: dereferencing pointer to incomplete type
    kaodv-mod.c:94: error: dereferencing pointer to incomplete type
    kaodv-mod.c:94: error: too many arguments to function ‚kaodv_netlink_send_rt_update_msg‚
    kaodv-mod.c:97: warning: implicit declaration of function ‚kaodv_expl_get‚
    kaodv-mod.c:97: error: dereferencing pointer to incomplete type
    kaodv-mod.c:99: warning: implicit declaration of function ‚kaodv_expl_update‚
    kaodv-mod.c:99: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:99: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:100: error: dereferencing pointer to incomplete type
    kaodv-mod.c:102: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:102: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:102: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:103: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:103: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:104: error: dereferencing pointer to incomplete type
    kaodv-mod.c:107: error: dereferencing pointer to incomplete type
    kaodv-mod.c:109: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:109: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:110: error: dereferencing pointer to incomplete type
    kaodv-mod.c:112: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:112: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:112: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:113: error: ‚struct expl_entry‚ has no member named ‚daddr‚
    kaodv-mod.c:113: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:114: error: dereferencing pointer to incomplete type
    kaodv-mod.c:78: warning: unused variable ‚bcaddr‚
    kaodv-mod.c:124:41: error: missing binary operator before token "("
    kaodv-mod.c: In function ‚kaodv_hook‚:
    kaodv-mod.c:127: error: dereferencing pointer to incomplete type
    kaodv-mod.c:130: error: storage size of ‚ifaddr‚ isn‚t known
    kaodv-mod.c:130: error: storage size of ‚bcaddr‚ isn‚t known
    kaodv-mod.c:133: warning: implicit declaration of function ‚memset‚
    kaodv-mod.c:133: warning: incompatible implicit declaration of built-in function ‚memset‚
    kaodv-mod.c:133: error: invalid application of ‚sizeof‚ to incomplete type ‚struct in_addr‚
    kaodv-mod.c:134: error: invalid application of ‚sizeof‚ to incomplete type ‚struct in_addr‚
    kaodv-mod.c:137: error: ‚NULL‚ undeclared (first use in this function)
    kaodv-mod.c:138: error: ‚NF_ACCEPT‚ undeclared (first use in this function)
    kaodv-mod.c:142: error: dereferencing pointer to incomplete type
    kaodv-mod.c:142: error: ‚IPPROTO_UDP‚ undeclared (first use in this function)
    kaodv-mod.c:145: error: dereferencing pointer to incomplete type
    kaodv-mod.c:147: warning: implicit declaration of function ‚ntohs‚
    kaodv-mod.c:147: error: dereferencing pointer to incomplete type
    kaodv-mod.c:148: error: dereferencing pointer to incomplete type
    kaodv-mod.c:164: error: ‚NF_IP_PRE_ROUTING‚ undeclared (first use in this function)
    kaodv-mod.c:165: warning: passing argument 3 of ‚kaodv_update_route_timeouts‚ from incompatible pointer type
    kaodv-mod.c:172: error: dereferencing pointer to incomplete type
    kaodv-mod.c:174: error: dereferencing pointer to incomplete type
    kaodv-mod.c:181: error: dereferencing pointer to incomplete type
    kaodv-mod.c:181: error: ‚INADDR_BROADCAST‚ undeclared (first use in this function)
    kaodv-mod.c:182: warning: implicit declaration of function ‚IN_MULTICAST‚
    kaodv-mod.c:182: warning: implicit declaration of function ‚ntohl‚
    kaodv-mod.c:182: error: dereferencing pointer to incomplete type
    kaodv-mod.c:183: error: dereferencing pointer to incomplete type
    kaodv-mod.c:190: warning: passing argument 3 of ‚kaodv_update_route_timeouts‚ from incompatible pointer type
    kaodv-mod.c:193: error: dereferencing pointer to incomplete type
    kaodv-mod.c:194: error: dereferencing pointer to incomplete type
    kaodv-mod.c:196:41: error: missing binary operator before token "("
    kaodv-mod.c:199: error: dereferencing pointer to incomplete type
    kaodv-mod.c:205: error: dereferencing pointer to incomplete type
    kaodv-mod.c:206: error: dereferencing pointer to incomplete type
    kaodv-mod.c:210: error: dereferencing pointer to incomplete type
    kaodv-mod.c:211: error: dereferencing pointer to incomplete type
    kaodv-mod.c:212: error: dereferencing pointer to incomplete type
    kaodv-mod.c:212: error: dereferencing pointer to incomplete type
    kaodv-mod.c:212: error: too many arguments to function ‚kaodv_netlink_send_rerr_msg‚
    kaodv-mod.c:213: error: ‚NF_DROP‚ undeclared (first use in this function)
    kaodv-mod.c:219: error: dereferencing pointer to incomplete type
    kaodv-mod.c:220: error: dereferencing pointer to incomplete type
    kaodv-mod.c:220: error: too many arguments to function ‚kaodv_netlink_send_rt_msg‚
    kaodv-mod.c:222: warning: passing argument 1 of ‚kaodv_queue_enqueue_packet‚ from incompatible pointer type
    kaodv-mod.c:222: warning: passing argument 2 of ‚kaodv_queue_enqueue_packet‚ from incompatible pointer type
    kaodv-mod.c:224: error: ‚NF_STOLEN‚ undeclared (first use in this function)
    kaodv-mod.c:227: error: ‚NF_IP_LOCAL_OUT‚ undeclared (first use in this function)
    kaodv-mod.c:229: error: dereferencing pointer to incomplete type
    kaodv-mod.c:232: warning: implicit declaration of function ‚kaodv_queue_find‚
    kaodv-mod.c:232: error: dereferencing pointer to incomplete type
    kaodv-mod.c:235: error: dereferencing pointer to incomplete type
    kaodv-mod.c:235: error: too many arguments to function ‚kaodv_netlink_send_rt_msg‚
    kaodv-mod.c:237: warning: passing argument 1 of ‚kaodv_queue_enqueue_packet‚ from incompatible pointer type
    kaodv-mod.c:237: warning: passing argument 2 of ‚kaodv_queue_enqueue_packet‚ from incompatible pointer type
    kaodv-mod.c:263: warning: passing argument 3 of ‚kaodv_update_route_timeouts‚ from incompatible pointer type
    kaodv-mod.c:265: error: ‚struct expl_entry‚ has no member named ‚nhop‚
    kaodv-mod.c:265: error: too many arguments to function ‚ip_pkt_encapsulate‚
    kaodv-mod.c:270:41: error: missing binary operator before token "("
    kaodv-mod.c:273: warning: implicit declaration of function ‚ip_route_me_harder‚
    kaodv-mod.c:273: error: ‚RTN_LOCAL‚ undeclared (first use in this function)
    kaodv-mod.c:277: error: ‚NF_IP_POST_ROUTING‚ undeclared (first use in this function)
    kaodv-mod.c:278: warning: passing argument 3 of ‚kaodv_update_route_timeouts‚ from incompatible pointer type
    kaodv-mod.c:130: warning: unused variable ‚bcaddr‚
    kaodv-mod.c:130: warning: unused variable ‚ifaddr‚
    kaodv-mod.c: At top level:
    kaodv-mod.c:283: error: expected declaration specifiers or ‚...‚ before ‚off_t‚
    kaodv-mod.c: In function ‚kaodv_proc_info‚:
    kaodv-mod.c:288: warning: incompatible implicit declaration of built-in function ‚sprintf‚
    kaodv-mod.c:292: error: ‚offset‚ undeclared (first use in this function)
    kaodv-mod.c: At top level:
    kaodv-mod.c:315: error: expected ‚)‚ before string constant
    kaodv-mod.c:316: error: expected ‚)‚ before string constant
    kaodv-mod.c:319: error: array type has incomplete element type
    kaodv-mod.c:321: error: field name not in record or union initializer
    kaodv-mod.c:321: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:325: error: field name not in record or union initializer
    kaodv-mod.c:325: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:325: error: ‚PF_INET‚ undeclared here (not in a function)
    kaodv-mod.c:326: error: field name not in record or union initializer
    kaodv-mod.c:326: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:326: error: ‚NF_IP_PRE_ROUTING‚ undeclared here (not in a function)
    kaodv-mod.c:327: error: field name not in record or union initializer
    kaodv-mod.c:327: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:327: error: ‚NF_IP_PRI_FIRST‚ undeclared here (not in a function)
    kaodv-mod.c:330: error: field name not in record or union initializer
    kaodv-mod.c:330: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:334: error: field name not in record or union initializer
    kaodv-mod.c:334: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:335: error: field name not in record or union initializer
    kaodv-mod.c:335: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:335: error: ‚NF_IP_LOCAL_OUT‚ undeclared here (not in a function)
    kaodv-mod.c:336: error: field name not in record or union initializer
    kaodv-mod.c:336: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:336: error: ‚NF_IP_PRI_FILTER‚ undeclared here (not in a function)
    kaodv-mod.c:339: error: field name not in record or union initializer
    kaodv-mod.c:339: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:343: error: field name not in record or union initializer
    kaodv-mod.c:343: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:344: error: field name not in record or union initializer
    kaodv-mod.c:344: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:344: error: ‚NF_IP_POST_ROUTING‚ undeclared here (not in a function)
    kaodv-mod.c:345: error: field name not in record or union initializer
    kaodv-mod.c:345: error: (near initialization for ‚kaodv_ops‚)
    kaodv-mod.c:349: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚kaodv_init‚
    kaodv-mod.c:423: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚kaodv_exit‚
    kaodv-mod.c:439: warning: data definition has no type or storage class
    kaodv-mod.c:439: warning: type defaults to ‚int‚ in declaration of ‚module_init‚
    kaodv-mod.c:439: warning: parameter names (without types) in function declaration
    kaodv-mod.c:440: warning: data definition has no type or storage class
    kaodv-mod.c:440: warning: type defaults to ‚int‚ in declaration of ‚module_exit‚
    kaodv-mod.c:440: warning: parameter names (without types) in function declaration
    make[1]: *** [kaodv-mod.o] Error 1
    make[1]: Leaving directory `/root/test/aodv-uu-0.9.5/lnx'
    make: *** [kaodv] Error 2

    now you must have noted that the errors that were coming earlier were all concerned with main.c file but now they are all in k-aodv-mod.c file.... i hopw and wish that you can help me more... i ll be really thankfull to you....

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,138
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing AODV.uu

    I got it to compile on kernel version 2.6.20-16-generic with warnings, but no errors with:
    Code:
     make KCC=gcc33
    This is suggested in the README for users of Fedora Core 1!!! That suggests just how old this thing is.

    I checked in Synaptic and the oldest version of gcc I can find to install, which I already had, was gcc-3.3. I suppose the differences in 3.2 versus 3.3 throw up the warnings. I also believe if you update your kernel, you will not be able to get this old-timer to compile. If 2.6.20 works well for you and you need AODV.UU, do not install a new kernel.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  5. #5
    Join Date
    May 2008
    Beans
    11

    Re: Installing AODV.uu

    I'm still having a problem...Would u do me a favor by telling what exactly were your kernel and gcc versions.What was your environment? what version of AODV-uu were u using? I'm currently using Ubuntu 7.04 feisty fawn. If needed, I'm ready to change the version of the operating system....My netfilter is not getting enabled, which i think, is because of the version conflicts. I'm using
    OS = Ubuntu 7.04 Feisty Fawn
    kernel = 2.6.20-16
    gcc = 4.12 (but I've changed it to 3.3)
    AODV-uu = 0.9.5 (but i do have other versions as well)

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,138
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing AODV.uu

    I am running Hardy, but I have booted to kernel version 2.6.20-16-generic. My gcc version is 4.2.3, however, like you, I have 3.3, also. The AODV version I downloaded seems to be 0.9.6. I just did a 'make clean' followed by 'make KCC=gcc33' and, again, I got a few warnings, but no errors.

    Please understand; I do not use AODV.uu or even know what it is or does. I just responded because you asked for help in compiling and I can sometimes help figure out how to compile. If you are getting compile errors, I will be glad to help. Beyond that, I am out of talent.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •