Maintained by: NLnet Labs

[Unbound-users] spec file, compile warnings, ldns unfindable

Paul Wouters
Thu May 22 06:01:37 CEST 2008

Hi people,

I've fixed up the spec file for inclusion into Fedora, see:

Next, it seems the configure file cannot deal with an ldns that has
its header installed in /usr/include/ldns, with its library in /usr/lib{64}/
with configure --with-ldns or --with-ldns=/usr

# Check whether --with-ldns was given.
if test "${with_ldns+set}" = set; then
  withval=$with_ldns;  specialldnsdir="$withval"
        CPPFLAGS="$CPPFLAGS -I$withval/include"
        LDFLAGS="$LDFLAGS -L$withval -L$withval/lib -lldns"

Since this is the location on Fedora, unbound will mistakenly use the
build-in ldns (breaking fedora guidelines of staticly linking to an
available shared library)

Warnings found:

Build util/configlexer.c
<stdout>:2466: warning: 'ub_c_unput' defined but not used
<stdout>:2509: warning: 'input' defined but not used

util/data/msgencode.c: In function 'compress_any_dname':
util/data/msgencode.c:333: warning: 'insertpt' may be used uninitialized in this function