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

Can't build C++ client by tutorial #826

Closed
Smityz opened this issue Oct 13, 2021 · 1 comment
Closed

Can't build C++ client by tutorial #826

Smityz opened this issue Oct 13, 2021 · 1 comment
Labels
type/bug This issue reports a bug.

Comments

@Smityz
Copy link
Contributor

Smityz commented Oct 13, 2021

../lib/libpegasus_client_static.a(sasl_server_wrapper.cpp.o): In function `dsn::security::sasl_server_wrapper::start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, dsn::blob const&, dsn::blob&)':
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:43: undefined reference to `dsn::fail::_S_FAIL_POINT_ENABLED'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:51: undefined reference to `sasl_server_start'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:43: undefined reference to `dsn::fail::eval[abi:cxx11](dsn::string_view)'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:43: undefined reference to `dsn::error_code::try_get(char const*, dsn::error_code)'
../lib/libpegasus_client_static.a(sasl_server_wrapper.cpp.o): In function `dsn::security::sasl_server_wrapper::init()':
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:31: undefined reference to `dsn::fail::_S_FAIL_POINT_ENABLED'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:37: undefined reference to `sasl_server_new'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:31: undefined reference to `dsn::fail::eval[abi:cxx11](dsn::string_view)'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:31: undefined reference to `dsn::error_code::try_get(char const*, dsn::error_code)'
../lib/libpegasus_client_static.a(sasl_server_wrapper.cpp.o): In function `dsn::security::sasl_server_wrapper::step(dsn::blob const&, dsn::blob&)':
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:59: undefined reference to `dsn::fail::_S_FAIL_POINT_ENABLED'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:66: undefined reference to `sasl_server_step'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:59: undefined reference to `dsn::fail::eval[abi:cxx11](dsn::string_view)'
/home/tangyanzhao/Code/pegasus/rdsn/src/runtime/security/sasl_server_wrapper.cpp:59: undefined reference to `dsn::error_code::try_get(char const*, dsn::error_code)'
../lib/libpegasus_client_static.a(sasl_server_wrapper.cpp.o): In function `_GLOBAL__sub_I_sasl_server_wrapper.cpp':
/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:132: undefined reference to `dsn::error_code::error_code(char const*)'
/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:131: undefined reference to `dsn::error_code::error_code(char const*)'
/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:130: undefined reference to `dsn::error_code::error_code(char const*)'
/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:129: undefined reference to `dsn::error_code::error_code(char const*)'
/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:128: undefined reference to `dsn::error_code::error_code(char const*)'
../lib/libpegasus_client_static.a(sasl_server_wrapper.cpp.o):/home/tangyanzhao/Code/pegasus/rdsn/include/dsn/utility/error_code.h:127: more undefined references to `dsn::error_code::error_code(char const*)' follow
../lib/libpegasus_client_static.a(builtin_counters.cpp.o): In function `dsn::builtin_counters::update_counters()':
/home/tangyanzhao/Code/pegasus/rdsn/src/perf_counter/builtin_counters.cpp:44: undefined reference to `dsn::utils::process_mem_usage(double&, double&)'
/home/tangyanzhao/Code/pegasus/rdsn/src/perf_counter/builtin_counters.cpp:49: undefined reference to `dsn_log_start_level'
/home/tangyanzhao/Code/pegasus/rdsn/src/perf_counter/builtin_counters.cpp:49: undefined reference to `dsn_logf(char const*, char const*, int, dsn_log_level_t, char const*, ...)'
collect2: error: ld returned 1 exit status
make: *** [pegasus_cpp_sample] Error 1

Can't build C++ client by tutorial in the https://pegasus.apache.org/clients/cpp-client

@Smityz Smityz added the type/bug This issue reports a bug. label Oct 13, 2021
@acelyc111
Copy link
Member

The master branch has added sample as a sub-directory which contains the usage of C++ client, and will be built everyday on various of plats. I'll close this issue, you can reopen it if you find the master branch build it failed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue reports a bug.
Projects
None yet
Development

No branches or pull requests

2 participants