[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Problem with building gawk v3.1.86 with MinGW on win32
From: |
Eli Zaretskii |
Subject: |
Re: [bug-gawk] Problem with building gawk v3.1.86 with MinGW on win32 |
Date: |
Sun, 19 Jun 2011 19:14:54 +0300 |
> Date: Sun, 19 Jun 2011 09:07:17 +0200
> From: Volker Kiefel <address@hidden>
>
> Now I tried to build the upcoming new v3.1.86 for win32 systems
> with MinGW (gcc versions 3.4.5 and 4.5.2). As recommended I used
> the files in the `pc' subdirectory including the makefile for
> win32-systems.
>
> Compilation ended with the error message:
> ----
> C:\versuch\gawk-3.1.86>mingw32-make mingw32
> ...
> gcc -c -O2 -gdwarf-2 -g3 -DGAWK -I. -DHAVE_CONFIG_H getopt.c
> gcc -c -O2 -gdwarf-2 -g3 -DGAWK -I. -DHAVE_CONFIG_H getopt1.c
> mingw32-make[1]: *** No rule to make target `hard-locale.h', needed by
> `dfa.o'.
> Stop.
> mingw32-make[1]: Leaving directory `C:/versuch/gawk-3.1.86'
> mingw32-make: *** [mingw32] Error 2
It's a known problem. Apply the following patch to pc/Makefile, copy
it to the parent directory, and rebuild:
--- pc/Makefile.~0 2011-04-29 15:35:17.000000000 +0300
+++ pc/Makefile 2011-06-17 12:29:58.265625000 +0300
@@ -188,7 +188,7 @@
# LIBOBJS
# GNU and other stuff that gawk uses as library routines.
-LIBOBJS= getopt$O getopt1$O dfa$O regex$O random$O hard-locale$O
+LIBOBJS= getopt$O getopt1$O dfa$O regex$O random$O
GAWKOBJS = $(ALLOBJS) $(LIBOBJS)
PGAWKOBJS = $(PAWKOBJS1) $(PAWKOBJS2) $(LIBOBJS) awkgram$O getid$O $(OBJ)
@@ -245,14 +245,12 @@
command$O debug$O: cmd.h
-dfa$O: hard-locale.h xalloc.h
+dfa$O: xalloc.h
gawkmisc$O: pc/gawkmisc.pc
getopt$O getopt1$O : getopt_int.h
-hard-locale$O: hard-locale.h
-
io$O: popen.h
regex$O: regcomp.c regexec.c regex_internal.h