Wed Sep  8 15:59:49 BST 2010

While attempting to build guile-1.9.12 from
source, it failed with:

        i18n.c: In function 'define_langinfo_items':
        i18n.c:1746: error: 'ERA' undeclared (first use in this function)
        i18n.c:1746: error: (Each undeclared identifier is reported only once
        i18n.c:1746: error: for each function it appears in.)
        i18n.c:1747: error: 'ERA_D_FMT' undeclared (first use in this function)
        i18n.c:1748: error: 'ERA_D_T_FMT' undeclared (first use in this 
function)
        i18n.c:1750: error: 'ERA_T_FMT' undeclared (first use in this function)
        i18n.c:1752: error: 'ALT_DIGITS' undeclared (first use in this function)
        gmake[3]: *** [libguile_2.0_la-i18n.lo] Error 1
        gmake[3]: Leaving directory `/usr/obj/micro/guile-1.9.12/libguile'
        gmake[2]: *** [all] Error 2
        gmake[2]: Leaving directory `/usr/obj/micro/guile-1.9.12/libguile'
        gmake[1]: *** [all-recursive] Error 1
        gmake[1]: Leaving directory `/usr/obj/micro/guile-1.9.12'
        gmake: *** [all] Error 2

It appears that /usr/include/langinfo.h is not current and is missing defines 
for EVA.*:

OpenBSD:
http://www.openbsd.org/cgi-bin/cvsweb/src/include/langinfo.h?rev=1.5;content-type=text%2Fplain
NetBSD:
http://cvsweb.netbsd.org/bsdweb.cgi/src/include/langinfo.h?rev=1.9&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
OpenGroup.org:
http://www.opengroup.org/onlinepubs/009695399/basedefs/langinfo.h.html

Attached is a patch for langinfo.h

Regards,

-- 
-primus
"It isn't what you make, it's what you don't lose!"
--- /usr/include/langinfo.h     Sun Sep 17 02:04:15 2006
+++ langinfo.h  Wed Sep  8 16:14:17 2010
@@ -71,6 +71,13 @@
 
 #define CODESET                51      /* Codeset name */
 
+#define ERA         52 /* Era description segments */
+#define ERA_D_FMT      53      /* Era date format string */
+#define ERA_D_T_FMT    54      /* Era date and time format string */
+#define ERA_T_FMT      55      /* Era time format string */
+
+#define ALT_DIGITS     56      /* Alternative symbols for digits */
+
 __BEGIN_DECLS
 char *nl_langinfo(nl_item);
 __END_DECLS

Reply via email to