hi there,<br><br>Has anyone successfully compiled rpcapd on Freebsd 7.1, I'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_="__attribute__((unused))" -DHAVE_REMOTE -c ./pcap-bpf.c<br>./pcap-bpf.c: In function 'pcap_create':<br>./pcap-bpf.c:406: warning: passing argument 1 of 'pcap_opensource_remote' from incompatible pointer type<br>
./pcap-bpf.c:406: error: too many arguments to function 'pcap_opensource_remote'<br>./pcap-bpf.c:406: warning: assignment makes pointer from integer without a cast<br>./pcap-bpf.c:411: error: 'snaplen' 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: 'pcap_t' has no member named 'timeout'<br>
./pcap-bpf.c:412: error: 'to_ms' undeclared (first use in this function)<br>./pcap-bpf.c:413: error: 'promisc' 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_="__attribute__((unused))" -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 '...' before '(' token<br>
/usr/include/string.h:89: error: expected declaration specifiers or '...' before '(' token<br>/usr/include/string.h:89: error: expected declaration specifiers or '...' before '(' token<br>/usr/include/string.h:89: error: expected ')' before ',' 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'm working on.<br>
<br>Thanks!<br><br>-- <br>Best Regards,<br><br>CS Lee<geek00L[at]<a href="http://gmail.com">gmail.com</a>><br><br><a href="http://geek00l.blogspot.com">http://geek00l.blogspot.com</a><br><a href="http://defcraft.net">http://defcraft.net</a><br>