Problem compiling C program

Discussion in 'iOS Jailbreak & Cydia' started by Admiralyi, Feb 2, 2010.

  1. Admiralyi

    Admiralyi New Member

    Joined:
    Feb 2, 2010
    Messages:
    2
    Likes Received:
    0
    Device:
    iPod touch
    Hello,
    I am new to ipods, so please bear with me.
    I'm trying to install a program on my jailbroken ipod. I have downloaded it with wget and am now trying to make it. I have installed make and gcc. Whenever I type make, I get these errors:

    Code:
    make -C src all                                                                                            
    make[1]: Entering directory `/private/var/mobile/aircrack-ng-1.0-rc3/src'                                  
    make -C osdep                                                                                              
    make[2]: Entering directory `/private/var/mobile/aircrack-ng-1.0-rc3/src/osdep'                            
    Building for Darwin                                                                                        
    make[3]: Entering directory `/private/var/mobile/aircrack-ng-1.0-rc3/src/osdep'                            
    gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o osdep.o osdep.c      
    osdep.c:21:20: error: stdlib.h: No such file or directory                                                  
    osdep.c:22:20: error: assert.h: No such file or directory                                                  
    osdep.c:23:20: error: string.h: No such file or directory                                                  
    In file included from osdep.c:25:                                                                          
    osdep.h:11:24: error: netinet/in.h: No such file or directory                                              
    osdep.h:12:20: error: stdint.h: No such file or directory                                                  
    In file included from osdep.c:25:                                                                          
    osdep.h:26: error: expected specifier-qualifier-list before 'uint64_t'                                     
    cc1: warnings being treated as errors                                                                      
    osdep.h:111: warning: 'struct in_addr' declared inside parameter list                                      
    osdep.h:111: warning: its scope is only this definition or declaration, which is probably not what you want
    osdep.h:133: warning: 'struct in_addr' declared inside parameter list                                      
    In file included from osdep.c:26:                                                                          
    network.h:11:22: error: inttypes.h: No such file or directory                                              
    network.h:12:23: error: sys/types.h: No such file or directory                                             
    In file included from osdep.c:26:                                                                          
    network.h:30: error: expected specifier-qualifier-list before 'uint8_t'                                    
    osdep.c: In function 'wi_read':                                                                            
    osdep.c:30: warning: implicit declaration of function 'assert'                                             
    osdep.c: In function 'wi_alloc':
    osdep.c:94: warning: implicit declaration of function 'malloc'
    osdep.c:94: warning: incompatible implicit declaration of built-in function 'malloc'
    osdep.c:96: error: 'NULL' undeclared (first use in this function)
    osdep.c:96: error: (Each undeclared identifier is reported only once
    osdep.c:96: error: for each function it appears in.)
    osdep.c:97: warning: implicit declaration of function 'memset'
    osdep.c:97: warning: incompatible implicit declaration of built-in function 'memset'
    osdep.c:101: warning: implicit declaration of function 'free'
    osdep.c: In function 'wi_open':
    osdep.c:160: error: 'NULL' undeclared (first use in this function)
    osdep.c:162: warning: implicit declaration of function 'strncpy'
    osdep.c:162: warning: incompatible implicit declaration of built-in function 'strncpy'
    osdep.c: At top level:
    osdep.c:217: warning: 'struct in_addr' declared inside parameter list
    osdep.c:218: error: conflicting types for 'ti_set_ip'
    osdep.h:133: error: previous declaration of 'ti_set_ip' was here
    osdep.c: In function 'ti_set_ip':
    osdep.c:220: warning: passing argument 2 of 'ti->ti_set_ip' from incompatible pointer type
    osdep.c: In function 'ti_alloc':
    osdep.c:229: warning: incompatible implicit declaration of built-in function 'malloc'
    osdep.c:231: error: 'NULL' undeclared (first use in this function)
    osdep.c:232: warning: incompatible implicit declaration of built-in function 'memset'
    make[3]: *** [osdep.o] Error 1
    make[3]: Leaving directory `/private/var/mobile/aircrack-ng-1.0-rc3/src/osdep'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/private/var/mobile/aircrack-ng-1.0-rc3/src/osdep'
    make[1]: *** [osd] Error 2
    make[1]: Leaving directory `/private/var/mobile/aircrack-ng-1.0-rc3/src'
    make: *** [all] Error 2
    
    I have used make to compile from source on Linux lots, but can't seem to make sense of much of that. Am I missing a dependency, or is this just a program that won't run on the ipod?
    ------------------double post merged------------------
    Bump

    Come on, someone must know whats wrong.

Share This Page