angelra1994
angelra1994
CXXLD test_continuation CXXLD test_protected_queue CXXLD test_priority_event_queue CXXLD test_io_buffer CXXLD test_unix_net_processor CXXLD test_unix_net ld.lld: error: undefined symbol: testing::Message::GetString() const >>> referenced by gtest.h:323 (/code/obproxy/deps/3rd/usr/local/oceanbase/deps/devel/include/gtest/gtest.h:323) >>> test_event_processor.o:(testing::AssertionResult::AppendMessage(testing::Message const&)) ld.lld: error: undefined symbol:...
obproxy的 build.sh 做了如下修改 
> @angelra1994 It seems you have fixed this issue. Could you please propose one pull request 抱歉,目前暂未找到修复办法,但是有复现方法。 1. 将 obproxy的 build.sh 做了如截图中的修改 2. 执行 sh build.sh debug
> [91b2414](https://github.com/oceanbase/obproxy/commit/91b2414e48d9bcf2efbb60b28e5d80f9ee3de9f6) 这样试一试呢 @donghy-coredumped 好像还是报类似的错误
目前看应该是 只有构建 foo_server 失败了  在 unittest/obproxy 目录中只有139个文件 
但是将 configure.ac 中 60行61行 AM_CXXFLAGS="${AM_CXXFLAGS} -fuse-ld=lld -ffunction-sections -Wl,--no-warn-symbol-ordering,--symbol-ordering-file,${ac_abs_confdir}/hotfuncs.txt" AM_CFLAGS="${AM_CFLAGS} -fuse-ld=lld -ffunction-sections -Wl,--no-warn-symbol-ordering,--symbol-ordering-file,${ac_abs_confdir}/hotfuncs.txt" 如注释掉,则可以成功编译,如  在 unittest/obproxy 目录中是140个文件  我之前没有接触过c++,不了解其中机制。希望大佬们解惑
> > > [91b2414](https://github.com/oceanbase/obproxy/commit/91b2414e48d9bcf2efbb60b28e5d80f9ee3de9f6) 这样试一试呢 > > > > > > @donghy-coredumped 好像还是报类似的错误 > > ./build.sh clean 之后再重新编译也还是报错吗? 是的