I downloaded v. 1.10.5 and the build failed. I simply ran ./configure without any options. The error was:
CC wireshark-capture-pcap-util.o
capture-pcap-util.c:569:1: error: static declaration of ‘pcap_datalink_name_to_val’ follows non-static declaration
In file included from /usr/include/pcap.h:45:0,
from capture-pcap-util.h:30,
from capture-pcap-util.c:48:
/usr/include/pcap/pcap.h:380:5: note: previous declaration of ‘pcap_datalink_name_to_val’ was here
capture-pcap-util.c:584:1: error: static declaration of ‘pcap_datalink_val_to_name’ follows non-static declaration
In file included from /usr/include/pcap.h:45:0,
from capture-pcap-util.h:30,
from capture-pcap-util.c:48:
/usr/include/pcap/pcap.h:381:13: note: previous declaration of ‘pcap_datalink_val_to_name’ was here
Which definition should be removed or modified?
Thank you, Chuck Crisler
asked 15 Jan '14, 06:51
ChuckCrisler
11●2●2●3
accept rate: 0%
edited 15 Jan '14, 07:02
grahamb ♦
19.8k●3●30●206
OK, I will do that tomorrow. Thank you for the info. However, I do still need the build. How do I get it to work?
Thank you, Chuck
Edit config.h and make sure it defines
HAVE_PCAP_DATALINK_NAME_TO_VAL
,HAVE_PCAP_DATALINK_VAL_TO_NAME
, andHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
. This may, or may not, make the compile of that file succeed, and, if it does make the compile of that file succeed, there may be other problems, if the configure script made other errors.I have a similar issue with build 1.10.2, but it only happens when I use --enable-static in the configure.