Artifacts Associated With Ticket b5ced5865b
Ticket change [bc5f523063] (rid 140498) by apnadkarni on 2014-10-31 15:47:20:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tried a Windows Tcl build using mingw_w64 / gcc 4.8.1 on Tcl 8.6.3RC1. Build fails with following errors: tclZlib.o:tclZlib.c:(.text+0x3d): undefined reference to `inflateEnd' tclZlib.o:tclZlib.c:(.text+0xb3): undefined reference to `deflateEnd' tclZlib.o:tclZlib.c:(.text+0x439): undefined reference to `zError' tclZlib.o:tclZlib.c:(.text+0x548): undefined reference to `deflateSetDictionary' .... whole bunch more undefined zlib syms The build line tries to link /c/src/tcl-tk/863rc1/tcl/compat/zlib/win32/zdll.lib The 64-bit build (enabled with --enable-64bit builds fine. But that links with compat/zlib/win64/libz.dll.a, not zdll.lib Not familiar with autoconf at all so someone else needs to look at it. /Ashok
- foundin initialized to: "8.6.3RC1"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1"
- type initialized to: "Bug"
Ticket change [f7531d4182] (rid 140499) by jan.nijtmans on 2014-10-31 16:05:29:
- icomment:
My MinGW-w64 (32-bit) works fine, and it links with zdll.lib as just fine: i686-w64-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 /Localdata/workspace/tcl8.6/compat/zlib/win32/zdll.lib \ tclsh.res.o -o tclsh86.exe -mconsole -pipe -static-libgcc -municode No problem. Actually zdll.lib is constructed using VS2012, the binutils supplied with MinGW-w64 can link with this just fine (at least mine does). Therefore I didn't bother supplying a 32-bit libz.dll.a (for 64-bit that's different....) Actually, I'm using gcc 4.8.3 (but I don't believe that makes any difference) $ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 4.8.3 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [01faf2f2a5] (rid 140500) by jan.nijtmans on 2014-10-31 16:06:05:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [87e8ad5db0] (rid 140543) by apnadkarni on 2014-11-04 14:27:55:
- icomment:
My binutils (nm and friends) do not seem to understand zdll.lib though my Mingw_w64 build is quite recent (downloaded within few weeks). This is not really an issue for me personally since I rarely use mingw anyways and was only trying to verify the 863 rc1 build for Windows. Logged the issue as I was encouraged to do so on the chat in case there are bigger issues involved.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [b65c656dd4] (rid 140548) by jan.nijtmans on 2014-11-04 16:06:15:
- icomment:
Does [http://core.tcl.tk/tcl/info/f4b66e37c780769fd29a2e7449ffa20c5ecd7818|f4b66e37c7] work for you? Explanation: Newer MinGW versions should be able to link directly to zlib1.dll, that could be an alternative if some binutils versions are built without MS format support. For now 64-bit MinGW is left as-is, maybe that should switch as well.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [356446e2a3] (rid 140586) by apnadkarni on 2014-11-06 17:31:04:
- icomment:
OK, with your patch, .../configure --prefix=blah blan make works which it did not before and produces a 64-bit binary. I could not verify 32-bit builds as my installation seems to be missing 32-bit libraries. /Ashok
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [1af5daed5b] (rid 200226) by jan.nijtmans on 2022-04-18 17:10:28:
- closedate changed to: "2459688.21560583"
- closer changed to: "jan.nijtmans"
- icomment:
Closing, since the build now works with x86, x86-64 and also arm64
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"