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

Linking error with Undefined symbols for architecture x86_64: _SCDynamicStoreCopyProxies on some macOS environment #892

Closed
owent opened this issue Jul 6, 2021 · 0 comments · Fixed by #893
Labels
bug Something isn't working

Comments

@owent
Copy link
Member

owent commented Jul 6, 2021

Describe your environment
OS: macOS 10.15
XCode: 12
Bazel: bazelisk 1.9.0

Steps to reproduce

bazel --output_user_root=$HOME/.cache/bazel build --copt=-DENABLE_METRICS_PREVIEW --copt=-DENABLE_LOGS_PREVIEW --copt -Wno-unused-function --copt -Wno-error=unused-command-line-argument --host_linkopt -lpthread --host_linkopt -liconv --host_linkopt -lresolv --host_linkopt -ldl --host_linkopt -lm //...

What is the expected behavior?
Sompiling success

What is the actual behavior?

Use --sandbox_debug to see verbose messages from the sandbox
Undefined symbols for architecture x86_64:
  "_SCDynamicStoreCopyProxies", referenced from:
      _Curl_resolv in libcurl.a(hostip.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in child process '/usr/bin/xcrun'. 1

Additional context
Should link with -framework SystemConfiguration on macOS.

@owent owent added the bug Something isn't working label Jul 6, 2021
@owent owent mentioned this issue Jul 6, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant