From: Florian Weimer Date: Tue, 19 Dec 2023 06:56:42 +0000 (+0100) Subject: configure: Fix type of argument to backtrace_symbols X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a1d95c6f9de3973dd1e6da4f151de856e00e86;p=thirdparty%2Ffreeradius-server.git configure: Fix type of argument to backtrace_symbols 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. --- diff --git a/configure b/configure index e30360edf25..f9064dd52bb 100755 --- a/configure +++ b/configure @@ -14418,7 +14418,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 7d75c5cc3c1..14287b5e513 100644 --- a/configure.ac +++ b/configure.ac @@ -2163,7 +2163,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" ],[