[Bro] Bro Installation Problem - Python/GCC‏
Faisal Iqbal
iqbalf at ucalgary.ca
Sat May 8 22:01:58 PDT 2010
Hi,
I've installed Bro 1.5.1 on a Ubuntu 9.04 machine and its working fine
however when I try to install the same version on RHEL 5 machine I'm
getting errors during compile. More specifically, it gives gcc errors
for broccoli_intern_wrap.c file. I have python/gcc etc on that machine
and I'm using shipped version of pcap [that is the only big difference
between two machines apart from OS I think]. Below is the output of make
*************************************************************************
running build
running build_py
running build_ext
building '_broccoli_intern' extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/home/iqbalf/bro/bro-1.5.1/aux/broccoli/src -fPIC -I../../src
-I/usr/local/include/python2.6 -c broccoli_intern_wrap.c
-o
/home/iqbalf/bro/bro-1.5.1/aux/broctl/.python-build/temp.linux-i686-2.6/broccoli_intern_wrap.o
broccoli_intern_wrap.c: In function valToPyObj:
broccoli_intern_wrap.c:2638: warning: pointer targets in passing
argument 1 of PyString_FromStringAndSize differ in signedness
broccoli_intern_wrap.c: In function pyObjToVal:
broccoli_intern_wrap.c:2724: warning: pointer targets in assignment
differ in signedness
broccoli_intern_wrap.c: In function event_callback:
broccoli_intern_wrap.c:2818: warning: suggest explicit braces to avoid
ambiguous else
broccoli_intern_wrap.c: In function _wrap_BroCtx_lock_func_set:
broccoli_intern_wrap.c:3236: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_BroCtx_id_func_set:
broccoli_intern_wrap.c:3288: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_BroCtx_dl_create_func_set:
broccoli_intern_wrap.c:3340: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_BroCtx_dl_lock_func_set:
broccoli_intern_wrap.c:3392: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_BroCtx_dl_free_func_set:
broccoli_intern_wrap.c:3444: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_time_set:
broccoli_intern_wrap.c:4649: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_time_get:
broccoli_intern_wrap.c:4672: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_hdr_size_set:
broccoli_intern_wrap.c:4702: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_hdr_size_get:
broccoli_intern_wrap.c:4725: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function
_wrap_bro_packet_pkt_link_type_set:
broccoli_intern_wrap.c:4755: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function
_wrap_bro_packet_pkt_link_type_get:
broccoli_intern_wrap.c:4778: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_pcap_hdr_set:
broccoli_intern_wrap.c:4789: error: storage size of arg2 isnt known
broccoli_intern_wrap.c:4811: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c:4814: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c:4789: warning: unused variable arg2
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_pcap_hdr_get:
broccoli_intern_wrap.c:4826: error: storage size of result isnt known
broccoli_intern_wrap.c:4837: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c:4838: error: invalid application of sizeof to
incomplete type struct pcap_pkthdr
broccoli_intern_wrap.c:4838: error: invalid application of sizeof to
incomplete type struct pcap_pkthdr
broccoli_intern_wrap.c:4826: warning: unused variable result
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_data_set:
broccoli_intern_wrap.c:4867: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_data_get:
broccoli_intern_wrap.c:4890: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_tag_set:
broccoli_intern_wrap.c:4923: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c:4925: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_bro_packet_pkt_tag_get:
broccoli_intern_wrap.c:4950: error: dereferencing pointer to incomplete
type
broccoli_intern_wrap.c: In function _wrap_new_bro_packet:
broccoli_intern_wrap.c:4963: error: invalid application of sizeof to
incomplete type struct bro_packet
broccoli_intern_wrap.c: In function _wrap_bro_event_add_val:
broccoli_intern_wrap.c:5585: warning: assignment discards qualifiers
from pointer target type
broccoli_intern_wrap.c: In function _wrap_bro_event_set_val:
broccoli_intern_wrap.c:5655: warning: assignment discards qualifiers
from pointer target type
broccoli_intern_wrap.c: In function _wrap_bro_event_registry_add:
broccoli_intern_wrap.c:5846: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_bro_record_add_val:
broccoli_intern_wrap.c:6810: warning: assignment discards qualifiers
from pointer target type
broccoli_intern_wrap.c: In function _wrap_bro_record_set_nth_val:
broccoli_intern_wrap.c:6996: warning: assignment discards qualifiers
from pointer target type
broccoli_intern_wrap.c: In function _wrap_bro_record_set_named_val:
broccoli_intern_wrap.c:7067: warning: assignment discards qualifiers
from pointer target type
broccoli_intern_wrap.c: In function _wrap_bro_table_foreach:
broccoli_intern_wrap.c:7252: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_bro_set_foreach:
broccoli_intern_wrap.c:7450: warning: dereferencing type-punned pointer
will break strict-aliasing rules
broccoli_intern_wrap.c: In function _wrap_bro_conn_set_packet_ctxt:
broccoli_intern_wrap.c:7519: warning: implicit declaration of function
bro_conn_set_packet_ctxt
broccoli_intern_wrap.c: In function _wrap_bro_conn_get_packet_ctxt:
broccoli_intern_wrap.c:7549: warning: implicit declaration of function
bro_conn_get_packet_ctxt
broccoli_intern_wrap.c: In function _wrap_bro_packet_new:
broccoli_intern_wrap.c:7590: warning: implicit declaration of function
bro_packet_new
broccoli_intern_wrap.c: In function _wrap_bro_packet_clone:
broccoli_intern_wrap.c:7614: warning: implicit declaration of function
bro_packet_clone
broccoli_intern_wrap.c: In function _wrap_bro_packet_free:
broccoli_intern_wrap.c:7635: warning: implicit declaration of function
bro_packet_free
broccoli_intern_wrap.c: In function _wrap_bro_packet_send:
broccoli_intern_wrap.c:7666: warning: implicit declaration of function
bro_packet_send
error: command 'gcc' failed with exit status 1
make[4]: *** [pybroccoli] Error 1
make[4]: Leaving directory `/home/iqbalf/bro/bro-1.5.1/aux/broctl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/iqbalf/bro/bro-1.5.1/aux'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/iqbalf/bro/bro-1.5.1/aux'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/iqbalf/bro/bro-1.5.1'
make: *** [all] Error 2
*************************************************************************
I get similar output if just try to run setup.py in
aux/broccoli/bindings/python
Note that I didn't have any trouble in configure and it found everything
it needed [with shipped pcap switch]
I tried searching the mailing list and other resources but couldn't find
anything about this or a similar error. I'll greatly appreciate if you
could help me in this matter as I'm stuck on this for several days. Do
tell me if you need anything else or a complete output for
configure/make
Thank you for your time :)
Faisal iqbal
P.S. python version 2.6.1
gcc/g++ version 4.1.2
More information about the Bro
mailing list