building bro in linux

grd-pub.56 at NOSPAMnetcourrier.com grd-pub.56 at NOSPAMnetcourrier.com
Tue Dec 3 23:36:47 PST 2002


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



More information about the Bro mailing list