GnuTLS 3, BSD, netinet/ip.h

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Wed May 23 21:03:37 CEST 2012


On 05/23/2012 03:03 AM, Phil Pennock wrote:

> On 2012-05-22 at 10:28 +0200, Nikos Mavrogiannopoulos wrote:
> [ EOF vs buffer overflow ]
>> We have separate error codes for these conditions in gnutls 3.0.x.
> 
> Ah, thanks.  FreeBSD Ports system and Ubuntu both lack GnuTLS 3, so I
> stuck to 2.12.
> 
> Building GnuTLS 3 on my dated FreeBSD 7 series install is failing, but
> when I check on a more recent (FreeBSD 9) system I see that the relevant
> type has been changed to avoid the issue.
> ----------------------------8< cut here >8------------------------------
>   CC     serv.o
> In file included from common.h:31,
>                  from serv.c:28:
> /usr/include/netinet/ip.h:162: error: expected specifier-qualifier-list before 'n_long'
> serv.c: In function 'tcp_server':
> serv.c:1245: warning: cast to pointer from integer of different size
> *** Error code 1
> ----------------------------8< cut here >8------------------------------


It looks like an issue in the system rather than something that's worth
fixing in gnutls. So it is that the netinet/in.h is unusable on this
system? In that case could you submit to gnulib [0] your suggested patch?

[0]. http://www.gnu.org/software/gnulib/

regards,
Nikos




More information about the Gnutls-help mailing list