# Compiling Bro Under Solaris

**URL:** <https://community.zeek.org/t/compiling-bro-under-solaris/1091>\
**Category:** Zeek\
**Created:** [December 19, 2006, 3:43pm UTC](https://community.zeek.org/t/compiling-bro-under-solaris/1091 "2006-12-19T15:43:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.sandford](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@p.sandford](https://community.zeek.org/u/p.sandford)\
**Post date:** [December 19, 2006, 3:43pm UTC](https://community.zeek.org/t/compiling-bro-under-solaris/1091/1 "2006-12-19T15:43:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [December 20, 2006, 12:28pm UTC](https://community.zeek.org/t/compiling-bro-under-solaris/1091/2 "2006-12-20T12:28:01Z")

</div>

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. 🙂

> 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.

---

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [January 10, 2007, 6:02pm UTC](https://community.zeek.org/t/compiling-bro-under-solaris/1091/3 "2007-01-10T18:02:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/compiling-bro-under-solaris/1091/4 "2022-05-06T15:38:06Z")

</div>


