Welcome, Guest.
Please login or register.
compilation error: Uz_Globs has no  disk_full
Forum Login
Login Name: Create a new account
Password:     Forgot password

Info-ZIP Discussion Forum    Info-ZIP Bugs    UnZip Bugs  ›  compilation error: Uz_Globs has no  disk_full

compilation error: Uz_Globs has no  disk_full  This thread currently has 1179 views. Print
1 Pages 1 Recommend Thread
wiz
March 3, 2010, 10:10am Report to Moderator
Baby Member
Posts: 2
When compiling unzip-6.0 using unix/Makefile and the generic_zlib and unzipsfx targets with flags as seen below, compilation of funzip fails. The same flags worked with 5.52.

gmake[1]: `unzip' is up to date.
cc -c -I/usr/include -O2 -DBSD -I. -DUNIX -Dunix -DUSE_UNSHRINK -I/usr/include -DUSE_ZLIB -DFUNZIP -o inflatef.o inflate.c
inflate.c: In function 'UZinflate':
inflate.c:541: error: 'Uz_Globs' has no member named 'disk_full'
gmake[1]: *** [inflatef.o] Error 1

Any ideas?

Thanks,
Thomas
Logged
Private Message
sms
March 3, 2010, 3:58pm Report to Moderator
Info-ZIP Team
Posts: 463
   Looks to me like a bug.  I know nothing, but I'd guess that the
"G.disk_full" tests in "inflate.c" (lines 476 and 541) ought to be
conditional on "FUNZIP".  For example:

                    /* output write failure */
#ifdef FUNZIP
                    retval = PK_DISK;
#else /* def FUNZIP */
                    retval = (G.disk_full != 0 ? PK_DISK : IZ_CTRLC);
#endif /* def FUNZIP [else] */
Logged Online
Private Message Reply: 1 - 3
wiz
March 10, 2010, 11:11pm Report to Moderator
Baby Member
Posts: 2
This works. Do we need to file a bug report somewhere to get this fixed or is this posting sufficient?

Thanks,
Thomas
Logged
Private Message Reply: 2 - 3
sms
March 10, 2010, 11:31pm Report to Moderator
Info-ZIP Team
Posts: 463
> This works.

   Thanks for the report.  (What could go wrong?)

> Do we need to file a bug report somewhere [...]

   This should do it (eventually).
Logged Online
Private Message Reply: 3 - 3
1 Pages 1 Recommend Thread
Print

Info-ZIP Discussion Forum    Info-ZIP Bugs    UnZip Bugs  ›  compilation error: Uz_Globs has no  disk_full