Wireshark-bugs: [Wireshark-bugs] [Bug 11343] New: Error building capture-pcap-util.c with libpca

Date: Mon, 06 Jul 2015 19:37:51 +0000
Bug ID 11343
Summary Error building capture-pcap-util.c with libpcap-1.5.3
Product Wireshark
Version Git
Hardware x86
OS Fedora
Status UNCONFIRMED
Severity Normal
Priority Low
Component Extras
Assignee [email protected]
Reporter [email protected]

Build Information:
Fedora release 20 (Heisenbug)
Linux localhost.localdomain 3.19.8-100.fc20.i686+PAE
gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)
libpcap-devel-1.5.3-3.fc20.i686

--
I got the following error when I tried to build the latest Wireshark (Git HEAD)
with libpcap-devel-1.5.3 on Fedora 20.

[ 78%] Building C object caputils/CMakeFiles/caputils.dir/capture-pcap-util.c.o
/root/project/wireshark/caputils/capture-pcap-util.c:578:1: error: static
declaration of 'pcap_datalink_name_to_val' follows non-static declaration
 pcap_datalink_name_to_val(const char *name)
 ^
In file included from /usr/include/pcap.h:45:0,
                 from /root/project/wireshark/caputils/capture-pcap-util.h:32,
                 from /root/project/wireshark/caputils/capture-pcap-util.c:46:
/usr/include/pcap/pcap.h:401:5: note: previous declaration of
'pcap_datalink_name_to_val' was here
 int pcap_datalink_name_to_val(const char *);
     ^
/root/project/wireshark/caputils/capture-pcap-util.c:593:1: error: static
declaration of 'pcap_datalink_val_to_name' follows non-static declaration
 pcap_datalink_val_to_name(int dlt)
 ^
In file included from /usr/include/pcap.h:45:0,
                 from /root/project/wireshark/caputils/capture-pcap-util.h:32,
                 from /root/project/wireshark/caputils/capture-pcap-util.c:46:
/usr/include/pcap/pcap.h:402:13: note: previous declaration of
'pcap_datalink_val_to_name' was here
 const char *pcap_datalink_val_to_name(int);
             ^
make[2]: *** [caputils/CMakeFiles/caputils.dir/capture-pcap-util.c.o] Error 1
make[1]: *** [caputils/CMakeFiles/caputils.dir/all] Error 2
make: *** [all] Error 2


You are receiving this mail because:
  • You are watching all bug changes.