[Zlib-devel] zlib 1.2.4.1 beta

Mark Adler madler at alumni.caltech.edu
Sun Mar 28 16:59:53 EDT 2010


On Mar 28, 2010, at 1:16 PM, Vincent Torri wrote:
> 1) is it possible to use the toplevel Makefile with MSYS/MinGW to build the DLL ?

I suspect so.  I believe that some message is being issued when "Checking for shared library support...".  Patches are welcome.

> 2) in win32/Makefile.gcc, the note line 23 says to change the dll name to zlib1.dll. But, line 27, the name is zlib1.dll

Actually the comment says you should change the name *from* zlib1.dll.

I don't know why it says that, so if the comment needs to be changed, please let me know.

> 4) When i try to compile zlib with Visual Studio Express 2008, all the projects are ignored. I have to change, in the properties of the solution, the platform (switched from Itanium to win32).

I will leave it to the studio meisters to figure that out.

> I also have to hack zconf.h so that unistd.h is not included.

Why?

> In zutil.h, off_t is used (line 166 for example). Maybe z_off_t should be used instead.
> 5) with ceGCC (for Windows CE), same problem with off_t. If i replace off_t by z_off_t, in zutil.h (lines 166 to 170), it compiles without error.

Fixed.

> gzlib.c:203: warning: no previous prototype for 'gzopen64'
> gzlib.c:274: warning: no previous prototype for 'gzseek64'
> gzlib.c:362: warning: no previous prototype for 'gztell64'
> gzlib.c:389: warning: no previous prototype for 'gzoffset64'

Fixed.

> minigzip.c:54: warning: redundant redeclaration of 'unlink'
> /usr/include/unistd.h:806: note: previous declaration of 'unlink' was here

Should be fixed.

> b) with mingw32ce (didn't try with mingw):
> 
> minigzip.c: In function 'main':
> minigzip.c:389: warning: implicit declaration of function 'setmode'


In minigzip.c is this:

#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
#  include <fcntl.h>
#  include <io.h>
#  define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
#else
#  define SET_BINARY_MODE(file)
#endif

So if setmode() isn't defined in fcntl.h (or io.h), then where is it defined?

Mark





More information about the Zlib-devel mailing list