Bug 378 - Unbound does not check the ldns version
Unbound does not check the ldns version
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
All Linux
: P5 minor
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-12 07:53 CEST by Stéphane Bortzmeyer
Modified: 2011-04-12 09:04 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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,
   Wouter
Comment 2 Wouter Wijngaards 2011-04-12 09:04:01 CEST
And I added the versions to bugzilla, thanks again, Wouter.