Source-Changes-HG archive

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

[src/trunk]: src/external/lgpl3/gmp/dist external/lgpl3/gmp build fail in con...



details:   https://anonhg.NetBSD.org/src/rev/65e271a522dd
branches:  trunk
changeset: 356882:65e271a522dd
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Thu Oct 19 03:26:28 2017 +0000

description:
external/lgpl3/gmp build fail in configure phase with "ln -s J /etc/malloc.conf".

patch from pkgsrc/devel/gmp
  http://mail-index.netbsd.org/pkgsrc-changes/2017/06/15/msg158404.html

diffstat:

 external/lgpl3/gmp/dist/acinclude.m4 |  2 +-
 external/lgpl3/gmp/dist/configure    |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 63188dc10391 -r 65e271a522dd external/lgpl3/gmp/dist/acinclude.m4
--- a/external/lgpl3/gmp/dist/acinclude.m4      Thu Oct 19 03:09:55 2017 +0000
+++ b/external/lgpl3/gmp/dist/acinclude.m4      Thu Oct 19 03:26:28 2017 +0000
@@ -744,7 +744,7 @@
   long i;
   for (i = 0; i < 88 + 1; i++)
     a[i] = ~0L;
-  r = malloc (10000 * sizeof (unsigned long));
+  r = calloc (10000, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
     {
diff -r 63188dc10391 -r 65e271a522dd external/lgpl3/gmp/dist/configure
--- a/external/lgpl3/gmp/dist/configure Thu Oct 19 03:09:55 2017 +0000
+++ b/external/lgpl3/gmp/dist/configure Thu Oct 19 03:26:28 2017 +0000
@@ -6786,7 +6786,7 @@
   long i;
   for (i = 0; i < 88 + 1; i++)
     a[i] = ~0L;
-  r = malloc (10000 * sizeof (unsigned long));
+  r = calloc (10000, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
     {
@@ -8404,7 +8404,7 @@
   long i;
   for (i = 0; i < 88 + 1; i++)
     a[i] = ~0L;
-  r = malloc (10000 * sizeof (unsigned long));
+  r = calloc (10000, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
     {



Home | Main Index | Thread Index | Old Index