Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error unknown type name 'pcap_t' #311

Open
kos-crypto opened this issue Apr 7, 2020 · 4 comments
Open

error unknown type name 'pcap_t' #311

kos-crypto opened this issue Apr 7, 2020 · 4 comments

Comments

@kos-crypto
Copy link

root@:~/reaver-wps-fork-t6x/src# make
gcc -DCONF_DIR='"/usr/local/var/lib/reaver"' -Wall -g -O2 -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-function -Wno-pointer-sign -Ilibwps -I. -Ilwe -DCONFIG_IPV6 -c -o globule.o globule.c
In file included from globule.c:34:
globule.h:149:9: error: unknown type name ‘pcap_t’
149 | pcap_t handle; / Pcap handle */
| ^~~~~~
globule.h:251:17: error: unknown type name ‘pcap_t’
251 | void set_handle(pcap_t *value);
| ^~~~~~
globule.h:252:1: error: unknown type name ‘pcap_t’
252 | pcap_t *get_handle();
| ^~~~~~
globule.c: In function ‘globule_deinit’:
globule.c:70:23: warning: implicit declaration of function ‘pcap_close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
70 | if(globule->handle) pcap_close(globule->handle);
| ^~~~~~~~~~
| pclose
globule.c: At top level:
globule.c:529:17: error: unknown type name ‘pcap_t’
529 | void set_handle(pcap_t *value)
| ^~~~~~
globule.c:533:1: error: unknown type name ‘pcap_t’
533 | pcap_t *get_handle()
| ^~~~~~
make: *** [: globule.o] Error 1

@rofl0r
Copy link
Collaborator

rofl0r commented Apr 8, 2020

do you have libpcap-dev installed ?

@kos-crypto
Copy link
Author

Снимок экрана 2020-04-09 в 10 58 31

@feitoi
Copy link
Contributor

feitoi commented Apr 22, 2020

Setups again your environment

make clean
./configure
make

@kos-crypto
Copy link
Author

Setups again your environment

make clean
./configure
make

Снимок экрана 2020-04-22 в 21 57 10

Снимок экрана 2020-04-22 в 21 57 39

Снимок экрана 2020-04-22 в 21 58 07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants