TEA (tclconfig) Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: eb3db1c7655f5bdc9e8c511d1fbe0ca8fed70c00
Title: Missing include in tcl.m4 causes configure failure in macOS on Apple Silicon
Type: Bug Version:
Submitter: jeremyhu Created on: 2020-06-24 05:35:50
Subsystem: - New Builtin Commands Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2020-06-24 09:32:00
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2020-06-24 09:32:00
Implicit function declarations are errors on darwin/arm64.  This patch adds a missing include to one of the AC_TRY_RUNs in tcl.m4:

--- a/tcl.m4
+++ b/tcl.m4
@@ -2584,6 +2584,7 @@ AC_DEFUN([TEA_BUGGY_STRTOD], [
     if test "$tcl_strtod" = 1; then
 	AC_CACHE_CHECK([for Solaris2.4/Tru64 strtod bugs], tcl_cv_strtod_buggy,[
+		#include <stdlib.h>
 		extern double strtod();
 		int main() {
 		    char *infString="Inf", *nanString="NaN", *spaceString=" ";
User Comments: jan.nijtmans added on 2020-06-24 09:32:00:
Fixed in trunk. Thanks for the report and patch!