01.[root@localhost nethogs]# make && make install
02.cc -g -Wall -Wextra -c decpcap.c
03.decpcap.c:7:18: error: pcap.h: No such file or directory
04.In file included from decpcap.c:8:
05.decpcap.h:34: error: expected specifier-qualifier-list before ‘pcap_t’
06.decpcap.c:14: error: expected ‘)’ before ‘*’ token
07.decpcap.c: In function ‘dp_open_offline’:
08.decpcap.c:48: error: ‘pcap_t’ undeclared (first use in this function)
09.decpcap.c:48: error: (Each undeclared identifier is reported only once
10.decpcap.c:48: error: for each function it appears in.)
11.decpcap.c:48: error: ‘temp’ undeclared (first use in this function)
12.decpcap.c:48: warning: implicit declaration of function ‘pcap_open_offline’
13.decpcap.c:55: warning: implicit declaration of function ‘dp_fillhandle’
14.decpcap.c: In function ‘dp_open_live’:
15.decpcap.c:60: error: ‘pcap_t’ undeclared (first use in this function)
16.decpcap.c:60: error: ‘temp’ undeclared (first use in this function)
17.decpcap.c:60: warning: implicit declaration of function ‘pcap_open_live’
18.decpcap.c: In function ‘dp_addcb’:
19.decpcap.c:74: error: ‘struct dp_handle’ has no member named ‘callback’
20.decpcap.c: In function ‘dp_parse_tcp’:
21.decpcap.c:84: error: ‘struct dp_handle’ has no member named ‘callback’
22.decpcap.c:86: error: ‘struct dp_handle’ has no member named ‘callback’
23.decpcap.c:87: error: ‘struct dp_handle’ has no member named ‘userdata’
24.decpcap.c: In function ‘dp_parse_ip’:
25.decpcap.c:99: error: dereferencing pointer to incomplete type
26.decpcap.c:103: error: ‘struct dp_handle’ has no member named ‘callback’
27.decpcap.c:105: error: ‘struct dp_handle’ has no member named ‘callback’
28.decpcap.c:106: error: ‘struct dp_handle’ has no member named ‘userdata’
29.decpcap.c: In function ‘dp_parse_ip6’:
30.decpcap.c:126: error: ‘struct dp_handle’ has no member named ‘callback’
31.decpcap.c:128: error: ‘struct dp_handle’ has no member named ‘callback’
32.decpcap.c:129: error: ‘struct dp_handle’ has no member named ‘userdata’
33.decpcap.c: In function ‘dp_parse_ethernet’:
34.decpcap.c:150: error: ‘struct dp_handle’ has no member named ‘callback’
35.decpcap.c:152: error: ‘struct dp_handle’ has no member named ‘callback’
36.decpcap.c:153: error: ‘struct dp_handle’ has no member named ‘userdata’
37.decpcap.c: In function ‘dp_parse_ppp’:
38.decpcap.c:196: error: ‘struct dp_handle’ has no member named ‘callback’
39.decpcap.c:198: error: ‘struct dp_handle’ has no member named ‘callback’
40.decpcap.c:199: error: ‘struct dp_handle’ has no member named ‘userdata’
41.decpcap.c: In function ‘dp_parse_linux_cooked’:
42.decpcap.c:238: error: ‘struct dp_handle’ has no member named ‘callback’
43.decpcap.c:240: error: ‘struct dp_handle’ has no member named ‘callback’
44.decpcap.c:241: error: ‘struct dp_handle’ has no member named ‘userdata’
45.decpcap.c: In function ‘dp_pcap_callback’:
46.decpcap.c:270: error: ‘struct dp_handle’ has no member named ‘userdata_size’
47.decpcap.c:271: error: ‘struct dp_handle’ has no member named ‘userdata’
48.decpcap.c:271: error: ‘struct dp_handle’ has no member named ‘userdata_size’
49.decpcap.c:273: error: ‘struct dp_handle’ has no member named ‘linktype’
50.decpcap.c:274: error: ‘DLT_EN10MB’ undeclared (first use in this function)
51.decpcap.c:277: error: ‘DLT_PPP’ undeclared (first use in this function)
52.decpcap.c:280: error: ‘DLT_LINUX_SLL’ undeclared (first use in this function)
53.decpcap.c:283: error: ‘DLT_RAW’ undeclared (first use in this function)
54.decpcap.c:284: error: ‘DLT_NULL’ undeclared (first use in this function)
55.decpcap.c:289: error: ‘struct dp_handle’ has no member named ‘linktype’
56.decpcap.c: In function ‘dp_dispatch’:
57.decpcap.c:296: error: ‘struct dp_handle’ has no member named ‘userdata’
58.decpcap.c:297: error: ‘struct dp_handle’ has no member named ‘userdata_size’
59.decpcap.c:298: warning: implicit declaration of function ‘pcap_dispatch’
60.decpcap.c:298: error: ‘struct dp_handle’ has no member named ‘pcap_handle’
61.decpcap.c: In function ‘dp_setnonblock’:
62.decpcap.c:302: warning: implicit declaration of function ‘pcap_setnonblock’
63.decpcap.c:302: error: ‘struct dp_handle’ has no member named ‘pcap_handle’
64.decpcap.c: In function ‘dp_geterr’:
65.decpcap.c:307: warning: implicit declaration of function ‘pcap_geterr’
66.decpcap.c:307: error: ‘struct dp_handle’ has no member named ‘pcap_handle’
67.make: *** [decpcap.o] Error 1