Build problem

Bill McCarty bmccarty at apu.edu
Sun Apr 13 16:57:11 PDT 2003


Hi Ruoming,

Got it, thanks: Now up and running!

Cheers,

--On Sunday, April 13, 2003 3:44 PM -0700 Ruoming Pang <rpang at icir.org> 
wrote:

> Bill,
>
> Below is the answer provided by Olivier Grumelard.
>
> Ruoming
>
> ---------- Forwarded message ----------
> Date: Wed, 4 Dec 2002 08:36:47 +0100
> From: grd-pub.56 at NOSPAMnetcourrier.com
> To: Ruoming Pang <rpang at icir.org>
> Cc: bro at lbl.gov
> Subject: Re: building bro in linux
>
> 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 Sun, 13 Apr 2003, Bill McCarty wrote:
>
>> Hi all,
>>
>> I'm having trouble building bro, under Red Hat Linux 7.2. Apparently,
>> there's a problem linking to the resolver library:
>>
>>
>> > 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
>>
>> Thoughts?
>>
>> Thanks!
>>
>> ---------------------------------------------------
>> Bill McCarty, Ph.D.
>> Associate Professor of Web & Information Technology
>> School of Business and Management
>> Azusa Pacific University
>>
>
>
>



---------------------------------------------------
Bill McCarty, Ph.D.
Associate Professor of Web & Information Technology
School of Business and Management
Azusa Pacific University



More information about the Bro mailing list