Artifacts Associated With Ticket 2605263
Ticket change [9052cb4cbc] (rid 120432) by nijtmans on 2009-02-16 11:46:43:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Currently, on UNIX, the configure script checks if the system has a suitable built-in zlib library. If so, the external library is used, otherwise the one from compat. On win32, there is an official zlib build that has two advantages compared to the current situation: - The basic compression functions come from hand-optimized assembler code, so it is faster. - The library has the form of a dll, so when a better zlib version comes out, it's just a matter of replacing this dll with a newer one and everything will still work. This should only be used for win32 (not for win64) and only with --enable-shared: For starpacks we don't want to depend on an external zlib1.dll, which is not guaranteed to be installed. Rule: only depend on zlib1.dll when we depend on tcl86.dll already. There is a disadvantage as well: The official build is missing two functions which (by accident) are not exported from the dll although they are part of the official API. There exists a hack for that.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "57. zlib"
- title initialized to: "use official win32 zlib build."
- type initialized to: "RFE"
Ticket change [f71e734ad4] (rid 130436) by dkf on 2009-02-16 20:33:47:
- icomment:
If we're having to hack around faults in the official build, that negates the benefits of using it since we can build our own easily enough. Since the official build is broken, we can close this bug as a "won't fix" until that is fixed.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [cab219e7ed] (rid 95403) by nijtmans on 2009-02-16 20:40:17:
- icomment:
Yes, agreed. However, in this case the 'hack' only consists of copying the missing functions (of only a few lines each) in tclZlib.c. So, the 'hack' is 'easy enough' as well. Given the fact that the official zlib build is faster then ours, I am inclined to fix this (I already have tested the fix locally, so I am confident enough about it!). However, I encourage anyone to give more arguments pro or contra. Thanks, Donal!
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [6a0bb8ad24] (rid 128080) by nijtmans on 2009-02-17 06:07:52:
- icomment:
Fixed for win/Makefile, win/makefile.vc still to be done. Tested with both msvc and mingw32. For related install scripts (Activetcl ???), this change means that zlib1.dll must be installed side by side with tcl86.dll as a companion. For tkImg, I am planning to make the same change, so zlib1.dll will be used by both tcl and tkImg. And there are a lot other applications which distribute the same zlib1.dll.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "nijtmans"
- icomment:
Ticket change [a08413d769] (rid 96828) by dkf on 2009-02-17 16:47:43:
- icomment:
You need to ensure that you use configure.in to detect whether a zlib1.dll is present and has all the functions required. I advise adapting what the Unix configure.in does; that already spots the function that tends to be the issue when it comes to versioning...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [14b77a4421] (rid 124443) by nijtmans on 2009-02-17 18:10:31:
- icomment:
On Windows, zlib1.dll is never present on the system. It comes with the applications that need it. As soon as there exists an official zlib1.dll which doesn't need the hack any more, you are right that your suggestion would be better. At this moment I see more risks in doing that than that it benefits. It can always be added in the future.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [ed68519218] (rid 103875) by nijtmans on 2009-07-08 15:14:33:
- closedate changed to: "2009-07-08T08:14:33"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Already in the build, so can be closed now
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"