View Single Post
Posts: 2 | Thanked: 0 times | Joined on Sep 2014
#5
This error happens because defs.h include a <pcap.h> file but there isn't any pcap.h in the reaver src dir(/home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/).
so what we need todo is check the menuconfig and make sure the
Libraries --->libpcap is checked.Then we need copy pcap header files to the reaver src dir.
cp /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap.h /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/
cp -r /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap/ /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/

Then, this error should be diappear.


Originally Posted by psychologe View Post
i try to make it ,but reture error message:
gcc -Wall -g -O2 globule.c -c
In file included from globule.h:37,
from globule.c:34:
defs.h:43:18: error: pcap.h: No such file or directory
In file included from globule.c:34:

globule.h:115: error: expected specifier-qualifier-list before ‘pcap_t’
globule.h:199: error: expected ‘)’ before ‘*’ token
globule.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘globule_deinit’:
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c:65: warning: implicit declaration of function ‘pcap_close’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c: At top level:
globule.c:453: error: expected ‘)’ before ‘*’ token
globule.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘set_wps’:
globule.c:464: error: ‘struct globals’ has no member named ‘wps’
globule.c: In function ‘get_wps’:
globule.c:468: error: ‘struct globals’ has no member named ‘wps’
make: *** [globule.o] Error 1