hi there,<br><br>Has anyone successfully compiled rpcapd on Freebsd 7.1, I&#39;m currently having problem with winpcap-4.1.beta5, the error is shown below -<br><br>It does pass through the configure stage, and make gives me this error<br>
<br>cd winpcap/wpcap/libpcap<br>make<br>gcc -O2 -I. -DHAVE_CONFIG_H  -D_U_=&quot;__attribute__((unused))&quot; -DHAVE_REMOTE -c ./pcap-bpf.c<br>./pcap-bpf.c: In function &#39;pcap_create&#39;:<br>./pcap-bpf.c:406: warning: passing argument 1 of &#39;pcap_opensource_remote&#39; from incompatible pointer type<br>
./pcap-bpf.c:406: error: too many arguments to function &#39;pcap_opensource_remote&#39;<br>./pcap-bpf.c:406: warning: assignment makes pointer from integer without a cast<br>./pcap-bpf.c:411: error: &#39;snaplen&#39; undeclared (first use in this function)<br>
./pcap-bpf.c:411: error: (Each undeclared identifier is reported only once<br>./pcap-bpf.c:411: error: for each function it appears in.)<br>./pcap-bpf.c:412: error: &#39;pcap_t&#39; has no member named &#39;timeout&#39;<br>
./pcap-bpf.c:412: error: &#39;to_ms&#39; undeclared (first use in this function)<br>./pcap-bpf.c:413: error: &#39;promisc&#39; undeclared (first use in this function)<br>*** Error code 1<br><br>Stop in /usr/home/analyzt/rp-Apps/wpcap-4.1.b5/wpcap/libpcap.<br>
<br><br>I tried 4.0.2, and I hit other error, pcap-bpf.c stage is passed <br><br>cd winpcap/wpcap/libpcap<br> make<br>gcc -O2 -I. -DHAVE_CONFIG_H  -D_U_=&quot;__attribute__((unused))&quot; -DHAVE_REMOTE -c ./pcap-new.c<br>
In file included from ./sockutils.h:57,<br>                 from ./pcap-remote.h:38,<br>                 from ./pcap-new.c:34:<br>/usr/include/string.h:89: error: expected declaration specifiers or &#39;...&#39; before &#39;(&#39; token<br>
/usr/include/string.h:89: error: expected declaration specifiers or &#39;...&#39; before &#39;(&#39; token<br>/usr/include/string.h:89: error: expected declaration specifiers or &#39;...&#39; before &#39;(&#39; token<br>/usr/include/string.h:89: error: expected &#39;)&#39; before &#39;,&#39; token<br>
*** Error code 1<br><br>Stop in /usr/home/analyzt/rp-Apps/wpcap-4.0.2/wpcap/libpcap.<br><br>If any of you think config.log and Makefile can be helpful to solve the problem, I will send over.<br><br>Anyway I have successfully compiled rpcapd on Ubuntu linux, and I hope it can be resolved on Freebsd so I can add it to the liveCD I&#39;m working on.<br>
<br>Thanks!<br><br>-- <br>Best Regards,<br><br>CS Lee&lt;geek00L[at]<a href="http://gmail.com">gmail.com</a>&gt;<br><br><a href="http://geek00l.blogspot.com">http://geek00l.blogspot.com</a><br><a href="http://defcraft.net">http://defcraft.net</a><br>