The configure script tries to detect if -Werror is set. Only the
incompatible pointer assignment is a now hard error with llvm22,
so configure bails out with

  configure is not able to compile programs with warnings.  Please
  remove all offending options like -Werror from the CFLAGS and
  CPPFLAGS variables and run configure again."

Bypassing this allows the build to succeed.

Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/x11/fvwm2/patches/patch-configure,v
diff -u -p -r1.7 patch-configure
--- patches/patch-configure     24 Nov 2022 10:38:35 -0000      1.7
+++ patches/patch-configure     23 May 2026 15:10:26 -0000
@@ -1,6 +1,15 @@
 Index: configure
 --- configure.orig
 +++ configure
+@@ -7645,7 +7645,7 @@ main (void)
+ {
+ int i; static j; int *p; char *c;
+   switch (*p = p = *c) { case 0: printf("%Q", c, p); }
+-  *c = &i; c = p;
++  *c = &i;
+   while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
+ 
+   ;
 @@ -12109,7 +12109,7 @@ then :
  else $as_nop
  

Reply via email to