On 2008/05/20 22:07, Jakob Schlyter wrote:
> I've created a draft port for unbound (http://www.unbound.net/) - a  
> validating, recursive, and caching DNS resolver - available at 
> http://www.schlyter.se/jakob/openbsd/unbound.tar.gz.

It doesn't pick up the installed libldns for me,

configure:24237: checking for ldns_buffer_copy in -lldns
configure:24272: cc -o conftest  -g -O2 -pthread  
-I/usr/obj/ports/unbound-1.0.0/unbound-1.0.0 -I/usr/include -I/usr/include  
-L/usr/lib -L/usr/lib conftest.c -lldns  -levent  -lcrypto  >&5
/usr/bin/ld: cannot find -lldns
collect2: ld returned 1 exit status

If I add

CONFIGURE_ENV =         CFLAGS="${LOCALBASE}/include/libldns"
CONFIGURE_ARGS +=       --with-ldns=${LOCALBASE}

it picks up the header but can't resolve functions;

configure:24237: checking for ldns_buffer_copy in -lldns
configure:24272: cc -o conftest  -g -O2 -pthread  
-I/usr/obj/ports/unbound-1.0.0/unbound-1.0.0 -I/usr/include -I/usr/include 
-I/usr/local/include  -L/usr/lib -L/usr/lib -L/usr/local -L/usr/local/lib 
-lldns conftest.c -lldns  -levent  -lcrypto  >&5
/tmp//ccTg8391.o(.text+0x12): In function `main':
/usr/obj/ports/unbound-1.0.0/build-i386/conftest.c:69: undefined reference to 
`ldns_buffer_copy'
collect2: ld returned 1 exit status

It then builds with the internal libldns, but port-lib-depends-check
reports the problems.

This is yesterday's snap on i386: Note to readers with the new
snap, ** merge etc43.tgz changes before running "make plist" **

Reply via email to