Cant build Bro current on freebsd 6.1

I cant build Bro on my system, using FreeBSD 6.1 release.
Building process fails because of the following error:

I cant build Bro on my system, using FreeBSD 6.1 release.

(In general, Bro builds fine on 6.1)

NetVar.h:240:30: const.bif.netvar_h: No such file or directory
NetVar.h:241:30: event.bif.netvar_h: No such file or directory

These are strange, as these files should be automatically created
during compilation. You don't see any other error messages before
this?

This is Bro 1.1? Can you try a "make distclean", and if that doesn't
help extract a fresh copy of the archive?

Robin

I cant build Bro on my system, using FreeBSD 6.1 release.

(In general, Bro builds fine on 6.1)

NetVar.h:240:30: const.bif.netvar_h: No such file or directory
NetVar.h:241:30: event.bif.netvar_h: No such file or directory

These are strange, as these files should be automatically created
during compilation. You don't see any other error messages before
this?

This is Bro 1.1? Can you try a "make distclean", and if that doesn't
help extract a fresh copy of the archive?

Robin

--
Robin Sommer * Phone +1 (510) 666-2886 * robin@icir.org
ICIR/ICSI * Fax +1 (510) 666-2956 * www.icir.org

Neither trying "make distclean" nor fetching a fresh copy of the archive
worked ...:frowning: I m still getting the same error, without seeing any other
messages before it.

Is there a possibility that there is something wrong/broken with the
archive of current Bro 1.1? Has anyone succeeded to build it recently,
using this specific archive? Any other suggestions?

Thank you for your quick reply Robin...

taki

Could you upload somewhere a complete transcript of your configure run
and build process? (The mailing list will likely complain about them
being too big.) As Robin says, the missing files are generated during
the build. Double-check whether the following appear during the build --
maybe the problem is not visib;e error messages but rather the lack of
them...

source='bif_lex.cc' object='bif_lex.o' libtool=no \
depfile='.deps/bif_lex.Po' tmpdepfile='.deps/bif_lex.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../src/binpac -I../src -I. -I.. -Ilibedit -I../linux-include -O -W -Wall -Wno-unused -I../linux-inclu
de -g -O2 -c -o bif_lex.o `test -f bif_lex.cc || echo './'`bif_lex.cc
source='bif_parse.cc' object='bif_parse.o' libtool=no \
depfile='.deps/bif_parse.Po' tmpdepfile='.deps/bif_parse.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../src/binpac -I../src -I. -I.. -Ilibedit -I../linux-include -O -W -Wall -Wno-unused -I../linux-inclu
de -g -O2 -c -o bif_parse.o `test -f bif_parse.cc || echo './'`bif_parse.cc
source='bif_arg.cc' object='bif_arg.o' libtool=no \
depfile='.deps/bif_arg.Po' tmpdepfile='.deps/bif_arg.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../src/binpac -I../src -I. -I.. -Ilibedit -I../linux-include -O -W -Wall -Wno-unused -I../linux-inclu
de -g -O2 -c -o bif_arg.o `test -f bif_arg.cc || echo './'`bif_arg.cc
g++ -g -O2 -o bifcl bif_lex.o bif_parse.o bif_arg.o -Llibedit -ledit -lpcap -lpcap -lssl -lcrypto -lpcap /usr/lib/libresolv.a -ltermcap
-lm
./bifcl ./bro.bif
./bifcl ./event.bif
./bifcl ./const.bif

Is there an executable in the src/build directory called "bifcl" at the
time the build breaks?

Cheers,
Christian.

ps: sorry I just realised that this is ambiguous -- I don't mean a
directory called "src/build", what I meant was your src directory if you
haven't configured a different build directory, and your build directory
otherwise.

Cheers,
Christian.

Hello,
  
  I built it on different (distro) Linux box without any problems.
  I too began to build it on OpenBSD 3.9 but it doesn't build as-is so
  beside of just doing a patch, i prefer to add some functionnalities that
  are missing for now (non blocking DNS mainly).
  
  Best regards.

Hi Christian,

I dont see any messages like those above during the build process and at
the time it breaks there isnt such executable called "bifcl". Right now I
am not able to upload somewhere the transcripts you asked for, so I ll try
to post them to the list. Because of the size limit (<40K) in the list I
ve attached to this message only the transcript of the configure process
(configure.txt - 11K). The transcript of the build process (make.txt -
34K) will be attached to the message that follows. Maybe you can find out
whats wrong with my system.

Thank you in advance...
taki

configure.txt (11.5 KB)

I think I've managed to reproduce the problem. After running configure,
do not immediately run 'make install', but run plain 'make' first and
follow that with a 'make install' once the build is complete.

Cheers,
Christian.

It works now :)...thank you very much Christian.
I am just wondering, why is this happening? Is this happening on all 6.1
release systems or is it just a problem specific to my system? And when
the latter is the case, what did i wrong in the configuration of my
system?

taki

It works now :)...thank you very much Christian.

Cool, glad it works.

I am just wondering, why is this happening? Is this happening on all 6.1
release systems or is it just a problem specific to my system? And when
the latter is the case, what did i wrong in the configuration of my
system?

There's nothing wrong really, just don't configure and go straight to
make install, but do a make inbetween. I believe the problem occurs
because bifcl is a temporary tool that is not installed (it's a
noinst_PROGRAMS target in automake lingo), and so going straight to make
install apparently doesn't fall back to building it first.

Note that there's never any guarantee that make install will also run
make for you. Leaving out 'make' is a bad habit, don't do it.

Cheers,
Christian.