UGLYPATCH
root@localhost:~/t2-trunk/package/develop/m4# cat MB_LEN_MAX.patch
--- m4-1.4.18/lib/clean-temp.h.vanilla 2018-12-17 15:01:01.637653279 -0600
+++ m4-1.4.18/lib/clean-temp.h 2018-12-17 15:01:37.709199798 -0600
@@ -17,7 +17,7 @@
#ifndef _CLEAN_TEMP_H
#define _CLEAN_TEMP_H
-
+#define MB_LEN_MAX 16
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
--- m4-1.4.18/lib/vasnprintf.h.vanilla 2018-12-17 15:02:49.004303497 -0600
+++ m4-1.4.18/lib/vasnprintf.h 2018-12-17 15:03:05.116100944 -0600
@@ -16,7 +16,7 @@
#ifndef _VASNPRINTF_H
#define _VASNPRINTF_H
-
+#define MB_LEN_MAX 16
/* Get va_list. */
#include <stdarg.h>
--- m4-1.4.18/lib/quotearg.h.vanilla 2018-12-17 15:01:43.105131962 -0600
+++ m4-1.4.18/lib/quotearg.h 2018-12-17 15:02:03.944869971 -0600
@@ -20,7 +20,7 @@
#ifndef QUOTEARG_H_
# define QUOTEARG_H_ 1
-
+#define MB_LEN_MAX 16
# include <stddef.h>
/* Basic quoting styles. For each style, an example is given on the
--- m4-1.4.18/lib/quotearg.c.vanilla 2018-12-17 15:00:10.358297947 -0600
+++ m4-1.4.18/lib/quotearg.c 2018-12-17 15:02:23.656622161 -0600
@@ -23,7 +23,6 @@
#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
#endif
-
#include <config.h>
#include "quotearg.h"
--- m4-1.4.18/src/m4.h.vanilla 2018-12-17 14:59:20.770921345 -0600
+++ m4-1.4.18/src/m4.h 2018-12-17 14:59:41.534660310 -0600
@@ -22,7 +22,7 @@
/* We use <config.h> instead of "config.h" so that a compilation
using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
(which it would do because it found this file in $srcdir). */
-
+#define MB_LEN_MAX 16
#include <config.h>
#include <assert.h>
---------- Forwarded message ---------
From: Joe Kozak <[email protected]>
Date: Mon, Dec 17, 2018 at 2:23 PM
Subject: "Assumed value of MB_LEN_MAX wrong" during m4-1.4.18 build
To: T2 developers mailing list <[email protected]>
Similar at first glance to the linux-headers PATH_MAX not getting
included, but I cant seem to figure this one out.
is similar to https://goo.gl/6uSieP ? but gcc is in
/root/t2-trunk/build/default-9.0-svn-generic-sparc64-niagara4-32-cross-linux/TOOLCHAIN/tools.cross/wrapper/gcc
where there is no mention of MB_LEN_MAX at all.
is there a .h tool that compiles the nestling scope of a source file and
allows searches for what is defined and not?
failing on svn trunk X86_64 for sparc64(niagara4)
make[3]: Entering directory
'/root/t2-trunk/src.m4.default.20181217.140237.28131.localhost/m4-1.4.18/lib'
In file included from /usr/include/stdlib.h:1014,
from ./stdlib.h:36,
from clean-temp.c:29:
/usr/include/bits/stdlib.h: In function 'wctomb':
/usr/include/bits/stdlib.h:90:3: error: #error "Assumed value of MB_LEN_MAX
wrong"
# error "Assumed value of MB_LEN_MAX wrong"
^~~~~
make[3]: *** [Makefile:1910: clean-temp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/stdlib.h:1014,
from ./stdlib.h:36,
from quotearg.c:42:
/usr/include/bits/stdlib.h: In function 'wctomb':
/usr/include/bits/stdlib.h:90:3: error: #error "Assumed value of MB_LEN_MAX
wrong"
# error "Assumed value of MB_LEN_MAX wrong"
^~~~~
In file included from /usr/include/wchar.h:850,
from ./wchar.h:87,
from quotearg.c:44:
/usr/include/bits/wchar2.h: In function 'wcrtomb':
/usr/include/bits/wchar2.h:448:3: error: #error "Assumed value of
MB_LEN_MAX wrong"
# error "Assumed value of MB_LEN_MAX wrong"
^~~~~
fun fun fun!
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2