mainGnuTLS - Support: sr #108713, lib/x509/rfc2818_hostname.c:...

 
 

sr #108713: lib/x509/rfc2818_hostname.c: in6_addr incomplete type on at least FreeBSD 10.1

Submitter:  Rumko <rumko>
Submitted:  Tue 30 Dec 2014 08:58:02 PM UTC
   
 
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  *BSD
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 31 Dec 2014 07:42:01 AM UTC, comment #1: 
Nikos Mavrogiannopoulos <nmav>
Group administrator
Tue 30 Dec 2014 08:58:02 PM UTC, original submission:  

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).

Rumko <rumko>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32737:  patch-lib_system.h added by rumko (420B - text/x-chdr)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by rumko (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-31 nmav Open/ClosedOpen Closed
    2014-12-31 nmav StatusNone Done
    2014-12-30 rumko Attached File- Added patch-lib_system.h, #32737

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code