compilation error of errcodes

Simon Josefsson simon at
Mon Oct 10 11:27:48 CEST 2011

Nikos Mavrogiannopoulos <nmav at> writes:

> On 10/08/2011 12:55 PM, Vincent Torri wrote:
>> hey, always compiling with mingw-w64 : errcodes can not be compiled
>> as gnutls.h is not found : 'make ./errcodes' so it  seems that
>> AM_CPPFLAGS is not taken into account (i've not searched in the
>> automake manual if it's the reason or not.
> It looks like a bug in the automake used. Did you run automake before
> compiling? In my system that change is not required.

Perhaps the patch below solves this.  Vincent, can you try running 'make
./errcodes.exe' to see if it uses the correct cflags?  If so, this patch
is the right thing.


diff --git a/doc/ b/doc/
index 8f4d121..2824461 100644
--- a/doc/
+++ b/doc/
@@ -156,8 +156,8 @@ alert_printlist_SOURCES = alert-printlist.c
 alert_printlist_LDADD = ../lib/ ../gl/
 error_codes.texi: $(top_srcdir)/lib/gnutls_errors.c $(srcdir)/errcodes.c
-	make $(builddir)/errcodes
-	$(builddir)/errcodes > $@-tmp
+	make $(builddir)/errcodes$(EXEEXT)
+	$(builddir)/errcodes$(EXEEXT) > $@-tmp
 	mv -f $@-tmp $@
 algorithms.texi: printlist

More information about the Gnutls-devel mailing list