[gnutls-devel] gnutls 3.2.0 build fixes for mingw

Mark Brand mabrand at mabrand.nl
Tue May 21 14:01:08 CEST 2013


Nikos,

Just ran into 2 little problems building gnutls 3.2.0 for mingw.

First is that configure fails upon not finding sys/mman.h and sys/wait.h. A 
workaround hack, suggested by

    https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00026.html

 seems to be:

diff --git a/src/libopts/m4/libopts.m4 b/src/libopts/m4/libopts.m4
index 9d0c6de..1c33afa 100644
--- a/src/libopts/m4/libopts.m4
+++ b/src/libopts/m4/libopts.m4
@@ -72,7 +72,7 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS_FIRST],[
   ${lo_have_typ_hdr} || \
     ]AC_MSG_ERROR([you must have inttypes.h or stdint.h on your system])[

-  for f in sys_types sys_mman sys_param sys_stat sys_wait \
+  for f in sys_types sys_param sys_stat \
            string errno stdlib memory setjmp
   do eval as_ac_var=\${ac_cv_header_${f}_h}
      test "X${as_ac_var}" = Xyes || {

Would updating autgen solve this?

The second is undefined @LIB_CLOCK_GETTIME@ left behind in gnutls.pc. This is 
fixed by 863d07ef48b5b4f6d2e206e37bece4656c44ef92 in the master branch.

regards,

Mark






More information about the Gnutls-devel mailing list