who know setup of libpcap?

I met somewhat question about setup of libpcap,I can’t solve it,who can give me detail guidelines about it.

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

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.