[Bro] Compiling Bro Under Solaris

Christian Kreibich christian at whoop.org
Wed Dec 20 04:28:01 PST 2006


Hi Pete,

On Tue, 2006-12-19 at 15:43 +0000, P.Sandford at lboro.ac.uk wrote:
> 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. :)

> 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.
-- 
________________________________________________________________________
                                          http://www.cl.cam.ac.uk/~cpk25
                                                    http://www.whoop.org




More information about the Bro mailing list