[gnutls-devel] [sr #108713] lib/x509/rfc2818_hostname.c: in6_addr incomplete type on at least FreeBSD 10.1

Rumko INVALID.NOREPLY at gnu.org
Tue Dec 30 21:58:03 CET 2014


URL:
  <http://savannah.gnu.org/support/?108713>

                 Summary: lib/x509/rfc2818_hostname.c: in6_addr incomplete
type on at least FreeBSD 10.1
                 Project: GnuTLS
            Submitted by: rumko
            Submitted on: Tue 30 Dec 2014 09:58:02 PM CET
                Category: Core library
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: *BSD

    _______________________________________________________

Details:

Out of the box, one cannot compile gnutls on at least FreeBSD 10.1 due to
structs in6_addr being an incomplete type.

The problem is in lib/system.h, which includes arpa/inet.h that does not
contain ipv6 related structs (also according to
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/arpa/inet.h.html). By
including netinet/in.h, the problem is fixed, since it also contains ipv6
related data structures (also according to
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/netinet/in.h.html).
The attached patch make system.h include netinet/in.h on systems that have it
(detected using HAVE_NETINET_IN_H).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 30 Dec 2014 09:58:02 PM CET  Name: patch-lib_system.h  Size: 420B  
By: rumko

<http://savannah.gnu.org/support/download.php?file_id=32737>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?108713>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




More information about the Gnutls-devel mailing list