compile on RedHat Linux?

grd-pub.56 at NOSPAMnetcourrier.com grd-pub.56 at NOSPAMnetcourrier.com
Fri Feb 7 10:45:55 PST 2003


Hi,

This is probably a name service configuration/connectivity issue.

You should check the "nameserver" declarations in your /etc/resolv.conf, and 
make sure that the DNS servers are reachable from your bro box.

Olivier.


On Friday 07 February 2003 07:03 pm, Ruoming Pang wrote:
> Here is the answer I got when I posted the same question on the mailing
> list: (I do not have the answer for my last question about the
> internal_error -- anybody knows a solution?)
>
> Ruoming
>
> Date: Wed, 4 Dec 2002 17:18:17 -0800 (PST)
> From: Ruoming Pang <rpang at mule.icir.org>
> To: grd-pub.56 at NOSPAMnetcourrier.com
> Subject: Re: building bro in linux
>
> Thanks! It does solve the link problem. But as I try to run bro, DNS_Mgr
> complained about an internal_error from nb_dns. I guess I need to get a
> newer version of libresolv?
>
> Ruoming
>
> On Wed, 4 Dec 2002 grd-pub.56 at NOSPAMnetcourrier.com wrote:
> > Hi,
> >
> > You should try linking with "/usr/lib/libresolv.a" instead of
>
> "-lresolv" --
>
> > the latter uses the dynamic library, libresolv.so, unless you add the
> > "-static" option. Just edit the Makefile accordingly.
> >
> > Good luck,
> >
> > Olivier.
> >
> > On Wednesday 04 December 2002 07:02 am, you wrote:
> > > Hi,
> > >
> > > I wonder anyone has experience in building Bro in linux and,
>
> especially,
>
> > > in resolving the following problem:
> > >
> > > nb_dns.o: In function `nb_dns_activity':
> > > nb_dns.o(.text+0x678): undefined reference to `__ns_initparse'
> > > nb_dns.o(.text+0x742): undefined reference to `_ns_flagdata'
> > > nb_dns.o(.text+0x748): undefined reference to `_ns_flagdata'
> > > nb_dns.o(.text+0x9bc): undefined reference to `__ns_parserr'
> > > collect2: ld returned 1 exit status
> > > make: *** [bro] Error 1
> > >
> > > I am using linux 2.4.18-3 (Redhat 7.3). I nm'ed libresolv.a and did
>
> find
>
> > > __ns_initparse in it:
> > >
> > > /usr/lib/libresolv.a:ns_parse.o:00000000 T __ns_initparse
> > >
> > > Thanks a lot,
> > > Ruoming
>
> On Tue, 4 Feb 2003, Anton Chuvakin, Ph.D. wrote:
> > All,
> >
> > Anybody knows why is that?
> >
> > g++ -o bro 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 BroString.o
> > CCL.o CompHash.o Conn.o DFA.o Debug.o DebugCmds.o DbgBreakpoint.o
> > DbgWatch.o DbgHelp.o Desc.o Dict.o Discard.o DNS.o DNS_Mgr.o EquivClass.o
> > Event.o Expr.o File.o Finger.o Frag.o Frame.o FTP.o Func.o Hash.o HTTP.o
> > ICMP.o ID.o Ident.o InterConn.o IntSet.o List.o Logger.o Login.o MIME.o
> > NFA.o NTP.o NVT.o Net.o NetbiosSSN.o NetVar.o Obj.o PktSrc.o PolicyFile.o
> > Portmap.o PriorityQueue.o Queue.o Reassem.o Rlogin.o RE.o RPC.o Rule.o
> > RuleMatcher.o RuleAction.o RuleCondition.o Scope.o Sessions.o SMTP.o
> > SSH.o SteppingStone.o Stmt.o TCP.o TCP_Rewriter.o Telnet.o Timer.o Type.o
> > UDP.o Val.o Var.o XDR.o cq.o md5.o setsignal.o version.o  nb_dns.o 
> > -Llibedit -ltermcap -ledit -lresolv  -lpcap -lm
> >
> > nb_dns.o: In function `nb_dns_activity':
> > nb_dns.o(.text+0x678): undefined reference to `__ns_initparse'
> > nb_dns.o(.text+0x742): undefined reference to `_ns_flagdata'
> > nb_dns.o(.text+0x748): undefined reference to `_ns_flagdata'
> > nb_dns.o(.text+0x9bc): undefined reference to `__ns_parserr'
> > collect2: ld returned 1 exit status
> >
> > make: *** [bro] Error 1
> >
> > System:
> >
> > # Linux bastion 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
> > # Red Hat Linux release 7.3 (Valhalla)
> >
> > --
> > Anton Chuvakin, Ph.D., GCIA
> > Senior Security Analyst
> > netForensics -  http://www.netForensics.com
> > 732-393-6071



More information about the Bro mailing list