[OpenWrt-Tickets] [OpenWrt] #1968: Compile error in aodv-uu

OpenWrt openwrt-devel at lists.openwrt.org
Thu May 15 10:18:05 CEST 2008


#1968: Compile error in aodv-uu
---------------------------+------------------------------------------------
 Reporter:  Hauke          |        Owner:  developers
     Type:  defect         |       Status:  closed    
 Priority:  normal         |    Milestone:  Kamikaze  
Component:  packages       |   Resolution:  fixed     
 Keywords:  Revision 7731  |  
---------------------------+------------------------------------------------
Comment (by anonymous):

 Hi everyone,
 I,ve installed kernel-source-2.6.8 and kernel-headers-2.6-386
 but i dont know my recent kernel version and i dont know how to find it
 out. But i've installed the above stated source and headers.I've also
 installed gcc and make

 When i try to compile AODV-uu by running 'make' i get the following errors
 root at ubuntu:/test/aodv-uu-0.9.5# make
 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 1

 Are these errors because of the conflict of kernel versions...
 Plzzz help me out... anxiusly waiting.......

-- 
Ticket URL: <https://dev.openwrt.org/ticket/1968#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology


More information about the openwrt-tickets mailing list