Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated symbols when linking with minizip #169

Open
david-antiteum opened this issue Mar 15, 2023 · 1 comment
Open

Duplicated symbols when linking with minizip #169

david-antiteum opened this issue Mar 15, 2023 · 1 comment

Comments

@david-antiteum
Copy link

When using v1.4

One of our dependencies is using minizip. This creates a problem of symbol duplication:

duplicate symbol '_call_zopen64' in:
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libquazip1-qt6d.a(qioapi.cpp.o)
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libminizip.a(ioapi.c.o)
duplicate symbol '_call_ztell64' in:
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libquazip1-qt6d.a(qioapi.cpp.o)
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libminizip.a(ioapi.c.o)
duplicate symbol '_call_zseek64' in:
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libquazip1-qt6d.a(qioapi.cpp.o)
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libminizip.a(ioapi.c.o)
duplicate symbol '_fill_zlib_filefunc64_32_def_from_filefunc32' in:
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libquazip1-qt6d.a(qioapi.cpp.o)
    /Users/Shared/vcpkg/installed/arm64-osx/debug/lib/libminizip.a(ioapi.c.o)

Any way to isolate the definitions copied from minizip or to use minizip instead?

Thanks,

David

@david-antiteum david-antiteum changed the title Duplicated symbols when linking with minizip too Duplicated symbols when linking with minizip Mar 15, 2023
@david-antiteum
Copy link
Author

Renaming this functions will do the trick:

  • call_zseek64
  • call_zopen64
  • call_ztell64
  • fill_zlib_filefunc64_32_def_from_filefunc32

naskin-gmg added a commit to gmgColor/quazip that referenced this issue Oct 10, 2024
quazip has copy of minizip sources,
when any target is statically linked both to minizip and quazip targets this creates conflict.
Depending on the linker this can produce an error or one of the implementation will be silently discarded.

sa: stachenov#169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant