DragonFly BSD
DragonFly users List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

dragonfly-2010Q3 unbound dns resolver - linking problem


From: Paul Onyschuk <blink@xxxxxxxxxxxxxx>
Date: Thu, 4 Nov 2010 16:54:05 +0100

Unbound (simple DNS resolver) is available in pkgsrc. I installed
it from binary packages on DragonFly BSD i386 2.8.2, but it breaks on
runtime:

/usr/libexec/ld-elf.so.2: /usr/pkg/sbin/unbound: Undefined symbol
"ldns_key_EVP_ladd_gost_id"

ldd shows that unbound is linked with DragonFly BSD ldns library
instead of pkgsrc version (/usr/lib/libldns.so.1 instead
of /usr/pkg/lib/libldns.so.1). Pkgsrc uses version 1.6.6 of ldns and
DragonFly BSD uses v1.6.4.

Problem is bigger, because path to pkgsrc's ldns is specified in
unbound's makefile:

CONFIGURE_ARGS+=	--with-ldns=${BUILDLINK_PREFIX.ldns}

Probably libtool is doing some kind of magic ;) There is simple, but
dirty way to fix that - changing that line in makefile to:

CONFIGURE_ARGS+=	--with-ldns-builtin

This way, unbound will be compiled statically with ldns provided
with unbound source tree and works perfectly.

Anyone has better solution?

-- 
Paul Onyschuk <blink@bojary.koba.pl>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]