https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8204

            Bug ID: 8204
           Summary: Please use more recent autoconf for releases
           Product: Spamassassin
           Version: 4.0.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamc/spamd
          Assignee: dev@spamassassin.apache.org
          Reporter: fwei...@redhat.com
  Target Milestone: Undefined

SpamAssassin 4.0 was released with a configure script generated by autoconf
2.59, according to its file header. This autoconf version generates shell code
that does not set the STDC_HEADERS macro correctly on compilers which do
support implicit function declarations by default (Clang 16 and GCC 14, for
example).

Alternatively, you can patch the generated script with the following patch:

diff -ur Mail-SpamAssassin-4.0.0.orig/spamc/configure
Mail-SpamAssassin-4.0.0/spamc/configure
--- Mail-SpamAssassin-4.0.0.orig/spamc/configure        2022-12-14
07:03:27.000000000 +0100
+++ Mail-SpamAssassin-4.0.0/spamc/configure     2023-12-19 14:34:05.414644959
+0100
@@ -2119,7 +2119,7 @@
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   for ac_declaration in \
-   '' \
+   '#include <stdlib.h>' \
    'extern "C" void std::exit (int) throw (); using std::exit;' \
    'extern "C" void std::exit (int); using std::exit;' \
    'extern "C" void exit (int) throw ();' \
@@ -2624,8 +2624,8 @@
   for (i = 0; i < 256; i++)
     if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
-      exit(2);
-  exit (0);
+      return 2;
+  return 0;
 }
 _ACEOF
 rm -f conftest$ac_exeext

There is no direct autoconf fix for this because the entire logic around
declaring std::exit has been removed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to