[Winpcap-users] freebsd rpcapd

CS Lee geek00l at gmail.com
Thu Apr 16 09:09:22 PDT 2009


hi there,

Has anyone successfully compiled rpcapd on Freebsd 7.1, I'm currently having
problem with winpcap-4.1.beta5, the error is shown below -

It does pass through the configure stage, and make gives me this error

cd winpcap/wpcap/libpcap
make
gcc -O2 -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -DHAVE_REMOTE
-c ./pcap-bpf.c
./pcap-bpf.c: In function 'pcap_create':
./pcap-bpf.c:406: warning: passing argument 1 of 'pcap_opensource_remote'
from incompatible pointer type
./pcap-bpf.c:406: error: too many arguments to function
'pcap_opensource_remote'
./pcap-bpf.c:406: warning: assignment makes pointer from integer without a
cast
./pcap-bpf.c:411: error: 'snaplen' undeclared (first use in this function)
./pcap-bpf.c:411: error: (Each undeclared identifier is reported only once
./pcap-bpf.c:411: error: for each function it appears in.)
./pcap-bpf.c:412: error: 'pcap_t' has no member named 'timeout'
./pcap-bpf.c:412: error: 'to_ms' undeclared (first use in this function)
./pcap-bpf.c:413: error: 'promisc' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/analyzt/rp-Apps/wpcap-4.1.b5/wpcap/libpcap.


I tried 4.0.2, and I hit other error, pcap-bpf.c stage is passed

cd winpcap/wpcap/libpcap
 make
gcc -O2 -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -DHAVE_REMOTE
-c ./pcap-new.c
In file included from ./sockutils.h:57,
                 from ./pcap-remote.h:38,
                 from ./pcap-new.c:34:
/usr/include/string.h:89: error: expected declaration specifiers or '...'
before '(' token
/usr/include/string.h:89: error: expected declaration specifiers or '...'
before '(' token
/usr/include/string.h:89: error: expected declaration specifiers or '...'
before '(' token
/usr/include/string.h:89: error: expected ')' before ',' token
*** Error code 1

Stop in /usr/home/analyzt/rp-Apps/wpcap-4.0.2/wpcap/libpcap.

If any of you think config.log and Makefile can be helpful to solve the
problem, I will send over.

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.

Thanks!

-- 
Best Regards,

CS Lee<geek00L[at]gmail.com>

http://geek00l.blogspot.com
http://defcraft.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090416/0ead4a53/attachment.htm 


More information about the Winpcap-users mailing list