Ticket UUID: | 6f22c7a1fc97841d58a8d5fb2dc40bf82b839af6 | |||
Title: | Cannot load sampleextension when built with mingw64 | |||
Type: | Bug | Version: | 9.0 | |
Submitter: | apnadkarni | Created on: | 2023-08-01 04:12:47 | |
Subsystem: | - New Builtin Commands | Assigned To: | jan.nijtmans | |
Priority: | 5 Medium | Severity: | Important | |
Status: | Open | Last Modified: | 2023-08-01 08:21:16 | |
Resolution: | None | Closed By: | nobody | |
Closed on: | ||||
Description: |
Trying to load the sampleextension into a tclsh built with MingW64, I get the following error:
This works fine when built with either VC++ or with gcc on Ubuntu. | |||
User Comments: |
jan.nijtmans added on 2023-08-01 08:21:16:
I'm also not familiar with this part of "autoconf" My recommendation would be to install Tcl 9.0 in the MingW64 environment first. Then, --with-tcl is not necessary any more. That's what most people (who don't need Tcl8 and Tcl9 alongside) - hopefully - will do. apnadkarni added on 2023-08-01 08:00:44: Right, I realized as much but the question is why this happens. Both Ubuntu and Mingw64 have a system Tcl installed but this error only shows up on Mingw64. In both cases Tracing through it appears this is caused by the following fragment from the
On mingw, the system picks up /etc/config.site resulting in It does not make sense to me as that the site path is given preference over the path specified via Using jan.nijtmans added on 2023-08-01 06:49:59: This can only happen if the compile somehow picked up a tcl.h header file from 8.6 or 8.7, installed somewhere in the MingW64 environment. Hopefully [3317aec2c5aef965|this] can prevent that happening again (this protection was already built into 8.7, now backported to 8.6). |