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

Link libresolv on all apple OSs #2767

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

mineo333
Copy link
Contributor

Currently, there is a problem where, when linking frida-gum, glib cannot find certain symbols because libresolv is not linked properly. The error is below:

Undefined symbols for architecture arm64:
            "_res_9_dn_expand", referenced from:
                _OUTLINED_FUNCTION_16 in libfrida_gum_sys-a07f5e3f0fd74186.rlib(gthreadedresolver.c.o)
            "_res_9_ndestroy", referenced from:
                _do_lookup_records in libfrida_gum_sys-a07f5e3f0fd74186.rlib(gthreadedresolver.c.o)
            "_res_9_ninit", referenced from:
                _do_lookup_records in libfrida_gum_sys-a07f5e3f0fd74186.rlib(gthreadedresolver.c.o)
            "_res_9_nquery", referenced from:
                _do_lookup_records in libfrida_gum_sys-a07f5e3f0fd74186.rlib(gthreadedresolver.c.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is a temporary fix until the following PR is merged in frida-rust: frida/frida-rust#180

@domenukk domenukk merged commit 5324799 into AFLplusplus:main Dec 14, 2024
94 of 100 checks passed
riesentoaster pushed a commit to riesentoaster/LibAFL that referenced this pull request Dec 15, 2024
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