gcc error while compiling bro

I am trying to configure BRO IDS here at one of the labs but I am running into problems while executing “make”.

Error Code:
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 ‘_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’ isn’t 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’ isn’t 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’
.
.
.
error: command ‘gcc’ failed with exit status 1
make[4]: *** [pybroccoli] Error 1
make[4]: Leaving directory /home/adil/Downloads/bro-1.5.1/aux/broctl' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory /home/adil/Downloads/bro-1.5.1/aux’
make[2]: *** [all] Error 2
make[2]: Leaving directory /home/adil/Downloads/bro-1.5.1/aux' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/adil/Downloads/bro-1.5.1’
make: *** [all] Error 2

Looks like you skipped the earlier error that mentioned python.h was
missing.. you need to install the python-dev package(or whatever your
distribution calls it)