Your message dated Thu, 28 Feb 2008 23:04:31 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#460017: fixed in ldns 1.2.2-1
has caused the Debian Bug report #460017,
regarding libldns-dev: including <ldns/ldns.h> doesn't include required 
standard headers
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
460017: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460017
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libldns-dev
Version: 1.2.1-2
Severity: normal
Tags: upstream

Including <libldns/libldns.h> is not enough to successfully compile a
program which uses the libldns API.  Viz:

    [EMAIL PROTECTED]:~/code/test$ cat ldns.c
    #include <ldns/ldns.h>

    int main(void){ return 0; }

    [EMAIL PROTECTED]:~/code/test$ gcc -Wall -o ldns ldns.c
    In file included from /usr/include/ldns/ldns.h:94,
                     from ldns.c:1:
    /usr/include/ldns/util.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘ldns_read_uint16’
    /usr/include/ldns/util.h:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘ldns_read_uint32’
    /usr/include/ldns/util.h:84: error: expected declaration specifiers or 
‘...’ before ‘uint16_t’
    /usr/include/ldns/util.h: In function ‘ldns_write_uint16’:
    /usr/include/ldns/util.h:89: error: ‘uint8_t’ undeclared (first use in this 
function)
    [...]

uint8_t is defined in the C99 standard library header stdint.h, which is
not included by any ldns header file.  Including stdint.h gives:

    [EMAIL PROTECTED]:~/code/test$ cat ldns2.c
    #include <stdint.h>
    #include <ldns/ldns.h>

    int main(void){ return 0; }

    [EMAIL PROTECTED]:~/code/test$ gcc -Wall -o ldns2 ldns2.c
    In file included from /usr/include/ldns/ldns.h:95,
                     from ldns2.c:2:
    /usr/include/ldns/buffer.h:163: error: expected declaration specifiers or 
‘...’ before ‘ssize_t’
    [...]

Now we need another header for ssize_t:

    [EMAIL PROTECTED]:~/code/test$ cat ldns3.c
    #include <stdint.h>
    #include <sys/types.h>
    #include <ldns/ldns.h>

    int main(void){ return 0; }

    [EMAIL PROTECTED]:~/code/test$ gcc -Wall -o ldns3 ldns3.c
    [EMAIL PROTECTED]:~/code/test$ 

Upstream should include headers when types from those headers are used.

-- 
Robert Edmonds
[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: ldns
Source-Version: 1.2.2-1

We believe that the bug you reported is fixed in the latest version of
ldns, which is due to be installed in the Debian FTP archive:

ldns_1.2.2-1.diff.gz
  to pool/main/l/ldns/ldns_1.2.2-1.diff.gz
ldns_1.2.2-1.dsc
  to pool/main/l/ldns/ldns_1.2.2-1.dsc
ldns_1.2.2.orig.tar.gz
  to pool/main/l/ldns/ldns_1.2.2.orig.tar.gz
ldnsutils_1.2.2-1_amd64.deb
  to pool/main/l/ldns/ldnsutils_1.2.2-1_amd64.deb
libldns-1.2.2_1.2.2-1_amd64.deb
  to pool/main/l/ldns/libldns-1.2.2_1.2.2-1_amd64.deb
libldns-dev_1.2.2-1_amd64.deb
  to pool/main/l/ldns/libldns-dev_1.2.2-1_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Surý <[EMAIL PROTECTED]> (supplier of updated ldns package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 10 Jan 2008 14:13:37 +0100
Source: ldns
Binary: libldns-1.2.2 ldnsutils libldns-dev
Architecture: source amd64
Version: 1.2.2-1
Distribution: unstable
Urgency: low
Maintainer: Ondřej Surý <[EMAIL PROTECTED]>
Changed-By: Ondřej Surý <[EMAIL PROTECTED]>
Description: 
 ldnsutils  - ldns library for DNS programming
 libldns-1.2.2 - ldns library for DNS programming
 libldns-dev - ldns library for DNS programming
Closes: 454905 460017
Changes: 
 ldns (1.2.2-1) unstable; urgency=low
 .
   * New upstream version.
   * Add library dependency to libldns-dev (Closes: #454905)
   * Include required standard headers in ldns/ldns.h (Closes: #460017)
   * Removed 02_dname-off-by-one.dpatch, 03_doxyparse.pl.dpatch,
             04_examples-man-pages.dpatch, 05_ldns-compare-zones.dpatch:
     - fixed upstream
Files: 
 dab490ee9efdf0164aae590c646ae44f 645 net extra ldns_1.2.2-1.dsc
 cba5e061b66377ceb25e2309d2cf17f3 723900 net extra ldns_1.2.2.orig.tar.gz
 778f022a573aaa035429d5e2085357b7 11619 net extra ldns_1.2.2-1.diff.gz
 684abe9824464a8a142e4b7082bd96c9 90608 libs extra 
libldns-1.2.2_1.2.2-1_amd64.deb
 8a0f2f48c6283578baf1b0c03101854e 1156354 libdevel extra 
libldns-dev_1.2.2-1_amd64.deb
 66c04d00682b9807b7fc70fad44c0233 108772 net extra ldnsutils_1.2.2-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHxtV39OZqfMIN8nMRAn6DAJ9osWPEpZ8+53uNkFt4dLjwHa6+tACfRwSl
r3i3aQQPIj0xo4DP9ZNNYBM=
=iq/B
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to