Re: [PATCH] malloc: port to current -m32 AddressSanitizer

Bruno Haible via Gnulib discussion list <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <11407057.OU7Dqq5WaI@cagnes>
Basil L. Contovounesios wrote:
> Following this change I see the following error during bootstrap:
> 
>   autoreconf: running: /usr/bin/autoconf --force
>   configure:18862: error: undefined or overquoted macro: gl_MUSL_LIBC
>         If this token and others are legitimate, please use m4_pattern_allow.
>         See the Autoconf documentation.
>   autoreconf: error: /usr/bin/autoconf failed with exit status: 1
>   ./bootstrap: autoreconf failed
> 
> That is in a project of mine that builds a dynamic module for Emacs, but
> I was able to reproduce the same error in a dummy reproducer project

Thanks for the report. This patch fixes it.


2026-08-16  Bruno Haible  <[email protected]>

	malloc-posix: Fix file list (regression 2026-07-27).
	Reported by Basil L. Contovounesios <[email protected]> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2026-08/msg00208.html>.
	* modules/malloc-posix (Files): Add m4/musl.m4.
	* modules/calloc-posix (Files): Likewise.
	* modules/realloc-posix (Files): Likewise.
	* modules/reallocarray (Files): Likewise.
	* modules/eealloc (Files): Likewise.
	* modules/malloca (Files): Likewise.
	* modules/relocatable-prog-wrapper (Files): Likewise.

diff --git a/modules/calloc-posix b/modules/calloc-posix
index f675a98a0d..dfdb01b319 100644
--- a/modules/calloc-posix
+++ b/modules/calloc-posix
@@ -5,6 +5,7 @@ Files:
 lib/calloc.c
 m4/calloc.m4
 m4/malloc.m4
+m4/musl.m4
 
 Depends-on:
 stdckdint-h          [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1]
diff --git a/modules/eealloc b/modules/eealloc
index babdf4deed..c700ce30af 100644
--- a/modules/eealloc
+++ b/modules/eealloc
@@ -13,6 +13,7 @@ lib/eealloc.h
 lib/eealloc.c
 m4/eealloc.m4
 m4/malloc.m4
+m4/musl.m4
 
 Depends-on:
 extern-inline
diff --git a/modules/malloc-posix b/modules/malloc-posix
index d7201a81f2..94cb90cb39 100644
--- a/modules/malloc-posix
+++ b/modules/malloc-posix
@@ -4,6 +4,7 @@ malloc() function: allocate memory with indefinite extent.
 Files:
 lib/malloc.c
 m4/malloc.m4
+m4/musl.m4
 
 Depends-on:
 stdckdint-h          [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1]
diff --git a/modules/malloca b/modules/malloca
index ce1b09bc40..f86bb76eda 100644
--- a/modules/malloca
+++ b/modules/malloca
@@ -6,6 +6,7 @@ lib/malloca.h
 lib/malloca.c
 m4/malloca.m4
 m4/malloc.m4
+m4/musl.m4
 
 Depends-on:
 alloca-opt
diff --git a/modules/realloc-posix b/modules/realloc-posix
index 138da8c52a..29a3933628 100644
--- a/modules/realloc-posix
+++ b/modules/realloc-posix
@@ -5,6 +5,7 @@ Files:
 lib/realloc.c
 m4/realloc.m4
 m4/malloc.m4
+m4/musl.m4
 
 Depends-on:
 extensions-aix
diff --git a/modules/reallocarray b/modules/reallocarray
index 4cd87cca4a..a59a0fcda3 100644
--- a/modules/reallocarray
+++ b/modules/reallocarray
@@ -6,6 +6,7 @@ lib/reallocarray.c
 m4/malloc.m4
 m4/realloc.m4
 m4/reallocarray.m4
+m4/musl.m4
 
 Depends-on:
 extensions
diff --git a/modules/relocatable-prog-wrapper b/modules/relocatable-prog-wrapper
index 346767d307..70769ab1b3 100644
--- a/modules/relocatable-prog-wrapper
+++ b/modules/relocatable-prog-wrapper
@@ -43,6 +43,7 @@ m4/lstat.m4
 m4/environ.m4
 m4/free.m4
 m4/malloc.m4
+m4/musl.m4
 m4/mempcpy.m4
 m4/rawmemchr.m4
 m4/readlink.m4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.