Skip to content
Tcl Source Code History Of Ticket b5ced5865b
Login

History Of Ticket b5ced5865b

Artifacts Associated With Ticket b5ced5865b

  1. Ticket change [bc5f523063] (rid 140498) by apnadkarni on 2014-10-31 15:47:20:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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
      
    5. foundin initialized to: "8.6.3RC1"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "apnadkarni"
    13. subsystem initialized to: "53. Configuration and Build Tools"
    14. title initialized to: "8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1"
    15. type initialized to: "Bug"
  2. Ticket change [f7531d4182] (rid 140499) by jan.nijtmans on 2014-10-31 16:05:29:

    1. 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.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [01faf2f2a5] (rid 140500) by jan.nijtmans on 2014-10-31 16:06:05:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  4. Ticket change [87e8ad5db0] (rid 140543) by apnadkarni on 2014-11-04 14:27:55:

    1. 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.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  5. Ticket change [b65c656dd4] (rid 140548) by jan.nijtmans on 2014-11-04 16:06:15:

    1. 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.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [356446e2a3] (rid 140586) by apnadkarni on 2014-11-06 17:31:04:

    1. 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
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  7. Ticket change [1af5daed5b] (rid 200226) by jan.nijtmans on 2022-04-18 17:10:28:

    1. closedate changed to: "2459688.21560583"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Closing, since the build now works with x86, x86-64 and also arm64
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"