Hi,
I get:
capture-pcap-util.c:620: error: static declaration of ‘pcap_datalink_name_to_val’ follows non-static declaration
/usr/include/pcap/pcap.h:295: error: previous declaration of ‘pcap_datalink_name_to_val’ was here
capture-pcap-util.c:635: error: static declaration of ‘pcap_datalink_val_to_name’ follows non-static declaration
/usr/include/pcap/pcap.h:296: error: previous declaration of ‘pcap_datalink_val_
Looking in configure.log
configure:49170: checking for pcap_open_dead
configure:49170: gcc -std=gnu99 -o conftest -I/usr/include/pcap -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes
-Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wc++-compat -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Werror=implicit -fvisibility=hidden -g -O2 -D_FORTIFY_SOURCE=2 -Wl,--as-needed conftest.c
-lm >&5
conftest.c:63: warning: function declaration isn't a prototype
conftest.c:73: warning: function declaration isn't a prototype
conftest.c: In function 'main':
conftest.c:73: warning: old-style function definition
/tmp/ccqRybpB.o: In function `main':
/home/ericsson/ewireshark/trunk/conftest.c:74: undefined reference to `pcap_open_dead'
collect2: ld returned 1 exit status
Comparing with Ubuntu there is these additional flags
-L/usr/lib64 -Wl,-rpath,/usr/lib64 -lpcap
I do have pcap.h
ls /usr/include/pcap
bpf.h namedb.h pcap.h sll.h usb.h
Information for package libpcap-devel:
Repository:
Name: libpcap-devel
Version: 0.9.8-50.10.1
Regards
Anders