gnutls 3.0.4 and mingw-w64 build issues

Simon Josefsson simon at josefsson.org
Fri Oct 21 13:26:08 CEST 2011


"Hoyt, David" <hoyt6 at llnl.gov> writes:

> When building 3.0.4 with mingw-w64 (gcc 4.5.2) on a windows 7 machine,
> I get the following error:
>
>
> In file included from gnutls-3.0.4/lib/x509/common.c:24:0:
> gnutls-3.0.4/lib/x509/../gnutls_int.h:46:24: fatal error:
> sys/socket.h: No such file or directory
> compilation terminated. 
>
>
> I double checked and I do not have sys/socket.h. What's the correct
> fix for gnutls_int.h?

You should have a sys/socket.h in the GnuTLS build tree somewhere, from
gnulib.  Some -I's are missing, I've pushed this patch:

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=683ccd706bc847ae2ad2420692f89eba354f8714

> Removing the include altogether allowed compilation to proceed further
> (so perhaps the include could be guarded if needed elsewhere), but
> then I got:
>
>
> In file included from gnutls-3.0.4/lib/accelerated/x86/sha-padlock.c:24:0:
> gnutls-3.0.4/lib/accelerated/x86/../../gnutls_int.h:65:27: fatal
> error: gnutls/gnutls.h: No such file or directory
> compilation terminated.
> make[4]: *** [sha-padlock.lo] Error 1

Similar issue, I've added:

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=d6b29a8aa48be8e3db2ce9bcea4db54477f12744

Please try building from git, or try next release.

/Simon




More information about the Gnutls-help mailing list