On 9/19/20 12:45 PM, Adam Stewart wrote: > I recently updated to Xcode 12 on macOS 10.15.6. Xcode 12 comes with Apple > Clang 12.0.0 (LLVM Clang 10.0.0), which fails to compile bash 5.0.18. This > can be reproduced with the typical `./configure; make; make install` logic.
Thanks for the report. I just upgraded to Xcode 12 myself. This was fixed about a year ago in the bash devel branch, and the fix is in bash-5.1, currently in beta. If you want to test the fix yourself, I've attached a patch to aclocal.m4. You'll have to run `autoconf' to regenerate `configure', then re-run `configure'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
*** ../bash-5.0-patched/aclocal.m4 2018-12-05 09:31:34.000000000 -0500 --- aclocal.m4 2020-09-21 09:23:20.000000000 -0400 *************** *** 301,305 **** AC_CACHE_VAL(bash_cv_have_strsignal, [AC_TRY_LINK([#include <sys/types.h> ! #include <signal.h>], [char *s = (char *)strsignal(2);], bash_cv_have_strsignal=yes, bash_cv_have_strsignal=no)]) --- 301,306 ---- AC_CACHE_VAL(bash_cv_have_strsignal, [AC_TRY_LINK([#include <sys/types.h> ! #include <signal.h> ! #include <string.h>], [char *s = (char *)strsignal(2);], bash_cv_have_strsignal=yes, bash_cv_have_strsignal=no)])