Error in listen.bro, line 6

Hi,

Using a fresh install of Bro 2.1 from stable tgz, I get the following error:

"error in /usr/local/bro/share/bro/policy/frameworks/communication/listen.bro, line 6: "

Below is some output from Broctl; I tried looking at the file but it appears to be fine…What am I missing/what can I check? This is a standalone install built with:

./configure --with-pcap=/usr/local/lib

Any hints?

Cheers,

Jesse

Welcome to BroControl 1.1

Type “help” for help.

[BroControl] > install
removing old policies in /usr/local/bro/spool/installed-scripts-do-not-touch/site … done.
removing old policies in /usr/local/bro/spool/installed-scripts-do-not-touch/auto … done.
creating policy directories … done.
installing site policies … done.
generating standalone-layout.bro … done.
generating local-networks.bro … done.
generating broctl-config.bro … done.
updating nodes … done.
[BroControl] > check
bro failed.
error in /usr/local/bro/share/bro/policy/frameworks/communication/listen.bro, line 6: syntax error, at or near “module”
[BroControl] > start
starting bro …
bro terminated immediately after starting; check output with “diag”
[BroControl] > diag
[bro]

==== No reporter.log

==== stderr.log
error in /usr/local/bro/share/bro/policy/frameworks/communication/listen.bro, line 6: syntax error, at or near “module”

==== stdout.log
unlimited
unlimited
unlimited

==== .cmdline
-i eth3 -U .status -p broctl -p broctl-live -p standalone -p local -p bro local.bro broctl broctl/standalone broctl/auto

==== .env_vars
PATH=/usr/local/bro/bin:/usr/local/bro/share/broctl/scripts:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bro/bin:/root/bin
BROPATH=/usr/local/bro/spool/installed-scripts-do-not-touch/site::/usr/local/bro/spool/installed-scripts-do-not-touch/auto:/usr/local/bro/share/bro:/usr/local/bro/share/bro/policy:/usr/local/bro/share/bro/site
CLUSTER_NODE=

==== .status
TERMINATED [atexit]

==== No prof.log

==== No packet_filter.log

==== No loaded_scripts.log

Hi,

Using a fresh install of Bro 2.1 from stable tgz, I get the following error:

"error in /usr/local/bro/share/bro/policy/frameworks/communication/listen.bro,
line 6: "

I believe that can be caused by an error in a script included before
that. If a policy file is missing a trailing } or ; you will get that..

These files:

generating standalone-layout.bro ... done.
generating local-networks.bro ... done.
generating broctl-config.bro ... done.

are generated from the various .cfg files (broctl, nodes, network..)

If you haven't installed any site local policies I would double check
that none of those .cfg files has anything weird in it.

Ah, on the money; my final statement in local.bro was missing a ‘;’…Thanks!