Compiling Bro Under Solaris

Hi all,

We've been having some fun with Bro under Solaris 8. After making slow
progress attempting to iron out problems we've hit something a little more
difficult to track down.

After eliminating /usr/ccs/bin from the environment and setting $CFLAGS to
'-lssl -lsocket', configure ran OK, but then make failed as termcap.h
wasn't found.

Got termcap 1.3 from sunfreeware - made that and tried making bro again -
got past that error and make now complains about missing libstdc++.so.6.
Added /usr/avt/gcc-3.4.2/lib to LD_LIBRARY_PATH and that got over that
hurdle, but have hit this:

make[4]: Entering directory
`/[filepath]/dev/[project]/src/Packages/bro-1.1c/src'
../src/binpac/binpac ./dce_rpc.pac
make[4]: *** [dce_rpc_pac.cc] Segmentation Fault (core dumped)

Any comments / suggestions on what could be causing this? or is more
information needed?

Many thanks,

Pete Sandford

Hi Pete,

Hi all,

We've been having some fun with Bro under Solaris 8. After making slow
progress attempting to iron out problems we've hit something a little more
difficult to track down.

thanks for trying so hard. :slight_smile:

After eliminating /usr/ccs/bin from the environment and setting $CFLAGS to
'-lssl -lsocket', configure ran OK,

Mhmm I'm puzzled as to why you had to do this. We're aware of Solaris's
unique library requirements. -lnsl -lsocket should automatically be
added during configure, and -lssl gets added after a separate check.

As always, can you post the configure output and config.log?

but then make failed as termcap.h
wasn't found.

Got termcap 1.3 from sunfreeware

Yes, we require termcap.

- made that and tried making bro again -
got past that error and make now complains about missing libstdc++.so.6.
Added /usr/avt/gcc-3.4.2/lib to LD_LIBRARY_PATH and that got over that
hurdle, but have hit this:

make[4]: Entering directory
`/[filepath]/dev/[project]/src/Packages/bro-1.1c/src'
../src/binpac/binpac ./dce_rpc.pac
make[4]: *** [dce_rpc_pac.cc] Segmentation Fault (core dumped)

Any comments / suggestions on what could be causing this? or is more
information needed?

What compiler are you building with? If you've built with gcc 3.4.2 then
it should have found that directory automaticall.y My guess is that
"brute-forcing" GCC's lib directory onto the search path might cause an
incompatible libstdc++ to be used. Is there another one on your system?

Can you run "../src/binpac/binpac ./dce_rpc.pac" from the src/ directory
manually under gdb and find out what's causing the segfault?

Cheers,
Christian.

FYI, those issues were largely solved by using the 1.2 release, except
for a minor Broccoli configuration issue for which I have already
checked in a fix.

Cheers,
Christian.