# Bro-1.0 - error in compilation

**URL:** <https://community.zeek.org/t/bro-1-0-error-in-compilation/889>\
**Category:** Zeek\
**Created:** [October 24, 2005, 5:17pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889 "2005-10-24T17:17:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincenzo\_Falletta](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@Vincenzo\_Falletta](https://community.zeek.org/u/Vincenzo_Falletta)\
**Post date:** [October 24, 2005, 5:17pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/1 "2005-10-24T17:17:21Z")

</div>

Hello! Excuse me for posting such kind of problems on this mailing list, but any help would be appreciated!  
I tried to compile bro-1.0 and I got the following error(s):

[...]  
gcc -DHAVE\_CONFIG\_H -I. -I. -I.. -I. -I../src/binpac -I../src -I. -I.. -Ilibedit -I../linux-include -I../aux/libpcap-0.7.2 -O -W -Wall -Wno-unused -I. -I../src/binpac -I../src -I. -I.. -g -O2 -c `test -f nb_dns.c || echo './'`nb\_dns.c  
g++ -g -O2 -o bro dce\_rpc\_pac.o ncp\_pac.o smb\_pac.o main.o net\_util.o util.o parse.o scan.o re-parse.o re-scan.o rule-parse.o rule-scan.o Active.o Anon.o Attr.o BackDoor.o Base64.o BPF\_Program.o BroString.o CCL.o ChunkedIO.o CompHash.o Conn.o ConnCompressor.o DCE\_RPC.o DFA.o DNS.o DNS\_Mgr.o DbgBreakpoint.o DbgHelp.o DbgWatch.o Debug.o DebugCmds.o DebugLogger.o Desc.o Dict.o Discard.o EquivClass.o Event.o EventHandler.o EventRegistry.o Expr.o FTP.o File.o Finger.o Frag.o Frame.o Func.o Gnutella.o HTTP.o Hash.o ICMP.o ID.o Ident.o IntSet.o InterConn.o IOSource.o IRC.o List.o Logger.o Login.o MIME.o NCP.o NFA.o NFS.o NTP.o NVT.o Net.o NetVar.o NetbiosSSN.o Obj.o OSFinger.o PacketFilter.o PacketSort.o PersistenceSerializer.o PktSrc.o PolicyFile.o POP3.o Portmap.o PrefixTable.o PriorityQueue.o Queue.o RE.o RPC.o Reassem.o RemoteSerializer.o Rlogin.o RSH.o Rule.o RuleAction.o RuleCondition.o RuleMatcher.o ScriptAnaly.o SMB.o SmithWaterman.o SMTP.o SSH.o Scope.o SerializationFormat.o SerialObj.o Serializer.o Sessions.o StateAccess.o Stats.o SteppingStone.o Stmt.o TCP.o TCP\_Contents.o TCP\_Endpoint.o TCP\_Rewriter.o Telnet.o Timer.o Traverse.o TwoWise.o Type.o UDP.o Val.o Var.o XDR.o bsd-getopt-long.o cq.o md5.o patricia.o setsignal.o version.o strsep.o nb\_dns.o -Llibedit -ledit -L../aux/libpcap-0.7.2 -lpcap -lresolv -lz /usr/lib/libresolv.a -ltermcap -L/usr/lib/termcap -lm  
RemoteSerializer.o(.text+0x1802): In function `SocketComm::ProcessPeerCompress(SocketComm::Peer\*)':  
/home/falletta/bro-1.0/src/ChunkedIO.h:282: undefined reference to `vtable for CompressedChunkedIO'  
RemoteSerializer.o(.text+0x1fcf): In function `SocketComm::ProcessParentCompress()':  
/home/falletta/bro-1.0/src/ChunkedIO.h:282: undefined reference to `vtable for CompressedChunkedIO'  
collect2: ld returned 1 exit status  
make[4]: \*\*\* [bro] Error 1  
make[4]: Leaving directory `/home/falletta/bro-1.0/src'  
make[3]: \*\*\* [all-recursive] Error 1  
make[3]: Leaving directory `/home/falletta/bro-1.0/src'  
make[2]: \*\*\* [all] Error 2  
make[2]: Leaving directory `/home/falletta/bro-1.0/src'  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `/home/falletta/bro-1.0'  
make: \*\*\* [all] Error 2

I'm using SuSE Linux 9.1 (i586), gcc 3.3.3  
Any suggestion?

Thanks for the attention,  
&nbsp;&nbsp;Vincenzo 🙂

---

<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:** [October 24, 2005, 7:12pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/2 "2005-10-24T19:12:30Z")

</div>

Hi Vincenzo,

could you post the full output of your configure run and the output of  
"nm -a ChunkedIO.o"? Thanks.

---

<div class="post-metadata">

**Author:** ![Vincenzo\_Falletta](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@Vincenzo\_Falletta](https://community.zeek.org/u/Vincenzo_Falletta)\
**Post date:** [October 25, 2005, 7:16am UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/3 "2005-10-25T07:16:16Z")

</div>

Here it is 🙂  
BTW, another strange fact to me is that even if I have correctly installed the openSSL package, I get that "checking whether OPENSSL\_add\_all\_algorithms\_conf is declared... no" so finally I would have no OpenSSL support...  
Thanks for your patience!  
&nbsp;&nbsp;Vincenzo

Christian Kreibich wrote:

[output-nm.txt](https://community.zeek.org/uploads/short-url/2uIP0EP91Vb77M8mwMxo6HicRTW.txt) (2.83 KB)

[output-configure.txt](https://community.zeek.org/uploads/short-url/o5sYRZFMdrb9ItX7KIfsgvHHYPM.txt) (5.48 KB)

---

<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:** [October 25, 2005, 4:58pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/4 "2005-10-25T16:58:26Z")

</div>

Hi Vincenzo,

> Here it is 🙂  
> BTW, another strange fact to me is that even if I have correctly  
> installed the openSSL package, I get that "checking whether  
> OPENSSL\_add\_all\_algorithms\_conf is declared... no" so finally I would  
> have no OpenSSL support...

thanks for mentioning this detail, because it explains the problem. It  
looks like ChunkedIO.cc makes the compilation of CompressedChunkedIO  
depend on both libz \*and\* OpenSSL, even though it should only depend on  
libz. We'll look into it and fix it for the next release.

> Thanks for your patience!

Thanks for pointing out!

Cheers,  
Christian.

---

<div class="post-metadata">

**Author:** ![Anton\_Chuvakin\_Ph.D](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Anton\_Chuvakin\_Ph.D](https://community.zeek.org/u/Anton_Chuvakin_Ph.D)\
**Post date:** [November 3, 2005, 9:18pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/5 "2005-11-03T21:18:58Z")

</div>

Hello,

Here is another compile error, any pointers?

make[4]: Entering directory `/home/anton/bro-1.0/src/binpac'  
source='pac\_parse.cc' object='pac\_parse.o' libtool=no \  
depfile='.deps/pac\_parse.Po' tmpdepfile='.deps/pac\_parse.TPo' \  
depmode=gcc3 /bin/sh ../../depcomp \  
g++ -DHAVE\_CONFIG\_H -I. -I. -I../.. -W -Wall -Wno-unused -g -O2 -c -o pac\_parse.o `test -f pac_parse.cc || echo './'`pac\_parse.cc  
In file included from pac\_parse.yy:48:  
pac.h: In method `Object::Object ()':  
pac.h:27: `asprintf' undeclared (first use this function)  
pac.h:27: (Each undeclared identifier is reported only once for each  
function it appears in.)  
make[4]: \*\*\* [pac\_parse.o] Error 1  
make[4]: Leaving directory `/home/anton/bro-1.0/src/binpac'  
make[3]: \*\*\* [all-recursive] Error 1  
make[3]: Leaving directory `/home/anton/bro-1.0/src'  
make[2]: \*\*\* [all] Error 2  
make[2]: Leaving directory `/home/anton/bro-1.0/src'  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `/home/anton/bro-1.0'  
make: \*\*\* [all] Error 2

Best,

---

<div class="post-metadata">

**Author:** ![Ruoming\_Pang](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Ruoming\_Pang](https://community.zeek.org/u/Ruoming_Pang)\
**Post date:** [November 3, 2005, 11:58pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/6 "2005-11-03T23:58:55Z")

</div>

Please add #include \<stdio.h\> to pac.h. (Vern: could you add this to the Bro 1.0 release? Thanks!)

Ruoming

---

<div class="post-metadata">

**Author:** ![Ruoming\_Pang](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Ruoming\_Pang](https://community.zeek.org/u/Ruoming_Pang)\
**Post date:** [November 4, 2005, 5:29am UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/7 "2005-11-04T05:29:56Z")

</div>

In case asprintf is not in your stdio.h, please try the following patch on src/binpac/pac.h:

[pac.h.diff](https://community.zeek.org/uploads/short-url/oShQS6txhFrjHZqwnRxl2zhr8X.diff) (653 Bytes)

---

<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:37pm UTC](https://community.zeek.org/t/bro-1-0-error-in-compilation/889/8 "2022-05-06T15:37:43Z")

</div>


