-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Missing symbols when linking statically on macOS: SecRandomCopyBytes, _compression_stream_init #791
Comments
You need to link to several frameworks on Apple. |
@Nekto89 That worked, thanks! But I'm still seeing the remaining three:
Any thoughts on how to fix these? |
https://github.com/zlib-ng/minizip-ng/blob/fe5fedc365f7824ada0cf9a84fb79b30d5fc97a8/CMakeLists.txt#L162
try compression library
…On Mon, 22 Jul 2024, 21:47 Vitaly Kravchenko, ***@***.***> wrote:
@Nekto89 <https://github.com/Nekto89> That worked, thanks! But I'm still
seeing the remaining three:
Undefined symbols for architecture arm64:
"_compression_stream_destroy", referenced from:
_mz_stream_libcomp_close in libminizip-ng.a[10](mz_strm_libcomp.c.o)
"_compression_stream_init", referenced from:
_mz_stream_libcomp_open in libminizip-ng.a[10](mz_strm_libcomp.c.o)
"_compression_stream_process", referenced from:
_mz_stream_libcomp_read in libminizip-ng.a[10](mz_strm_libcomp.c.o)
ld: symbol(s) not found for architecture arm64
Any thoughts on how to fix these?
—
Reply to this email directly, view it on GitHub
<#791 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAUCRBUIBO5JPQOA5JO4K3ZNVHVVAVCNFSM6AAAAABLIAKHWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGYYDAOBUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Not sure I understand. I already use MZ_LIBCOMP flag:
Should I add something else to the |
I'm trying to link statically into an Odin executable, building minizip-ng with the following flags:
but building the target Odin executable I get the following errors:
On Windows, I am able to use minizip-ng with no issues, and don't run into
_mz_stream_libcomp
errors.I also realize
_SecRandomCopyBytes
and_kSecRandomDefault
are macOS specific, but don't know why I'm getting these errors on a mac.I've tried various combination of build flags, but I still get at least these 5 symbol errors. The only thing I need minizip-ng to do is to unzip unencrypted archives. Am I missing something?
The text was updated successfully, but these errors were encountered: