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

Paul Wouters paul at xelerance.com
Thu May 22 04:01:37 UTC 2008


Hi people,

I've fixed up the spec file for inclusion into Fedora, see:
https://bugzilla.redhat.com/show_bug.cgi?id=447847

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"
        ldnsdir="$withval"
fi

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

Cheers,

Paul



More information about the Unbound-users mailing list