On Sep 17, 2010, at 7:20 AM, 刘昆 wrote:
> When I make wireshark source code on ubuntu ,error occurs
>
> capture-pcap-util.c:274: error: static declaration of
> ‘pcap_datalink_name_to_val’ follows non-static declaration
> /usr/local/include/pcap/pcap.h:326: note: previous declaration of
> ‘pcap_datalink_name_to_val’ was here
> capture-pcap-util.c:289: error: static declaration of
> ‘pcap_datalink_val_to_name’ follows non-static declaration
> /usr/local/include/pcap/pcap.h:327: note: previous declaration of
> ‘pcap_datalink_val_to_name’ was here
The configure script is confused about whether libpcap on your system has pcap_datalink_name_to_val() and pcap_datalink_name_to_val() or not.
Could you please send us the output of the configure script?