[Bro] Problems Building Bro

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sun Jun 18 05:16:38 PDT 2006


On Sunday 18 Jun 2006 11:19 am, Dominic Steinitz wrote:
> nd_dns.c compiled ok but the final link still fails but with different
> errors. Given that it compiles ok but doesn't link, I'm guessing it's
> looking for a library somewhere. I'll see if I can figure out which library
> and then point it in the right direction.
>
> nb_dns.o(.text+0x2e0): In function `_nb_dns_mkquery':
> /home/dom/Desktop/bro-1.1/src/nb_dns.c:293: undefined reference to
> `__res_mkquery'
> nb_dns.o(.text+0x5f1): In function `nb_dns_activity':
> /home/dom/Desktop/bro-1.1/src/nb_dns.c:476: undefined reference to
> `__ns_initparse'
> nb_dns.o(.text+0x67c):/home/dom/Desktop/bro-1.1/src/nb_dns.c:519: undefined
> reference to `_ns_flagdata'
> nb_dns.o(.text+0x684):/home/dom/Desktop/bro-1.1/src/nb_dns.c:519: undefined
> reference to `_ns_flagdata'
> nb_dns.o(.text+0x866):/home/dom/Desktop/bro-1.1/src/nb_dns.c:561: undefined
> reference to `__ns_parserr'
> nb_dns.o(.text+0x959):/home/dom/Desktop/bro-1.1/src/nb_dns.c:610: undefined
> reference to `__dn_expand'
>

 Adding -lresolv gets rid of one of the unresolved references (res_mkquery) 
but I'm still left with the others. They are all defined in <arpa/nameser.h> 
but it's not clear which library needs to be linked in.

Dominic.

nb_dns.o(.text+0x5f1): In function `nb_dns_activity':
/home/dom/Desktop/bro-1.1/src/nb_dns.c:476: undefined reference to 
`__ns_initparse'
nb_dns.o(.text+0x67c):/home/dom/Desktop/bro-1.1/src/nb_dns.c:519: undefined 
reference to `_ns_flagdata'
nb_dns.o(.text+0x684):/home/dom/Desktop/bro-1.1/src/nb_dns.c:519: undefined 
reference to `_ns_flagdata'
nb_dns.o(.text+0x866):/home/dom/Desktop/bro-1.1/src/nb_dns.c:561: undefined 
reference to `__ns_parserr'





More information about the Bro mailing list