To enable capture traffic on multiple interfaces at once, I tried to install wireshark 1.8.3. However, I encountered the following errors:
capture-pcap-util.c:274:1: error: static declaration of ‘pcap_datalink_name_to_val’ follows non-static declaration
/usr/local/include/pcap/pcap.h:326:5: note: previous declaration of ‘pcap_datalink_name_to_val’ was here
capture-pcap-util.c:289:1: error: static declaration of ‘pcap_datalink_val_to_name’ follows non-static declaration
/usr/local/include/pcap/pcap.h:327:13: note: previous declaration of ‘pcap_datalink_val_to_name’ was here
After doing some search, I found someone can fix it by reinstall libpcap-dev
, or the following commands:
rm & rmdir
any file in/usr/include/pcap' and '/usr/local/include/pcap
- Download libpcap by
sudo apt-get install libpcap0.8-dev
./autogen.sh
in wireshark dirmake clean & make & make install
However, neither is working on Ubuntu 12.04/wireshark 1.8.3.
Can anyone help?
Basically, you should run sudo dpkg-reconfigure wireshark-common to and answer Yes (Should non-superusers be able to capture packets?) and then add your user to the group wireshark.
– Konstigt Feb 20 '14 at 13:26