-
Notifications
You must be signed in to change notification settings - Fork 1
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
Undefined symbols _gpr_set_log_function #1
Comments
Hi Yusuke, void SetGlobalLogger(tkrzw::Logger* logger) { The reason why we call gpr_set_log_function is that gRPC's internal logger sometimes writes error logs to stderr, which is annoying for me. However, it is not a critical issue. so, commenting it out is practical. One strange thing is that gpr_set_log_function is defined in grpc/impl/codegen/log.h . |
I found it. Adding -lgpr to LDFLAGS solves this issue. I don't know why it is not necessary on Linux though. |
I submitted the fix so please check it. |
hooray!
|
commit 861ec40 fails to build on the following environments:
Linker fails with
Undefined symbols
orundefined reference
error messages around_gpr_set_log_function
.gRPC
is installed viabrew
or from source.tkrzw
is installed locally at$HOME/local/tkrzw
.On M1 Mac:
On Intel Mac:
On Intel Amazon Linux
Steps before calling
make
on macOS:The text was updated successfully, but these errors were encountered: