[Rpcap-users] Fwd: RPCAP Installation issues.
Status: Alpha
Brought to you by:
sri_krishnan
|
From: Mahesh B. <mah...@gm...> - 2012-08-27 02:42:44
|
I am resending this message in "Plain Text Format". The earlier one
was in HTML format and seemed difficult to read. Sorry ! for the spam.
---------- Forwarded message ----------
From: Mahesh Bhat <mah...@gm...>
Date: Fri, Aug 24, 2012 at 5:26 PM
Subject: RPCAP Installation issues.
To: rpc...@li...
Hi,
I have been looking around for a potential "Remote Packet Capturing"
solution for some time. I wanted to try my hands on RPCAP. I have run into
few issues with the installation :-
I seem to be able to run "./configure" just fine. But, I do see errors when
I run make for "rpcap-0.73". I have attached the config.log for your
reference. When I run "make" I see the following errors :-
======================
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rpcap_client.c
In file included from rpcap_client.c:51:
/usr/include/pcap/pcap.h:51:22: error: pcap/bpf.h: No such file or directory
In file included from pcap-int.h:43,
from rpcap_client.c:57:
./pcap.h:42:21: error: net/bpf.h: No such file or directory
In file included from pcap-int.h:43,
from rpcap_client.c:57:
./pcap.h:101: error: redefinition of âstruct pcap_file_headerâ
./pcap.h:116: error: redefinition of âstruct pcap_pkthdrâ
./pcap.h:125: error: redefinition of âstruct pcap_statâ
./pcap.h:135: error: conflicting types for âpcap_lookupnetâ
/usr/include/pcap/pcap.h:273: error: previous declaration of
âpcap_lookupnetâ was here
./pcap.h:136: error: conflicting types for âpcap_open_liveâ
/usr/include/pcap/pcap.h:335: error: previous declaration of
âpcap_open_liveâ was here
./pcap.h:145: warning: âstruct bpf_programâ declared inside parameter list
./pcap.h:145: error: conflicting types for âpcap_setfilterâ
/usr/include/pcap/pcap.h:358: error: previous declaration of
âpcap_setfilterâ was here
./pcap.h:147: error: conflicting types for âpcap_strerrorâ
/usr/include/pcap/pcap.h:365: error: previous declaration of âpcap_strerrorâ
was here
./pcap.h:150: warning: âstruct bpf_programâ declared inside parameter list
./pcap.h:150: error: conflicting types for âpcap_compileâ
/usr/include/pcap/pcap.h:369: error: previous declaration of âpcap_compileâ
was here
./pcap.h:152: warning: âstruct bpf_programâ declared inside parameter list
./pcap.h:152: error: conflicting types for âpcap_compile_nopcapâ
/usr/include/pcap/pcap.h:371: error: previous declaration of
âpcap_compile_nopcapâ was here
./pcap.h:153: warning: âstruct bpf_programâ declared inside parameter list
./pcap.h:153: error: conflicting types for âpcap_freecodeâ
/usr/include/pcap/pcap.h:372: error: previous declaration of âpcap_freecodeâ
was here
./pcap.h:169: warning: âstruct bpf_insnâ declared inside parameter list
./pcap.h:169: error: conflicting types for âbpf_filterâ
/usr/include/pcap/pcap.h:413: error: previous declaration of âbpf_filterâ
was here
./pcap.h:170: warning: âstruct bpf_insnâ declared inside parameter list
./pcap.h:170: error: conflicting types for âbpf_validateâ
/usr/include/pcap/pcap.h:415: error: previous declaration of âbpf_validateâ
was here
./pcap.h:171: warning: âstruct bpf_insnâ declared inside parameter list
./pcap.h:171: error: conflicting types for âbpf_imageâ
/usr/include/pcap/pcap.h:416: error: previous declaration of âbpf_imageâ was
here
./pcap.h:172: warning: âstruct bpf_programâ declared inside parameter list
./pcap.h:172: error: conflicting types for âbpf_dumpâ
/usr/include/pcap/pcap.h:417: error: previous declaration of âbpf_dumpâ was
here
In file included from rpcap_client.c:57:
pcap-int.h:107: error: field âfcodeâ has incomplete type
rpcap_client.c:137: error: conflicting types for âpcap_open_liveâ
/usr/include/pcap/pcap.h:335: error: previous declaration of
âpcap_open_liveâ was here
rpcap_client.c:183: error: conflicting types for âpcap_lookupnetâ
/usr/include/pcap/pcap.h:273: error: previous declaration of
âpcap_lookupnetâ was here
rpcap_client.c: In function âpcap_captureâ:
rpcap_client.c:266: error: invalid lvalue in assignment
rpcap_client.c: At top level:
rpcap_client.c:311: error: conflicting types for âpcap_compileâ
/usr/include/pcap/pcap.h:369: error: previous declaration of âpcap_compileâ
was here
rpcap_client.c: In function âpcap_compileâ:
rpcap_client.c:320: error: invalid lvalue in assignment
rpcap_client.c:338: error: invalid application of âsizeofâ to incomplete
type âstruct bpf_programâ
rpcap_client.c: At top level:
rpcap_client.c:346: error: conflicting types for âpcap_setfilterâ
/usr/include/pcap/pcap.h:358: error: previous declaration of
âpcap_setfilterâ was here
rpcap_client.c: In function âpcap_setfilterâ:
rpcap_client.c:353: error: invalid lvalue in assignment
rpcap_client.c:354: error: invalid application of âsizeofâ to incomplete
type âstruct bpf_programâ
rpcap_client.c:355: error: invalid lvalue in assignment
rpcap_client.c: In function âpcap_closeâ:
rpcap_client.c:373: error: invalid lvalue in assignment
rpcap_client.c:378: error: pointers are not permitted as case values
rpcap_client.c:396: error: label at end of compound statement
rpcap_client.c: In function âpcap_statsâ:
rpcap_client.c:404: error: invalid lvalue in assignment
rpcap_client.c: In function âpcap_datalinkâ:
rpcap_client.c:424: error: invalid lvalue in assignment
rpcap_client.c: In function âpcap_snapshotâ:
rpcap_client.c:445: error: invalid lvalue in assignment
rpcap_client.c: In function âpcap_geterrâ:
rpcap_client.c:466: error: invalid lvalue in assignment
make: *** [rpcap_client.o] Error 1
======================
I installed the latest libpcap-1.3.0.tar.gz and created soft links so as to
direct rpcap to use the installed pcap.h and bpf.h header files :-
lrwxrwxrwx 1 root root 32 Aug 24 11:15 /usr/include/pcap/pcap.h ->
/opt/libpcap/include/pcap/pcap.h
lrwxrwxrwx 1 root root 31 Aug 24 11:22 /usr/include/pcap/net/bpf.h ->
/opt/libpcap/include/pcap/bpf.h
But, this does not seem to help. Here are the details of the Linux box on
which I have been trying to configure rpcap :-
[root@iad-ch-acm01 DOWNLOADS]$ uname -a
Linux <hostname> 2.6.18-194.26.1.el5PAE #1 SMP Fri Oct 29 14:28:58 EDT 2010
i686 i686 i386 GNU/Linux
[root@iad-ch-acm01 DOWNLOADS]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
I dont know what I am doing wrong here. Any inputs on this will be very
helpful indeed.
Thank You !
- Mahesh.
|