Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104315 - unzip fails on >2GB file
Summary: unzip fails on >2GB file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 194264
  Show dependency tree
 
Reported: 2005-08-30 16:25 UTC by Frits Jalvingh
Modified: 2007-09-30 15:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frits Jalvingh 2005-08-30 16:25:31 UTC
The -D_FILE_OFFSET_BITS=64 parameter is missing from the cflags of the build.
This creates a 32bit unzip which fails with a stupid error (no such file xxx.zip
- man that's dumb) if the file exceeds 2GB.
Adding this define allows files > 2GB to be unzipped.

Reproducible: Always
Steps to Reproduce:
1. Unzip a file >2gb
2. Be amazed about the stupid error message telling you the file doesn't exist
(it DOES! Really!)

Actual Results:  
I recompiled unzip using the above flag.

Expected Results:  
At LEAST report the actual error which was "I cannot unzip files that are >2GB"
but preferably just unzip the thing.
Comment 1 SpanKY gentoo-dev 2005-08-31 15:25:48 UTC
if you put this into your CFLAGS does it work ?
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
Comment 2 Frits Jalvingh 2005-08-31 16:25:41 UTC
(In reply to comment #1)
I only added -D_FILE_OFFSET_BITS=64 and that was enough. I added it to the
original unzip 5.52 Makefile and recompiled; after that unzipping worked ok.
Comment 3 SpanKY gentoo-dev 2005-08-31 16:31:13 UTC
fixed in cvs, thanks