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 _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile