On 8/22/21 4:19 AM, Evan Miller wrote:
c-stack.c: In function 'die':
c-stack.c:106:17: warning: implicit declaration of function 'mempcpy' 
[-Wimplicit-function-declaration]
        char *p = mempcpy (buf, progname, prognamelen);

Evidently some dependencies were missing from the c-stack module. I installed the attached patch. Please try the same set of commands again.
>From 7a2a0d40e713c5cfd0b77abd3bdd897d9e72fa26 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sun, 22 Aug 2021 13:39:24 -0700
Subject: [PATCH] c-stack: depend on inttypes, mempcpy

* modules/c-stack (Depends-on): Add inttypes, mempcpy.
mempcpy problem reported by Evan Miller in:
https://debbugs.gnu.org/50098#31
---
 ChangeLog       | 7 +++++++
 modules/c-stack | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 196704808..a6e8d6e99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-08-22  Paul Eggert  <egg...@cs.ucla.edu>
+
+	c-stack: depend on inttypes, mempcpy
+	* modules/c-stack (Depends-on): Add inttypes, mempcpy.
+	mempcpy problem reported by Evan Miller in:
+	https://debbugs.gnu.org/50098#31
+
 2021-08-22  Bruno Haible  <br...@clisp.org>
 
 	mountlist: Use recommended syntax for _GL_UNUSED_LABEL.
diff --git a/modules/c-stack b/modules/c-stack
index 32a412041..812e3efca 100644
--- a/modules/c-stack
+++ b/modules/c-stack
@@ -14,6 +14,8 @@ getprogname
 gettext-h
 idx
 ignore-value
+inttypes
+mempcpy
 raise
 sigsegv
 stddef
-- 
2.30.2

Reply via email to