bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Unable to compile gawk 4.0.2


From: Aharon Robbins
Subject: Re: [bug-gawk] Unable to compile gawk 4.0.2
Date: Wed, 27 Mar 2013 18:21:02 +0200
User-agent: Heirloom mailx 12.5 6/20/10

Hi. Thanks for the report:

> Date: Mon, 25 Mar 2013 10:33:11 +0100
> From: "Dominik Mahrer (Teddy)" <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] Unable to compile gawk 4.0.2
>
> Hi
>
> I get the following error while compiling gawk 4.0.2:
> [...]
>
> gcc -DDEFPATH='".:/usr/share/awk"' -DHAVE_CONFIG_H -DGAWK 
> -DLOCALEDIR='"/usr/share/locale"' -I. -I..     -g -O2 -MT dfa.o -MD -MP 
> -MF .deps/dfa.Tpo -c -o dfa.o ../dfa.c
> In file included from ../dfa.c:83:0:
> ../dfa.h:85:34: error: expected ')' before 'struct'
> make[2]: *** [dfa.o] Error 1
> make[2]: Leaving directory `/usr/src/gawk-4.0.2/build'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gawk-4.0.2/build'
> make: *** [all] Error 2

The following patch should do the trick.  It is already committed
in the gawk-4.0-stable branch in the git repo.

Arnold
----------------------------------------
diff --git a/dfa.c b/dfa.c
index a7f6938..4559adb 100644
--- a/dfa.c
+++ b/dfa.c
@@ -22,8 +22,6 @@
 
 #include <config.h>
 
-#include "dfa.h"
-
 #include <assert.h>
 #include <ctype.h>
 #include <stdio.h>
@@ -45,6 +43,8 @@
 #include "missing_d/gawkbool.h"
 #endif /* HAVE_STDBOOL_H */
 
+#include "dfa.h"
+
 
 #define STREQ(a, b) (strcmp (a, b) == 0)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]