[Bro] OpenBSD bro-1.1

Jean-Philippe Luiggi jp.luiggi at free.fr
Fri May 26 08:19:00 PDT 2006


Hello,

On Fri, May 26, 2006 at 11:18:09AM +0200, Stephan wrote:
> Hello,
> 
> >   I'm now trying to figure out how using correctly the non blocking
> >   DNS library given by the OpenBSD bind's package.
> >   
> >   Best regards. 
> >   
> 
> One way to build bro with non-blocking DNS lib without changing configure is to install libbind (from /usr/ports/net/libbind) set CFLAGS and LDFLAGS:
>  - $ export CFLAGS=-I/usr/local/bind/include
>  - $ export LDFLAGS=-L/usr/local/lib
> Then you can use the normal ./configure (with non-blocking DNS).

That's fine but here and "obviously" :

====
# export CFLAGS=-I/usr/local/bind/include
# export LDFLAGS=-L/usr/local/lib
# ./configure --prefix=/opt/share/bro-1.1; make
checking build system type... i386-unknown-openbsd3.9
.
.
.
Making all in test
source='broping.c' object='broping.o' libtool=no  depfile='.deps/broping.Po'
tmpdepfile='.deps/broping.TPo'  depmode=gcc3 /bin/sh ../depcomp  gcc
-DHAVE_CONFIG_H -I. -I. -I.. -I../src -W -Wall -Wno-unused
-I/usr/local/bind/include -c test -f broping.c || echo './'broping.c
/bin/sh ../libtool --mode=link gcc  -I/usr/local/bind/include
-L/usr/local/lib -o broping  broping.o ../src/.libs/libbroccoli.a -lssl
-lcrypto
gcc -I/usr/local/bind/include -L/usr/local/lib -o broping broping.o
../src/.libs/libbroccoli.a -lssl -lcrypto
../src/.libs/libbroccoli.a(bro.o)(.text+0xd43): In function bro_conn_new':
: undefined reference to __inet_ntoa'
collect2: ld returned 1 exit status
*** Error code 1
====

This is strange (as the following warnings). Without the two "export", all went smoothly.

> bin/bro:/usr/lib/libc.so.39.0: bin/bro : WARNING: symbol(_res) size mismatch, relink your program
> bin/bro:/usr/lib/libc.so.39.0: /usr/local/lib/libbind.so.2.0 : WARNING: symbol(__p_type_syms) size mismatch, relink your program
> bin/bro:/usr/lib/libc.so.39.0: /usr/local/lib/libbind.so.2.0 : WARNING: symbol(__p_class_syms) size mismatch, relink your program
> policy/hot.bro, line 78: error: unknown identifier is_local_addr, at or near "is_local_addr"
> $
> ====
> The polixy/hot.bro script error occurs with/without non-blocking DNS.
> 

I think we've to look deeper inside these points.

Thank you again

Best regards.



More information about the Bro mailing list