Spec file, compile warnings, ldns unfindable

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"
        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

Hi Paul,

Thank you.

What exactly needs fixing in the configure file?
Do you have a patch or description (you can send offlist) ?

warning msgencode:333 fixed for 1.0.1, thanks.
(appeared due to gcc version)

Best regards,
~ Wouter

Paul Wouters wrote:

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}/

What exactly needs fixing in the configure file?
Do you have a patch or description (you can send offlist) ?

with ldns-1.3.0, I don't need any patches. See spec file at the
bugzilla url. Mind you I have not tested any functionality yet.

Paul