[Zlib-devel] Fwd: zlib 1.2.4 linker with gz functions
John Bowler
jbowler at frontiernet.net
Sun Apr 18 13:04:04 EDT 2010
From: "Devadatta, Shubha" <Shubha.Devadatta at wardrop.com>
> I just downloaded the zlib version 1.2.4. I use the “ gz” functions
>to avoid allocating RAM. However I am not able to link with the new
>zlib.lib.. I have linker errors for unresolved symbols for “gzopen”
>gzread and gzclose.. gzwrite seems to be resolving w/o any problem..
I built 1.2.4 on MSYS/MinGW with -f win32/makefile.gcc; make test is fine. I copied the official 'zlib.lib' to libz.a, deleted example.exe and repeated the 'make -f win32/makefile.gcc test', apart from some warnings about 'unrecognized .drectve' it worked fine (and it says it calls 'gzread()').
I repeated with ./configure --static (because the win32 makefile doesn't set _LARGEFILE64_SOURCE, and this must have something to do with the problem). Everything links fine - so I can't reproduce the gzopen problem - but example64.exe does fail with 'gzread err:'.
Since win32/makefile.gcc doesn't build example64.exe I don't know if this is something to do with the configure build. What does seem certain is that it is related to the '64' functions, because gzopen, gzread and gzclose all exist in '64' versions but gzwrite does not.
Note that this is 1.2.4 - I can't repeat on 1.2.4.4 because there is no official zlib.lib yet.
John Bowler <jbowler at acm.org>
More information about the Zlib-devel
mailing list