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 & rmdirany file in
/usr/include/pcap' and '/usr/local/include/pcap
- Download libpcap by
sudo apt-get install libpcap0.8-dev
./autogen.shin wireshark dir
make clean & make & make install
However, neither is working on Ubuntu 12.04/wireshark 1.8.3.
Can anyone help?