This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Error while make

0

Hello! I run ./configure and all seems ok. When run "make" i get the following error:

In file included from airpcap_dlg.c:44:0:
../../pcap.h:276:7: error: conflicting types for ‘bpf_filter’
/usr/local/include/pcap/bpf.h:1274:14: note: previous declaration of ‘bpf_filter’ was here
../../pcap.h:277:5: error: conflicting types for ‘bpf_validate’
/usr/local/include/pcap/bpf.h:1273:12: note: previous declaration of ‘bpf_validate’ was here
airpcap_dlg.c: In function ‘on_merge_bt_clicked’:
airpcap_dlg.c:2406:11: warning: variable ‘n_curr_adapter_keys’ set but not used [-Wunused-but-set-variable]
airpcap_dlg.c:2405:11: warning: variable ‘n_driver_keys’ set but not used [-Wunused-but-set-variable]
airpcap_dlg.c:2404:11: warning: variable ‘n_wireshark_keys’ set but not used [-Wunused-but-set-variable]
airpcap_dlg.c: In function ‘on_import_bt_clicked’:
airpcap_dlg.c:2523:11: warning: variable ‘n_curr_adapter_keys’ set but not used [-Wunused-but-set-variable]
airpcap_dlg.c:2522:11: warning: variable ‘n_driver_keys’ set but not used [-Wunused-but-set-variable]
airpcap_dlg.c:2521:11: warning: variable ‘n_wireshark_keys’ set but not used [-Wunused-but-set-variable]
make[2]: *** [libgtkui_a-airpcap_dlg.o] Error 1
make[2]: Leaving directory `/home/juan/wireshark-1.8.6/ui/gtk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/juan/wireshark-1.8.6'
make: *** [install] Error 2

Any help is welcome.

Thanks!

asked 16 Mar '13, 09:51

mrizzone's gravatar image

mrizzone
1111
accept rate: 0%

edited 06 Mar '14, 10:58

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142

Please provide info as to the OS, OS version, Compiler version, libpcap version & etc

(16 Mar '13, 09:59) Bill Meier ♦♦

One Answer:

0
In file included from airpcap_dlg.c:44:0:
../../pcap.h:276:7: error: conflicting types for ‘bpf_filter’

If there is a "pcap.h" file in the top-level Wireshark source directory, remove it, as it shouldn't be there (Wireshark does not include a "pcap.h" header file), and then try building again.

answered 16 Mar '13, 10:48

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%