Changes between Initial Version and Version 1 of Ticket #61662


Ignore:
Timestamp:
Nov 27, 2020, 6:06:40 AM (4 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

The only bug we probably need to fix is that the configure script doesn't include the required headers. This is a well-known situation with Xcode 12.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61662

    • Property Keywords bigsur catalina added
    • Property Version changed from to 2.6.4
    • Property Summary changed from Building Slrn 1.0.3 fails on macOS Big Sur to slrn @1.0.3: procmail
    • Property Port slrn added; Slrn removed
  • Ticket #61662 – Description

    initial v1  
    11Building Slrn 1.0.3 fails with this log message:
    22
     3{{{
    34:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_news_slrn/slrn/work/slrn-1.0.3/src/misc.c:376:4: error: implicit declaration of function 'VA_COPY' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    45:info:build    VA_COPY(ap1, ap);
    56:info:build    ^
     7}}}
    68
    79The reason seems to be that Slrn fails to build when it is configured as if the system has no support for `va_copy()`. However macOS Big Sur actually supports `va_copy()`. We seem to have two bugs here: one in Slrn itself for failing to build in this specific configuration and a further one in the configure script that fails to properly detect support for `va_copy()`.
     
    911The reason for the latter problem is a bug in the configure script. The check uses `exit()` without properly including the necessary header file `stdlib.h` as indicated by configure in its config.log:
    1012
     13{{{
    1114configure:8294: checking for an implementation of va_copy()
    1215configure:8323: /usr/bin/clang -o conftest -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 conftest.c  >&5
    13 conftest.c:91:4: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
     16conftest.c:91:4: c with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
    1417          exit (1);
    1518          ^
    1619conftest.c:91:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
     20}}}