Artifacts Associated With Ticket b89209f5cd
Ticket change [a720c2ad44] (rid 190659) by ralfixx on 2021-01-04 18:05:16:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When compiling with Visual Studio 2019 on Windows, using the Msys shell to run the configure script, I get an error: /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit ... make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo" ... cl -nologo [...] tclAppInit.obj tcl86.dll.a tclstub86.lib [...] \ tclsh.res -Fe"tclsh86.exe" -link [...] cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei "tcl86.dll.a", Objektdatei wird angenommen. LINK : fatal error LNK1181: Eingabedatei "tcl86.dll.a" kann nicht geƶffnet werden. Reason for the error is the "tcl86.dll.a" argument which is wrong IMHO (it should be tcl86.lib, see below). The same process runs fine with 8.6.10: /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit ... make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo" ... cl -nologo [...] tclAppInit.obj tcl86.lib tclstub86.lib [...] \ tclsh.res -Fe"tclsh86.exe" -link [...] As you can see, here "tcl86.lib" is used. Reason is to be found in the win/configure script, where the single line from 8.6.10 eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\"" was replaced in 8.6.11 by if test ${SHARED_BUILD} = 0 ; then eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\"" else eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${DLLSUFFIX}.a\"" fi But this is plain wrong when using the Visual Studio compiler. Unfortunately I'm not fluent in configure, so I can't provide a patch to resolve this. - foundin initialized to: "8.6.11"
- is_private initialized to: "0"
- login: "ralfixx"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "ralfixx"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "compilation error Windows 10 / Visual Studio 2019"
- type initialized to: "Bug"
Ticket change [b6990ccea3] (rid 190660) by jan.nijtmans on 2021-01-04 19:22:29:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [4ce9823e1a] (rid 190691) by ralfixx on 2021-01-05 13:48:05:
- icomment:
There is a section in win/configure.in which addresses the same issue for zlib: AS_IF([test "$GCC" == "yes"],[ AC_SUBST(ZLIB_LIBS,[\${ZLIB_DIR_NATIVE}/win64/libz.dll.a]) ], [ AC_SUBST(ZLIB_LIBS,[\${ZLIB_DIR_NATIVE}/win64/zdll.lib]) ]) IMHO something along these lines should be applied to TCL_LIB_FILE, too. - login: "ralfixx"
- mimetype: "text/plain"
- icomment:
Ticket change [8907a738d5] (rid 190706) by ralfixx on 2021-01-05 16:22:56:
- icomment:
Maybe this patch should do it: diff -u tcl8.6.11/win/configure.in\~ tcl8.6.11/win/configure.in --- tcl8.6.11/win/configure.in~ 2020-12-11 18:46:23.000000000 +0100 +++ tcl8.6.11/win/configure.in 2021-01-05 17:15:36.311792936 +0100 @@ -311,7 +311,7 @@ eval "TCL_BUILD_STUB_LIB_PATH=\"`$CYGPATH $(pwd)`/${TCL_STUB_LIB_FILE}\"" eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\"" -if test ${SHARED_BUILD} = 0 ; then +if test ${SHARED_BUILD} = 0 -o "$GCC" != "yes" ; then eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\"" else eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${DLLSUFFIX}.a\"" Diff finished. Tue Jan 5 17:15:43 2021 - login: "ralfixx"
- mimetype: "text/plain"
- icomment:
Ticket change [c348d76258] (rid 191010) by jan.nijtmans on 2021-01-13 10:55:25:
- closedate changed to: "2459227.95515309"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed now in all active branches. Thanks for the report and patch!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"