From 00ac4b34406552b4fbca786be59b2983b7f58669 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 19 Dec 2023 13:53:29 +0000 Subject: gentoo auto-resync : 19:12:2023 - 13:53:29 --- .../files/freeradius-3.2.3-configure-c99.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 net-dialup/freeradius/files/freeradius-3.2.3-configure-c99.patch (limited to 'net-dialup/freeradius/files') diff --git a/net-dialup/freeradius/files/freeradius-3.2.3-configure-c99.patch b/net-dialup/freeradius/files/freeradius-3.2.3-configure-c99.patch new file mode 100644 index 000000000000..395e97d84851 --- /dev/null +++ b/net-dialup/freeradius/files/freeradius-3.2.3-configure-c99.patch @@ -0,0 +1,38 @@ +https://src.fedoraproject.org/rpms/freeradius/c/1793f410aa789704b5ac0be9cf7d0eaece906d1a?branch=rawhide +https://github.com/FreeRADIUS/freeradius-server/pull/5246 + +The backtrace_symbols function expects a pointer to an array of void * +values, not a pointer to an array of a single element. Removing the +address operator ensures that the right type is used. + +This avoids an unconditional failure of this probe with compilers that +treat incompatible pointer types as a compilation error. + +Submitted upstream: + +diff --git a/configure b/configure +index ed01ee2bdd912f63..1e6d2284779cdd58 100755 +--- a/configure ++++ b/configure +@@ -13390,7 +13390,7 @@ main (void) + { + + void *sym[1]; +- backtrace_symbols(&sym, sizeof(sym)) ++ backtrace_symbols(sym, sizeof(sym)) + ; + return 0; + } +diff --git a/configure.ac b/configure.ac +index 76320213b51d7bb4..6a689711d6c90483 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2168,7 +2168,7 @@ if test "x$ac_cv_header_execinfo_h" = "xyes"; then + #include + ]], [[ + void *sym[1]; +- backtrace_symbols(&sym, sizeof(sym)) ]])],[ ++ backtrace_symbols(sym, sizeof(sym)) ]])],[ + AC_MSG_RESULT(yes) + ac_cv_lib_execinfo_backtrace_symbols="yes" + ],[ -- cgit v1.2.3