Skip to content
Tcl Source Code View Ticket
Login

View Ticket

unix/tcl.m4: implicit declaration of exit() in timezone variable checks

Closed / Fixed15845d9fd8accdf193b85d54498bfa48dcd275a3Created 5 years agoUpdated 5 years ago
Descriptionwiki2021-11-06 04:18:58
The checks for long timezone variable and time_t timezone variable may both erroneously fail due to compilers which by default use -Werror=implicit-function-declaration (e.g. Xcode 12 and newer on macOS, as required by ARM64 ABI), because the exit() function is used without #include <stdlib.h>.

To correct this: in unix/tcl.m4, either stdlib.h should be included for these tests, or return 0; used instead of exit (0);. Then unix/configure should then be regenerated to pick up the changes.

Referenced by2
  • 4dd03c637eClosed ticket [d550f4837a]: Undeclared exit function in tcl.m4 plus 6 other changes ticket2022-11-18 10:57:00
  • 185912afeaFix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit() in timezone variable checks check-in2021-11-07 21:34:08
jan.nijtmanswiki2021-11-07 21:44:45

Fixed in all branches (8.6 and up) now. Thanks for the report and for the suggested fix!

Log in (anonymous is fine) to add a comment.