The diff below lets the configure script detect a usable stdarg
implementation and fixes build with clang-16.  However the remaining
compile warnings are clearly alarming and I think the port is a good
candidate for the Attic.  ok to drop the port?


Index: patches/patch-support_configure
===================================================================
RCS file: /home/cvs/ports/net/irc/patches/patch-support_configure,v
diff -u -p -r1.2 patch-support_configure
--- patches/patch-support_configure     11 Mar 2022 19:46:09 -0000      1.2
+++ patches/patch-support_configure     10 Nov 2023 19:02:39 -0000
@@ -1,5 +1,6 @@
---- support/configure.orig     Tue Jun  6 16:35:29 2000
-+++ support/configure  Wed Jul 20 08:16:35 2011
+Index: support/configure
+--- support/configure.orig
++++ support/configure
 @@ -246,7 +246,7 @@ EOF
    -logdir | --logdir | --logdi | --logd)
      ac_prev=logdir ;;
@@ -18,3 +19,13 @@
    echo "$ac_t""no" 1>&6
  else
    if uname -r 2>/dev/null | grep "^5" >/dev/null; then
+@@ -3891,7 +3891,8 @@ int level2(char *data, int rounds, char *format, va_li
+     return level1(data, format, ap);
+   else {
+     if(rounds == 2) {
+-      va_list ap2 = ap;
++      va_list ap2;
++      va_copy(ap2, ap);
+       char *arg = va_arg(ap2, char *);
+       strcpy(buf1, arg);
+     }


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to