- From bccc29856fa0659b3e31c5bbc9233609e564729a Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Thu, 24 Apr 2025 18:24:04 +0200
- Subject: [PATCH] tests: nfsbuildtest: Fix gcc build failure in
- libiberty/strsignal.c with gcc 15
- nfsbuildtest: Fix gcc build failure in libiberty/strsignal.c with
- gcc 15 by patching the faulty |psignal()| prototype.
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- tests/nfsbuildtest/nfsbuildtest.ksh93 | 24 ++++++++++++++++++++++++
- 1 file changed, 24 insertions(+)
- diff --git a/tests/nfsbuildtest/nfsbuildtest.ksh93 b/tests/nfsbuildtest/nfsbuildtest.ksh93
- index ac5726e..2f21f81 100644
- --- a/tests/nfsbuildtest/nfsbuildtest.ksh93
- +++ b/tests/nfsbuildtest/nfsbuildtest.ksh93
- @@ -46,6 +46,28 @@ function gcc_createcache
- }
- +function patch_gcc13_1_0_libiberty_strsignal_psignal_prototype
- +{
- +{
- +cat <<EOF
- +diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c
- +index 36b41f17e12..de7a5317b60 100644
- +--- a/libiberty/strsignal.c
- ++++ b/libiberty/strsignal.c
- +@@ -551,7 +551,7 @@ followed by a newline.
- + #ifndef HAVE_PSIGNAL
- +
- + void
- +-psignal (int signo, char *message)
- ++psignal (int signo, const char *message)
- + {
- + if (signal_names == NULL)
- + {
- +EOF
- +} | patch -p1 --ignore-whitespace
- + return $?
- +}
- +
- function gcc_build
- {
- set -o xtrace
- @@ -122,6 +144,8 @@ function gcc_build
- # patch sources and configure build
- #
- + patch_gcc13_1_0_libiberty_strsignal_psignal_prototype
- +
- # original mkinstalldirs cannot handle UNC paths
- printf '#!/bin/sh\n# original mkinstalldirs cannot handle Cygwin UNC paths\nmkdir -p "$@"\nexit $?' >'mkinstalldirs'
- chmod a+x 'mkinstalldirs'
- --
- 2.45.1
msnfs41client: Patch for nfsbuildtest gcc build failure with Cygwin 3.7+gcc 15, 2025-04-24
Posted by Anonymous on Thu 24th Apr 2025 18:21
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.