[Winpcap-users] building pcaplib & rpcap in Linux
Patrick Masotta
masottaus at yahoo.com
Tue Apr 27 04:09:16 PDT 2010
compiling pcaplib & rpcap in Linux (Ubuntu) from the 4.1.1 sources
http://www.winpcap.org/install/bin/WpcapSrc_4_1_1.zip
also tried the one with 64bit support...
http://www.winpcap.org/install/bin/WpcapSrc_4_1_build_1327.zip
building pcaplib
./configure (OK, no problems)
I change in the generated Makefile
@V_HAVE_REMOTE@ |-> -DHAVE_REMOTE
REMOTESRC = @V_REMOTE_FILES@ |-> REMOTESRC = pcap-new.c pcap-remote.c sockutils.c
make (gives errors)
gcc -O2 -fPIC -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -DHAVE_REMOTE -c ./pcap-linux.c
./pcap-linux.c: In function ‘pcap_create’:
./pcap-linux.c:322: warning: passing argument 1 of ‘pcap_opensource_remote’ from incompatible pointer type
./pcap-linux.c:322: error: too many arguments to function ‘pcap_opensource_remote’
./pcap-linux.c:322: warning: assignment makes pointer from integer without a cast
./pcap-linux.c:327: error: ‘snaplen’ undeclared (first use in this function)
./pcap-linux.c:327: error: (Each undeclared identifier is reported only once
./pcap-linux.c:327: error: for each function it appears in.)
./pcap-linux.c:328: error: ‘to_ms’ undeclared (first use in this function)
./pcap-linux.c:329: error: ‘promisc’ undeclared (first use in this function)
./pcap-linux.c:339: error: ‘p’ undeclared (first use in this function)
make: *** [pcap-linux.o] Error 1
I read the reason could be:
WinPcap's modified pcap-linux.c has been updated for the new libpcap
1.0 APIs; its modified pcap-bpf.c has not been.
where can I find sources not broken for compiling pcaplib & rpcap in Linux???
thanks a lot
Pat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20100427/01cc239e/attachment.htm
More information about the Winpcap-users
mailing list