building bro in linux

Wang Shaofu wsffree at hotmail.com
Sat Mar 8 09:13:52 PST 2003


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.
                                ~~~~~~~~~~~~~~~~~~~~~I could not find 
-lresolv in Makefile. Would u tell me where should be corrected in 
Makefile?

>
>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 at advance
Have a nice day!
Ciao
Cloud

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  




More information about the Bro mailing list