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

Fix missing symbols on CoreKiwix.xcframework #765

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Fix missing symbols on CoreKiwix.xcframework #765

merged 3 commits into from
Oct 17, 2024

Conversation

rgaudin
Copy link
Member

@rgaudin rgaudin commented Oct 17, 2024

This fixes the libcurl compilation by explicitly disabling PSL and GSS-API for kiwix/kiwix-apple#984

Note that with this there is still an undefined symbol named SCDynamicStoreCopyProxies.
This is apparently macOS-specific and is fixed by linking (dynamically) to SystemConfiguration.framework.

This doesn't seem configurable as this function is used when CURL_MACOS_CALL_COPYPROXIES is set but this define is not exposed in config but is set based on target.

libcurl did not use/call this function in version 7.67.0 which is the one that was used prior to moving to meson.

libpsl is a lib that provides the Public Suffix List: the list
of all TLDs.
It's an optional feature of libcurl that we dont need for libkiwix.

Leaving it included causes issues when compiling for apple_all_static
on x86_64 as libpsf is installed (and thus found by libcurl's configure)
but is obviously only for x86_64.

An alternative could be to either cross-compile it first and properly
reference that version.

That sounds like too much effort for a feature we know we dont need.

https://github.com/rockdaboot/libpsl
@rgaudin rgaudin self-assigned this Oct 17, 2024
@rgaudin rgaudin requested a review from kelson42 October 17, 2024 11:43
@rgaudin
Copy link
Member Author

rgaudin commented Oct 17, 2024

Note that this does not fix #764. It I just moved the meson ZIP to dev.kiwix

@kelson42 kelson42 merged commit dfe53e1 into main Oct 17, 2024
42 checks passed
@kelson42 kelson42 deleted the gss-symbols branch October 17, 2024 16:42
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

Successfully merging this pull request may close these issues.

2 participants