The same program is compiled from fedora14 and there are a lot of errors on Fedora12, as shown in [cpp] [root @ root sias_catch] # make gcc-o jack_ip-g jack. c show_flow.c save_del.c-lpcap-lpthread In file encoded from jack. c: 1: <span style = "color: # ff0000;"> jack. h: 9: 17: error: pcap. h: No such file or directory </span> In file stored ded from jack. c: 1: jack. h: 81: warning: 'struct pcap_pkthdr 'declared inside parameter list jack. h: 81: warning: its scope I S only this definition or declaration, which is probably not what you want jack. c: 9: error: expected '=', ';', 'asm 'or' _ attribute _ 'before' * 'token jack. c: 32: warning: 'struct pcap_pkthdr 'declared inside parameter list jack. c: 32: error: conflicting types for 'mycallback' jack. h: 81: note: previous declaration of 'mycallback' was here jack. c: In function 'mycallback': jack. c: 62: error: de Referencing pointer to incomplete type jack. c: 63: error: dereferencing pointer to incomplete type jack. c: 64: error: dereferencing pointer to incomplete type jack. c: 135: error: dereferencing pointer to incomplete type jack. c: 135: error: dereferencing pointer to incomplete type jack. c: 159: error: dereferencing pointer to incomplete type jack. c: 160: error: dereferencing pointer to incomplete type jac K. c: In function 'handler': <span style = "color: # ff0000;"> jack. c: 400: error: 'pt' undeclared (first use in this function) </span> jack. c: 400: error: (Each undeclared identifier is reported only once jack. c: 400: error: for each function it appears in .) jack. c: In function 'main': <span style = "color: # ff0000;"> jack. c: 647: error: 'pcap _ ERRBUF_SIZE 'undeclared (first use in this function) jack. c: 648: err Or: 'bpf _ u_int32 'undeclared (first use in this function) </span> jack. c: 648: error: expected '; 'before' mask' jack. c: 649: error: expected '; 'before' subnet' jack. c: 656: error: 'pcap _ if_t 'undeclared (first use in this function) jack. c: 656: error: 'alldevs 'undeclared (first use in this function) jack. c: 657: error: 'D' undeclared (first use in this function) jack. c: 658: error: 'pcap _ addr_t 'undec Lared (first use in this function) jack. c: 658: error: 'A' undeclared (first use in this function) jack. c: 710: error: 'subnet' undeclared (first use in this function) jack. c: 710: error: 'mask' undeclared (first use in this function) jack. c: 740: error: 'pt' undeclared (first use in this function) In file included from save_del.c: 3: <span style = "color: # ff0000;"> jack. h: 9: 17: error: pcap. h: No such fil E or directory </span> In file already ded from save_del.c: 3: jack. h: 81: warning: 'struct pcap_pkthdr 'declared inside parameter list jack. h: 81: warning: its scope is only this definition or declaration, which is probably not what you want make: * ** [default] Error 1 [root @ root sias_catch] # the cause of the preceding Error is not included in the header file. However, you have installed libpcap by running the command! [Cpp] [root @ root sias_catch] # yum install libpcap Loaded plugins: refresh-packagekit updates/metalink | 4.0 kB Setting up Install Process Package 14: libpcap-1.0.0-4.20090922gite154e2.fc12.i686 already installed and latest version Nothing to do [root @ root sias_catch] # and then think there may be other uninstalled! Libpcap-devel [cpp] [root @ root sias_catch] # install libpcap-devel on yum install and compile it again! [Cpp] [root @ root sias_catch] # make gcc-o jack_ip-g jack. c show_flow.c save_del.c-lpcap-lpthread [root @ root sias_catch] #