Changes between Initial Version and Version 1 of Ticket #61662
- Timestamp:
- Nov 27, 2020, 6:06:40 AM (4 years ago)
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
toslrn @1.0.3: procmail
- Property Port slrn added; Slrn removed
-
Ticket #61662 – Description
initial v1 1 1 Building Slrn 1.0.3 fails with this log message: 2 2 3 {{{ 3 4 :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] 4 5 :info:build VA_COPY(ap1, ap); 5 6 :info:build ^ 7 }}} 6 8 7 9 The 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()`. … … 9 11 The 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: 10 12 13 {{{ 11 14 configure:8294: checking for an implementation of va_copy() 12 15 configure: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]16 conftest.c:91:4: c with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] 14 17 exit (1); 15 18 ^ 16 19 conftest.c:91:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 20 }}}