Skip to content
Tcl Source Code Artifact [acfd6c1ed3]
Login

Artifact [acfd6c1ed3]

Artifact acfd6c1ed3c94856bc2b9fa7f84fb8043e416f565e01b8d233ba9adbd64575d9:

Ticket change [acfd6c1ed3] - New ticket [9080d6a8719acefd|9080d6a871] <i>Build fix for tcl on macOS on Apple Silicon</i>. by jeremyhu on 2020-06-24 05:50:57.
D 2020-06-24T05:50:57.449
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Implicit\sfunctions\sare\serrors\son\sdarwin/arm64,\sso\sthe\sfollowing\schanges\sare\sneeded\sto\stcl's\sconfigure\sscripts\s(in\saddition\sto\sthe\schanges\sin\shttps://core.tcl-lang.org/tclconfig/tktview/eb3db1c7655f5bdc9e8c511d1fbe0ca8fed70c00)\sto\sbuild\scorrectly\son\sdarwin/arm64:\r\n\r\n\r\ndiff\s--git\sa/vendor/tcl8.5.19/unix/configure.in\sb/vendor/tcl8.5.19/unix/configure.in\r\nindex\se4255b6df..af2a26a14\s100755\r\n---\sa/unix/configure.in\r\n+++\sb/unix/configure.in\r\n@@\s-453,6\s+453,7\s@@\sfi\r\n\sAC_CACHE_CHECK([for\sa\sputenv()\sthat\scopies\sthe\sbuffer],\stcl_cv_putenv_copy,\s[\r\n\s\s\s\s\sAC_TRY_RUN([\r\n\s\t#include\s<stdlib.h>\r\n+\t#include\s<string.h>\r\n\s\t#define\sOURVAR\s"havecopy=yes"\r\n\s\tint\smain\s(int\sargc,\schar\s*argv[])\r\n\s\t{\r\ndiff\s--git\sa/vendor/tcl8.5.19/unix/tcl.m4\sb/vendor/tcl8.5.19/unix/tcl.m4\r\nindex\sa7faae550..f482460ce\s100644\r\n---\sa/unix/tcl.m4\r\n+++\sb/unix/tcl.m4\r\n@@\s-2587,6\s+2587,7\s@@\sAC_DEFUN([SC_BUGGY_STRTOD],\s[\r\n\s\s\s\s\sif\stest\s"$tcl_strtod"\s=\s1;\sthen\r\n\s\tAC_CACHE_CHECK([for\sSolaris2.4/Tru64\sstrtod\sbugs],\stcl_cv_strtod_buggy,[\r\n\s\t\s\s\s\sAC_TRY_RUN([\r\n+\t\t#include\s<stdlib.h>\r\n\s\t\textern\sdouble\sstrtod();\r\n\s\t\tint\smain()\s{\r\n\s\t\t\s\s\s\schar\s*infString="Inf",\s*nanString="NaN",\s*spaceString="\s";\r\n@@\s-2864,7\s+2865,10\s@@\sAC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[\r\n\s\s\s\s\sAC_CHECK_FUNC($1,\stcl_ok=1,\stcl_ok=0)\r\n\s\s\s\s\sif\stest\s["$tcl_ok"]\s=\s1;\sthen\r\n\s\tAC_CACHE_CHECK([proper\s]$1[\simplementation],\s[tcl_cv_]$1[_unbroken],\r\n-\t\s\s\s\sAC_TRY_RUN([[int\smain()\s{]$2[}]],[tcl_cv_]$1[_unbroken]=ok,\r\n+\t\s\s\s\sAC_TRY_RUN([[\r\n+#include\s<stdlib.h>\r\n+#include\s<string.h>\r\n+int\smain()\s{]$2[}]],[tcl_cv_]$1[_unbroken]=ok,\r\n\s\t\t[tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown))\r\n\s\tif\stest\s["$tcl_cv_]$1[_unbroken"]\s=\s"ok";\sthen\r\n\s\t\s\s\s\stcl_ok=1
J foundin 8.5.19
J is_private 0
J login jeremyhu
J priority 5\sMedium
J private_contact fcfadcddfa754046fef14eba5011089d1c7ac526
J resolution None
J severity Minor
J status Open
J submitter jeremyhu
J subsystem -\sNew\sBuiltin\sCommands
J title Build\sfix\sfor\stcl\son\smacOS\son\sApple\sSilicon
J type Bug
K 9080d6a8719acefd900daf3e8105d27ad7780b5a
U jeremyhu
Z 6569a04bc2db5cf1796b52c4279cef02