bug-guile
[Top][All Lists]
Advanced

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

Errors compiling i18n.c


From: Neil Jerram
Subject: Errors compiling i18n.c
Date: Wed, 19 Sep 2007 22:39:28 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../lib -I../lib -pthread -g -O2 -Wall 
-Wmissing-prototypes -Werror -MT libguile_i18n_v_0_la-i18n.lo -MD -MP -MF 
.deps/libguile_i18n_v_0_la-i18n.Tpo -c i18n.c  -fPIC -DPIC -o 
.libs/libguile_i18n_v_0_la-i18n.o
i18n.c:186: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'scm_t_locale'
i18n.c: In function 'smob_locale_free':
i18n.c:224: error: 'scm_t_locale' undeclared (first use in this function)
i18n.c:224: error: (Each undeclared identifier is reported only once
i18n.c:224: error: for each function it appears in.)
i18n.c:224: error: expected ';' before 'c_locale'
i18n.c:226: error: 'c_locale' undeclared (first use in this function)
cc1: warnings being treated as errors
i18n.c:227: warning: implicit declaration of function 'freelocale'
In file included from i18n.c:554:
locale-categories.h: In function 'category_to_category_mask':
locale-categories.h:22: error: 'LC_COLLATE_MASK' undeclared (first use in this 
function)
locale-categories.h:23: error: 'LC_CTYPE_MASK' undeclared (first use in this 
function)
locale-categories.h:24: error: 'LC_MESSAGES_MASK' undeclared (first use in this 
function)
...

Again, these are cured by defining _GNU_SOURCE.  Am I doing something
stupid, or using wrong tool versions or something, such that I need to
add these _GNU_SOURCE definitions?

Regards,
        Neil


--- i18n.c      29 Jul 2007 15:16:46 -0000      1.9
+++ i18n.c      19 Sep 2007 21:39:08 -0000
@@ -15,6 +15,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _GNU_SOURCE
+
 #if HAVE_CONFIG_H
 # include <config.h>
 #endif





reply via email to

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