Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: acfd6c1ed3c94856bc2b9fa7f84fb8043e416f565e01b8d233ba9adbd64575d9
Ticket: 9080d6a8719acefd900daf3e8105d27ad7780b5a
Build fix for tcl on macOS on Apple Silicon
User & Date: jeremyhu on 2020-06-24 05:50:57
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Implicit functions are errors on darwin/arm64, so the following changes are needed to tcl's configure scripts (in addition to the changes in https://core.tcl-lang.org/tclconfig/tktview/eb3db1c7655f5bdc9e8c511d1fbe0ca8fed70c00) to build correctly on darwin/arm64:
    
    
    diff --git a/vendor/tcl8.5.19/unix/configure.in b/vendor/tcl8.5.19/unix/configure.in
    index e4255b6df..af2a26a14 100755
    --- a/unix/configure.in
    +++ b/unix/configure.in
    @@ -453,6 +453,7 @@ fi
     AC_CACHE_CHECK([for a putenv() that copies the buffer], tcl_cv_putenv_copy, [
         AC_TRY_RUN([
     	#include <stdlib.h>
    +	#include <string.h>
     	#define OURVAR "havecopy=yes"
     	int main (int argc, char *argv[])
     	{
    diff --git a/vendor/tcl8.5.19/unix/tcl.m4 b/vendor/tcl8.5.19/unix/tcl.m4
    index a7faae550..f482460ce 100644
    --- a/unix/tcl.m4
    +++ b/unix/tcl.m4
    @@ -2587,6 +2587,7 @@ AC_DEFUN([SC_BUGGY_STRTOD], [
         if test "$tcl_strtod" = 1; then
     	AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[
     	    AC_TRY_RUN([
    +		#include <stdlib.h>
     		extern double strtod();
     		int main() {
     		    char *infString="Inf", *nanString="NaN", *spaceString=" ";
    @@ -2864,7 +2865,10 @@ AC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[
         AC_CHECK_FUNC($1, tcl_ok=1, tcl_ok=0)
         if test ["$tcl_ok"] = 1; then
     	AC_CACHE_CHECK([proper ]$1[ implementation], [tcl_cv_]$1[_unbroken],
    -	    AC_TRY_RUN([[int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok,
    +	    AC_TRY_RUN([[
    +#include <stdlib.h>
    +#include <string.h>
    +int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok,
     		[tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown))
     	if test ["$tcl_cv_]$1[_unbroken"] = "ok"; then
     	    tcl_ok=1
    
  5. foundin changed to: "8.5.19"
  6. is_private changed to: "0"
  7. login: "jeremyhu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "fcfadcddfa754046fef14eba5011089d1c7ac526"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jeremyhu"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Build fix for tcl on macOS on Apple Silicon"
  16. type changed to: "Bug"