<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">compiling pcaplib & rpcap in Linux (Ubuntu) from the 4.1.1 sources<br>http://www.winpcap.org/install/bin/WpcapSrc_4_1_1.zip<br>also tried the one with 64bit support...<br>http://www.winpcap.org/install/bin/WpcapSrc_4_1_build_1327.zip<br><br>building pcaplib<br>./configure (OK, no problems)<br><br>I change in the generated Makefile<br><br>@V_HAVE_REMOTE@ |-> -DHAVE_REMOTE<br>REMOTESRC = @V_REMOTE_FILES@ |-> REMOTESRC = pcap-new.c pcap-remote.c sockutils.c<br><br>make (gives errors)<br><br>gcc -O2 -fPIC -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -DHAVE_REMOTE -c ./pcap-linux.c<br>./pcap-linux.c: In function ‘pcap_create’:<br>./pcap-linux.c:322: warning: passing argument 1 of ‘pcap_opensource_remote’ from incompatible pointer type<br>./pcap-linux.c:322: error: too many arguments to function
‘pcap_opensource_remote’<br>./pcap-linux.c:322: warning: assignment makes pointer from integer without a cast<br>./pcap-linux.c:327: error: ‘snaplen’ undeclared (first use in this function)<br>./pcap-linux.c:327: error: (Each undeclared identifier is reported only once<br>./pcap-linux.c:327: error: for each function it appears in.)<br>./pcap-linux.c:328: error: ‘to_ms’ undeclared (first use in this function)<br>./pcap-linux.c:329: error: ‘promisc’ undeclared (first use in this function)<br>./pcap-linux.c:339: error: ‘p’ undeclared (first use in this function)<br>make: *** [pcap-linux.o] Error 1<br><br>I read the reason could be:<br>WinPcap's modified pcap-linux.c has been updated for the new libpcap <br>1.0 APIs; its modified pcap-bpf.c has not been.<br><br><br>where can I find sources not broken for compiling pcaplib & rpcap in Linux???<br>thanks a lot<br>Pat<br><br></td></tr></table><br>