john@trine-midnight:~$ cd /tr bash: cd: /tr: No such file or directory john@trine-midnight:~$ cd /home/john/trunk/ john@trine-midnight:~/trunk$ cd wl bash: cd: wl: No such file or directory john@trine-midnight:~/trunk$ ls kamikaze john@trine-midnight:~/trunk$ cd kamikaze/ john@trine-midnight:~/trunk/kamikaze$ cd wlaninject-0.6/ john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ ls INSTALL.txt wireless.11.h wireless.17.h wlaninject.c iwlib.c wireless.12.h wireless.18.h wlaninject-DETLEV.c iwlib.h wireless.13.h wireless.19.h wlaninject-LD-RD.c libiw.so.28 wireless.14.h wireless.20.h wlaninject-PRUEBA.C Makefile wireless.15.h wireless.h wireless.10.h wireless.16.h wlaninject2.c john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ sudo make Password: gcc -Os -I. -lnet -lpcap -W -Wall -MMD -fPIC -c -o iwlib.so iwlib.c gcc: -lnet: linker input file unused because linking not done gcc: -lpcap: linker input file unused because linking not done rm -f libiw.a ar cru libiw.a iwlib.so ranlib libiw.a gcc -Os -I. -lnet -lpcap -W -Wall -MMD -c wlaninject.c wlaninject.c:39:20: warning: libnet.h: No such file or directory wlaninject.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token wlaninject.c: In function ‘do_libnet_init’: wlaninject.c:222: error: ‘LIBNET_ERRBUF_SIZE’ undeclared (first use in this function) wlaninject.c:222: error: (Each undeclared identifier is reported only once wlaninject.c:222: error: for each function it appears in.) wlaninject.c:226: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:228: warning: implicit declaration of function ‘libnet_destroy’ wlaninject.c:236: warning: implicit declaration of function ‘libnet_init’ wlaninject.c:236: error: ‘LIBNET_LINK’ undeclared (first use in this function) wlaninject.c:222: warning: unused variable ‘ebuf’ wlaninject.c: In function ‘pingip_send’: wlaninject.c:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘arp’ wlaninject.c:247: error: ‘arp’ undeclared (first use in this function) wlaninject.c:247: error: ‘eth’ undeclared (first use in this function) wlaninject.c:247: warning: left-hand operand of comma expression has no effect wlaninject.c:248: warning: implicit declaration of function ‘libnet_build_arp’ wlaninject.c:259: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:262: warning: implicit declaration of function ‘libnet_geterror’ wlaninject.c:262: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:265: warning: implicit declaration of function ‘libnet_build_ethernet’ wlaninject.c:273: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:279: warning: implicit declaration of function ‘libnet_write’ wlaninject.c:281: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c: In function ‘main’: wlaninject.c:569: warning: implicit declaration of function ‘libnet_get_hwaddr’ wlaninject.c:569: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:571: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:577: warning: implicit declaration of function ‘libnet_get_ipaddr4’ wlaninject.c:577: warning: comparison between signed and unsigned wlaninject.c:579: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:584: warning: implicit declaration of function ‘signal’ wlaninject.c:584: error: ‘SIGINT’ undeclared (first use in this function) wlaninject.c:602: warning: comparison between signed and unsigned wlaninject.c:610: warning: comparison between signed and unsigned make: *** [wlaninject.o] Error 1 john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ make gcc -Os -I. -lnet -lpcap -W -Wall -MMD -c wlaninject.c wlaninject.c:39:20: warning: libnet.h: No such file or directory wlaninject.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token wlaninject.c: In function ‘do_libnet_init’: wlaninject.c:222: error: ‘LIBNET_ERRBUF_SIZE’ undeclared (first use in this function) wlaninject.c:222: error: (Each undeclared identifier is reported only once wlaninject.c:222: error: for each function it appears in.) wlaninject.c:226: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:228: warning: implicit declaration of function ‘libnet_destroy’ wlaninject.c:236: warning: implicit declaration of function ‘libnet_init’ wlaninject.c:236: error: ‘LIBNET_LINK’ undeclared (first use in this function) wlaninject.c:222: warning: unused variable ‘ebuf’ wlaninject.c: In function ‘pingip_send’: wlaninject.c:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘arp’ wlaninject.c:247: error: ‘arp’ undeclared (first use in this function) wlaninject.c:247: error: ‘eth’ undeclared (first use in this function) wlaninject.c:247: warning: left-hand operand of comma expression has no effect wlaninject.c:248: warning: implicit declaration of function ‘libnet_build_arp’ wlaninject.c:259: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:262: warning: implicit declaration of function ‘libnet_geterror’ wlaninject.c:262: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:265: warning: implicit declaration of function ‘libnet_build_ethernet’ wlaninject.c:273: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:279: warning: implicit declaration of function ‘libnet_write’ wlaninject.c:281: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c: In function ‘main’: wlaninject.c:569: warning: implicit declaration of function ‘libnet_get_hwaddr’ wlaninject.c:569: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:571: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:577: warning: implicit declaration of function ‘libnet_get_ipaddr4’ wlaninject.c:577: warning: comparison between signed and unsigned wlaninject.c:579: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:584: warning: implicit declaration of function ‘signal’ wlaninject.c:584: error: ‘SIGINT’ undeclared (first use in this function) wlaninject.c:602: warning: comparison between signed and unsigned wlaninject.c:610: warning: comparison between signed and unsigned wlaninject.c: At top level: wlaninject.c:727: fatal error: opening dependency file wlaninject.d: Permission denied compilation terminated. make: *** [wlaninject.o] Error 1 john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ sudo make gcc -Os -I. -lnet -lpcap -W -Wall -MMD -c wlaninject.c wlaninject.c:39:20: warning: libnet.h: No such file or directory wlaninject.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token wlaninject.c: In function ‘do_libnet_init’: wlaninject.c:222: error: ‘LIBNET_ERRBUF_SIZE’ undeclared (first use in this function) wlaninject.c:222: error: (Each undeclared identifier is reported only once wlaninject.c:222: error: for each function it appears in.) wlaninject.c:226: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:228: warning: implicit declaration of function ‘libnet_destroy’ wlaninject.c:236: warning: implicit declaration of function ‘libnet_init’ wlaninject.c:236: error: ‘LIBNET_LINK’ undeclared (first use in this function) wlaninject.c:222: warning: unused variable ‘ebuf’ wlaninject.c: In function ‘pingip_send’: wlaninject.c:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘arp’ wlaninject.c:247: error: ‘arp’ undeclared (first use in this function) wlaninject.c:247: error: ‘eth’ undeclared (first use in this function) wlaninject.c:247: warning: left-hand operand of comma expression has no effect wlaninject.c:248: warning: implicit declaration of function ‘libnet_build_arp’ wlaninject.c:259: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:262: warning: implicit declaration of function ‘libnet_geterror’ wlaninject.c:262: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:265: warning: implicit declaration of function ‘libnet_build_ethernet’ wlaninject.c:273: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:279: warning: implicit declaration of function ‘libnet_write’ wlaninject.c:281: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c: In function ‘main’: wlaninject.c:569: warning: implicit declaration of function ‘libnet_get_hwaddr’ wlaninject.c:569: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:571: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:577: warning: implicit declaration of function ‘libnet_get_ipaddr4’ wlaninject.c:577: warning: comparison between signed and unsigned wlaninject.c:579: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:584: warning: implicit declaration of function ‘signal’ wlaninject.c:584: error: ‘SIGINT’ undeclared (first use in this function) wlaninject.c:602: warning: comparison between signed and unsigned wlaninject.c:610: warning: comparison between signed and unsigned make: *** [wlaninject.o] Error 1 john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ clear john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$ sudo make gcc -Os -I. -lnet -lpcap -W -Wall -MMD -c wlaninject.c wlaninject.c:39:20: warning: libnet.h: No such file or directory wlaninject.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token wlaninject.c: In function ‘do_libnet_init’: wlaninject.c:222: error: ‘LIBNET_ERRBUF_SIZE’ undeclared (first use in this function) wlaninject.c:222: error: (Each undeclared identifier is reported only once wlaninject.c:222: error: for each function it appears in.) wlaninject.c:226: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:228: warning: implicit declaration of function ‘libnet_destroy’ wlaninject.c:236: warning: implicit declaration of function ‘libnet_init’ wlaninject.c:236: error: ‘LIBNET_LINK’ undeclared (first use in this function) wlaninject.c:222: warning: unused variable ‘ebuf’ wlaninject.c: In function ‘pingip_send’: wlaninject.c:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘arp’ wlaninject.c:247: error: ‘arp’ undeclared (first use in this function) wlaninject.c:247: error: ‘eth’ undeclared (first use in this function) wlaninject.c:247: warning: left-hand operand of comma expression has no effect wlaninject.c:248: warning: implicit declaration of function ‘libnet_build_arp’ wlaninject.c:259: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:262: warning: implicit declaration of function ‘libnet_geterror’ wlaninject.c:262: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:265: warning: implicit declaration of function ‘libnet_build_ethernet’ wlaninject.c:273: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:279: warning: implicit declaration of function ‘libnet_write’ wlaninject.c:281: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c: In function ‘main’: wlaninject.c:569: warning: implicit declaration of function ‘libnet_get_hwaddr’ wlaninject.c:569: error: ‘libnet’ undeclared (first use in this function) wlaninject.c:571: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:577: warning: implicit declaration of function ‘libnet_get_ipaddr4’ wlaninject.c:577: warning: comparison between signed and unsigned wlaninject.c:579: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ wlaninject.c:584: warning: implicit declaration of function ‘signal’ wlaninject.c:584: error: ‘SIGINT’ undeclared (first use in this function) wlaninject.c:602: warning: comparison between signed and unsigned wlaninject.c:610: warning: comparison between signed and unsigned make: *** [wlaninject.o] Error 1 john@trine-midnight:~/trunk/kamikaze/wlaninject-0.6$