Bug 378

Summary: Unbound does not check the ldns version
Product: unbound Reporter: St├ęphane Bortzmeyer <bortzmeyer+nlnetlabs>
Component: serverAssignee: unbound team <unbound-team>
Severity: minor CC: wouter
Priority: P5    
Version: unspecified   
Hardware: All   
OS: Linux   

Description St├ęphane Bortzmeyer 2011-04-12 07:53:02 CEST
Unbound >= 1.4.6 apparently (I do not find it documented) requires ldns >= 1.6.5 but configure does not test it (while it tests the version of OpenSSL, for GOST support).

As a result, on an Ubuntu "maverick" (ldns = 1.6.4), with the latest Unbound:

/unbound-1.4.9 % make
echo "rebuild lexer, but no lex program, skipped"
rebuild lexer, but no lex program, skipped
./libtool --quiet --tag=CC --mode=link gcc -g -O2 -pthread -o unbound-anchor build/compat/strlcpy.lo build/smallapp/unbound-anchor.lo -L. -L.libs -lunbound -lexpat -lssl -lldns -lcrypto
build/smallapp/.libs/unbound-anchor.o: In function `pick_random_ip':
/home/stephane/System/DNS/Unbound-tests/unbound-1.4.9/smallapp/unbound-anchor.c:672: undefined reference to `ldns_get_random'
collect2: ld returned 1 exit status
make: *** [unbound-anchor] Error 1

[BTW, the list of possible Unbound versions in Bugzilla stops at 1.4.6...]
Comment 1 Wouter Wijngaards 2011-04-12 09:01:44 CEST
Hi Stephane,

Yes it should check the ldns version, but this is a new dependency from unbound-anchor and not checked.  Fixed it so it checks for ldns_get_random in ldns.  Fix in svn trunk r2411.

Thanks for the report,
Comment 2 Wouter Wijngaards 2011-04-12 09:04:01 CEST
And I added the versions to bugzilla, thanks again, Wouter.