pastebin - collaborative debugging tool
rovema.kpaste.net RSS


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

  1. From bccc29856fa0659b3e31c5bbc9233609e564729a Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Thu, 24 Apr 2025 18:24:04 +0200
  4. Subject: [PATCH] tests: nfsbuildtest: Fix gcc build failure in
  5.  libiberty/strsignal.c with gcc 15
  6.  
  7. nfsbuildtest: Fix gcc build failure in libiberty/strsignal.c with
  8. gcc 15 by patching the faulty |psignal()| prototype.
  9.  
  10. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  11. ---
  12. tests/nfsbuildtest/nfsbuildtest.ksh93 | 24 ++++++++++++++++++++++++
  13.  1 file changed, 24 insertions(+)
  14.  
  15. diff --git a/tests/nfsbuildtest/nfsbuildtest.ksh93 b/tests/nfsbuildtest/nfsbuildtest.ksh93
  16. index ac5726e..2f21f81 100644
  17. --- a/tests/nfsbuildtest/nfsbuildtest.ksh93
  18. +++ b/tests/nfsbuildtest/nfsbuildtest.ksh93
  19. @@ -46,6 +46,28 @@ function gcc_createcache
  20.  }
  21.  
  22.  
  23. +function patch_gcc13_1_0_libiberty_strsignal_psignal_prototype
  24. +{
  25. +{
  26. +cat <<EOF
  27. +diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c
  28. +index 36b41f17e12..de7a5317b60 100644
  29. +--- a/libiberty/strsignal.c
  30. ++++ b/libiberty/strsignal.c
  31. +@@ -551,7 +551,7 @@ followed by a newline.
  32. + #ifndef HAVE_PSIGNAL
  33. +
  34. + void
  35. +-psignal (int signo, char *message)
  36. ++psignal (int signo, const char *message)
  37. + {
  38. +   if (signal_names == NULL)
  39. +     {
  40. +EOF
  41. +} | patch -p1 --ignore-whitespace
  42. +    return $?
  43. +}
  44. +
  45.  function gcc_build
  46.  {
  47.         set -o xtrace
  48. @@ -122,6 +144,8 @@ function gcc_build
  49.         # patch sources and configure build
  50.         #
  51.  
  52. +       patch_gcc13_1_0_libiberty_strsignal_psignal_prototype
  53. +
  54.         # original mkinstalldirs cannot handle UNC paths
  55.         printf '#!/bin/sh\n# original mkinstalldirs cannot handle Cygwin UNC paths\nmkdir -p "$@"\nexit $?' >'mkinstalldirs'
  56.         chmod a+x 'mkinstalldirs'
  57. --
  58. 2.45.1

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at