[GH-ISSUE #55] Problem using libxlsxwriter and ZipArchive together #47

Closed
opened 2026-05-05 11:31:05 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @sanhue0302 on GitHub (Jun 29, 2016).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/55

Originally assigned to: @jmcnamara on GitHub.

while i use pod libxlsxwriter and ZipArchive together
build would failed with "Use of undeclared identifier 'MAXU32'"
i think that because pod will misunderstand include ioapi.h at Ziparchive rather than libxlsxwriter
any idea to use these two together?

Originally created by @sanhue0302 on GitHub (Jun 29, 2016). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/55 Originally assigned to: @jmcnamara on GitHub. while i use pod libxlsxwriter and ZipArchive together build would failed with "Use of undeclared identifier 'MAXU32'" i think that because pod will misunderstand include ioapi.h at Ziparchive rather than libxlsxwriter any idea to use these two together?
gitea-mirror 2026-05-05 11:31:05 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jmcnamara commented on GitHub (Jun 29, 2016):

Hi Sanhue,

There isn't very much information to go on here.

Some questions:

  1. What is ZipArchive? I presume this: https://cocoapods.org/pods/ZipArchive
  2. What are the steps to reproduce this? Please give a complete example.

I took a quick look at the ZipArchive source and the version of ioapi.h isn't wrapped in a #ifndef _ZLIBIOAPI64_H sentinel. Or perhaps it isn't a recent version from the zlib master branch. You could try replacing the minizip parts in ZipArchive with the ones from zlib master or libxlsxwriter.

John

<!-- gh-comment-id:229278549 --> @jmcnamara commented on GitHub (Jun 29, 2016): Hi Sanhue, There isn't very much information to go on here. Some questions: 1. What is ZipArchive? I presume this: https://cocoapods.org/pods/ZipArchive 2. What are the steps to reproduce this? Please give a complete example. I took a quick look at the ZipArchive source and the version of ioapi.h isn't wrapped in a `#ifndef _ZLIBIOAPI64_H` sentinel. Or perhaps it isn't a recent version from the [zlib master branch](https://github.com/madler/zlib/tree/master/contrib/minizip). You could try replacing the minizip parts in ZipArchive with the ones from zlib master or libxlsxwriter. John
Author
Owner

@sanhue0302 commented on GitHub (Jun 29, 2016):

a simple way to reproduce this issue is:

  • create a new project
  • add a podfile with
  pod 'ZipArchive'
  pod 'libxlsxwriter'
  • pod update
  • build the workspace
<!-- gh-comment-id:229279731 --> @sanhue0302 commented on GitHub (Jun 29, 2016): a simple way to reproduce this issue is: - create a new project - add a podfile with ``` pod 'ZipArchive' pod 'libxlsxwriter' ``` - pod update - build the workspace
Author
Owner

@sanhue0302 commented on GitHub (Jun 29, 2016):

yes, i think ZipArchive and libxlsxwriter use different version of minzip

any idea to solve the problem?

<!-- gh-comment-id:229280308 --> @sanhue0302 commented on GitHub (Jun 29, 2016): yes, i think ZipArchive and libxlsxwriter use different version of minzip any idea to solve the problem?
Author
Owner

@jmcnamara commented on GitHub (Jun 29, 2016):

yes, i think ZipArchive and libxlsxwriter use different version of min zip . any idea to solve the problem?

Just the idea that I suggested above. To replace the minizip version in ZipArchive with the one from zlib master (or the 1.28 tarball) or the one from libxlsxwriter.

<!-- gh-comment-id:229280887 --> @jmcnamara commented on GitHub (Jun 29, 2016): > yes, i think ZipArchive and libxlsxwriter use different version of min zip . any idea to solve the problem? Just the idea that I suggested above. To replace the minizip version in ZipArchive with the one from zlib master (or the 1.28 tarball) or the one from libxlsxwriter.
Author
Owner

@jmcnamara commented on GitHub (Jun 29, 2016):

Can you also post a full error log.

<!-- gh-comment-id:229294931 --> @jmcnamara commented on GitHub (Jun 29, 2016): Can you also post a full error log.
Author
Owner

@jmcnamara commented on GitHub (Jun 29, 2016):

P.S. An error log when using SSArchiveZip.

<!-- gh-comment-id:229295431 --> @jmcnamara commented on GitHub (Jun 29, 2016): P.S. An error log when using SSArchiveZip.
Author
Owner

@sanhue0302 commented on GitHub (Jun 29, 2016):

/Users/sanhue/Desktop/test/Pods/libxlsxwriter/third_party/minizip/ioapi.c:62:29:
error:use of undeclared identifier 'MAXU32'

        if ((tell_uLong) == MAXU32)

my test sample:
test.zip

<!-- gh-comment-id:229298098 --> @sanhue0302 commented on GitHub (Jun 29, 2016): ``` /Users/sanhue/Desktop/test/Pods/libxlsxwriter/third_party/minizip/ioapi.c:62:29: error:use of undeclared identifier 'MAXU32' if ((tell_uLong) == MAXU32) ``` my test sample: [test.zip](https://github.com/jmcnamara/libxlsxwriter/files/338879/test.zip)
Author
Owner

@jmcnamara commented on GitHub (Jul 2, 2016):

@lrossi Any chance you could take a look at this issue if you get some time. Basically there is some sort of incompatibility between libxlsxwriter and SSArchiveZip with installed from pods since they both include a complete copy of minizip from zlib.

I don't know enough about either Xcode or Cocoapods to help the OP resolve their issue.

<!-- gh-comment-id:230105542 --> @jmcnamara commented on GitHub (Jul 2, 2016): @lrossi Any chance you could take a look at this issue if you get some time. Basically there is some sort of incompatibility between libxlsxwriter and SSArchiveZip with installed from pods since they both include a complete copy of minizip from zlib. I don't know enough about either Xcode or Cocoapods to help the OP resolve their issue.
Author
Owner

@jmcnamara commented on GitHub (Dec 20, 2016):

Closing. Can't fix.

<!-- gh-comment-id:268198156 --> @jmcnamara commented on GitHub (Dec 20, 2016): Closing. Can't fix.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#47
No description provided.