Share

Info-ZIP project

Tracker: Bugs

5 Unzip 6.0c fixes for MinGW - ID: 1816742
Last Update: Settings changed ( willus )

I made two mods that got unzip 6.0c to work under MinGW.

1. I put this line in w32cfg.h right at the beginning, just after #define
__w32cfg_h

#define USE_STRM_INPUT


2. I changed the line in unzpriv.h from:

#define Z_OFF_T long

... to ...

#define Z_OFF_T long long

That did the trick, and now unzip 6.0c seems to correctly process all of my
zip 3.0f archives.


Willus ( willus ) - 2007-10-19 19:27

5

Open

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2008-02-18 04:37
Sender: willus


NOTE! The changes I've mentioned in this post are not required for
correct compilation under MinGW after all. I had an issue with my include
path which was causing the problem.


Date: 2007-10-20 04:15
Sender: willus


Follow-up: These same fixes seem to be required by the latest version of
unzip 6.0d (r5) to get it to work under MinGW. Also, the changes I made
above may break the code for other platforms since I made no effort to
isolate them to MinGW. For the final release, they should be made so that
they are conditional to a MinGW compile (and whatever other Win32 compiler
they may fix). Note that I forced USE_STRM_INPUT because the 64-bit
zlseek() in MinGW doesn't seem to be working consistently. I'm using a
version of MinGW that's a few years old (MinGW 3.1.0, gcc 3.4.0), so this
might be fixed in a more recent version of MinGW.


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
resolution_id None 2008-02-18 04:38 willus