bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Problem compiling gawk 3.1.1 on Solaris 8 (Sparc) with gcc 3.2


From: Paul Eggert
Subject: Re: Problem compiling gawk 3.1.1 on Solaris 8 (Sparc) with gcc 3.2
Date: Mon, 14 Oct 2002 13:47:37 -0700 (PDT)

> From: Aharon Robbins <address@hidden>
> Cc: address@hidden
> Date: Mon, 14 Oct 2002 14:23:43 +0200
> 
> Your problem appears to be that you're building in a subdirectory of
> the source directory, which doesn't seem to work. (Nor, as far  as I know,
> is it supposed to.)

It is supposed to work if you use GNU make (as Jonas Olsson did), but
it fails due to the gettext problems that I mentioned in
<http://mail.gnu.org/pipermail/bug-gnu-utils/2002-October/003179.html>.

If you install just the following small patch to gawk 3.1.1 (extracted
from the above message), then the following sequence of commands
worked for me on Solaris 8 (sparc) with GCC 3.2.

   mkdir subdir
   cd subdir
   sh ../configure --disable-nls
   gmake
   gmake check

In this case "gmake" is /opt/sfw/bin/gmake, which Sun supplies on its
companion CD.

2002-10-10  Paul Eggert  <address@hidden>

        * awk.h: Include locale.h before gettext.h, to avoid problem
        on Solaris 8 + GCC 3.2.

diff -Naurp gawk-3.1.1/awk.h gawk-3.1.1-fixed/awk.h
--- gawk-3.1.1/awk.h    2002-04-16 11:40:18.000000000 +0000
+++ gawk-3.1.1-fixed/awk.h      2002-10-10 08:36:47.000000000 +0000
@@ -49,10 +49,6 @@
 #include <ctype.h>
 #include <setjmp.h>
 
-#include "gettext.h"
-#define _(msgid)  gettext(msgid)
-#define N_(msgid) msgid
-
 #if ! (defined(HAVE_LIBINTL_H) && defined(ENABLE_NLS) && ENABLE_NLS > 0)
 #ifndef LOCALEDIR
 #define LOCALEDIR NULL
@@ -62,6 +58,9 @@
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif /* HAVE_LOCALE_H */
+#include "gettext.h"
+#define _(msgid)  gettext(msgid)
+#define N_(msgid) msgid
 #if defined(HAVE_STDARG_H) && defined(__STDC__) && __STDC__
 #include <stdarg.h>
 #else




reply via email to

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