[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Problem compiling lynx on Solaris
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] Problem compiling lynx on Solaris |
Date: |
Thu, 30 Dec 2010 17:08:05 -0500 (EST) |
On Thu, 30 Dec 2010, Brian Cameron wrote:
Lynx Developers:
The lynx 2.8.7 program fails to compile on Solaris due an issue with
how LOCALE support is compiled. The compile of LYMain.c fails
with this error:
pkgbuild: "LYMain.c", line 941: undefined symbol: LC_ALL
Fixing an #ifdef corrects this issue. See attached patch.
This was fixed a different way in 2.8.8dev.1, e.g.,
--- LYMain.c 2009/06/30 08:35:34 1.204
+++ LYMain.c 2009/08/25 21:26:10 1.205
@@ -1,5 +1,5 @@
/*
- * $LynxId: LYMain.c,v 1.203 2009/06/07 16:01:30 tom Exp $
+ * $LynxId: LYMain.c,v 1.204 2009/06/30 08:35:34 tom Exp $
*/
#include <HTUtils.h>
#include <HTTP.h>
@@ -57,7 +57,7 @@
#include <io.h>
#endif
-#if defined(LOCALE) && !defined(HAVE_LIBINTL_H)
+#if defined(LOCALE) && (!defined(HAVE_LIBINTL_H) || !defined(LC_ALL))
#undef gettext /* Solaris locale.h prototypes gettext() */
#include <locale.h>
#ifndef HAVE_GETTEXT
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net