Commit 7a3f649719 for perl

commit 7a3f6497197bc8794c5c9136edc809d63d1b5988
Author: Yves Orton <demerphq@gmail.com>
Date:   Sat Nov 14 14:46:32 2026 +0100

    Configure: avoid builtin warnings in libc symbol probes

    The generic declarations conflict with GCC's builtin signatures. With
    -Werror this makes Configure report functions like fork as missing. Use
    -fno-builtin for these probes.

diff --git a/Configure b/Configure
index ce1d27a300..411e341797 100755
--- a/Configure
+++ b/Configure
@@ -6806,7 +6806,14 @@ set d_cplusplus
 eval $setvar

 : is a C symbol defined?
+# These probes use generic declarations to check whether symbols link.
+# Disable builtins to avoid warnings about mismatched function signatures.
 csym='tlook=$1;
+csymflags=;
+case "$gccversion" in
+"") ;;
+*) csymflags="-fno-builtin";;
+esac;
 case "$3" in
 -v) tf=libc.tmp; tdc="";;
 -a) tf=libc.tmp; tdc="[]";;
@@ -6829,13 +6836,13 @@ yes)
 			tval=true;
 		elif $test "$mistrustnm" = compile -o "$mistrustnm" = run; then
 			echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main(int argc, char **argv) { if(p() && p() != (void *)argv[0]) return(0); else return(1); }"> try.c;
-			$cc -o try $optimize $ccflags $ldflags try.c >/dev/null 2>&1 $libs && tval=true;
+			$cc -o try $optimize $ccflags $csymflags $ldflags try.c >/dev/null 2>&1 $libs && tval=true;
 			$test "$mistrustnm" = run -a -x try && { $run ./try$_exe >/dev/null 2>&1 || tval=false; };
 			$rm_try;
 		fi;
 	else
 		echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main(int argc, char **argv) { if(p() && p() != (void *)argv[0]) return(0); else return(1); }"> try.c;
-		$cc -o try $optimize $ccflags $ldflags try.c $libs >/dev/null 2>&1 && tval=true;
+		$cc -o try $optimize $ccflags $csymflags $ldflags try.c $libs >/dev/null 2>&1 && tval=true;
 		$rm_try;
 	fi;
 	;;