|
From: | Manuel Collado |
Subject: | Re: Beta release of gawk 3.1.6 now available |
Date: | Fri, 01 Jun 2007 10:11:57 +0200 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
Eli Zaretskii escribió:
Date: Thu, 31 May 2007 12:20:16 +0200 From: "M. Collado" <address@hidden> This is to report some success in building gawk-3.1.5g on MinGW/Msys.
Well, just "some success". I don't claim to be a GNU porting expert, so perhaps there are better ways to build on MinGW. Or it may be that my MinGW installation is not enought up to date.
Requires a small patch (sorry for not providing a 'patch' file, but it is really trivial).Thank you for your report.- Add the following section and the end of pc/configure.h' -------------------------------- #if defined(__MINGW32__) #undef HAVE_ALLOCA #define HAVE_TMPFILE 1 #define restrict /* nothing */ #endif -------------------------------??? Can you explain why you need to undef HAVE_TMPFILE and define away `restrict'? You _are_ using GCC, right? If so, GCC supports both of these features.
A) #undef HAVE_ALLOCA #define HAVE_TMPFILE 1Compilation of the distributed sources produced some error messages for conditional code sections controled by these switches. I've run ./configure on MinGW/Msys to check the capabilities of my environment, and looked at the generated 'config.h' for the appropriate setting of these switches.
B) #define restrict /* nothing */The "current" distribution of MinGW provides gcc 3.4.4. It seems not to support 'restrict' by default. The -c99 gcc flag lets it to recognize the keyword, but then it complains about syntax errors on some source files. I've not been able to diagnose these errors, so I simply disabled the use of 'restrict'.
Overall, the reported patch is a simple one (just a single small code block in a single source file). Can be a workaround until more expert MinGW porters find a better solution.
BTW. I wonder why DJGPP and MinGW/Msys are not supported as gawk targets the same way as Cygwin. All of them have enought tools to run ./configure and make.
Regards. -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
[Prev in Thread] | Current Thread | [Next in Thread] |