Hi,

In ubuntu we applied the upstream's fix at
https://github.com/jedsoft/slrn/pull/1 (with some refreshing action)  that
I'll attach here for fixing this FTBFS.

I am sending this for your consideration, and I hope that it helps.

Best,

Miriam

-- 
[image: Canonical-20th-anniversary]

Miriam EspaƱa Acebal

Software Engineer II - Ubuntu Public Cloud/Server

Email:

miriam.esp...@canonical.com

Location:

Spain

canonical.com

ubuntu.com
Origin: upstream, https://github.com/jedsoft/slrn/pull/1/commits/f550d0ab9e1cd3cfe844022435c3d98af3c18441
From: Florian Weimer <fwei...@redhat.com>
Date: Sat, 4 Feb 2023 15:04:36 +0100
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/slrn/+bug/2061030
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066213
Subject: [PATCH] autoconf: Fix C99 compatibility issue in the VA_COPY checks

The exit function is called without including <stdlib.h>, resulting
in an implicit function declarations.  Future compilers will not
support implicit function declarations by default.  This will lead
to build failures.
---
 autoconf/configure.ac | 3 +++
 configure             | 3 +++
 2 files changed, 6 insertions(+)

--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -399,6 +399,7 @@
 AC_CACHE_VAL(slrn_cv_va_copy,[
 	AC_RUN_IFELSE([AC_LANG_SOURCE([[
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);
@@ -419,6 +420,7 @@
 AC_CACHE_VAL(slrn_cv___va_copy,[
 	AC_RUN_IFELSE([AC_LANG_SOURCE([[
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);
@@ -439,6 +441,7 @@
 AC_CACHE_VAL(slrn_cv_va_val_copy,[
 	AC_RUN_IFELSE([AC_LANG_SOURCE([[
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);
--- a/configure
+++ b/configure
@@ -8307,6 +8308,7 @@ else
 /* end confdefs.h.  */
 
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);
@@ -8353,6 +8354,7 @@ else
 /* end confdefs.h.  */
 
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);
@@ -8399,6 +8400,7 @@
 /* end confdefs.h.  */
 
 	#include <stdarg.h>
+	#include <stdlib.h>
 	void f (int i, ...) {
 	va_list args1, args2;
 	va_start (args1, i);

Reply via email to