angelra1994

Results 7 comments of 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 做了如下修改 ![image](https://github.com/oceanbase/oceanbase/assets/29936403/489591a8-7f9c-4014-84a5-25c8d0247acf)

> @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 失败了 ![image](https://github.com/oceanbase/obproxy/assets/29936403/40749470-16fc-419b-86f9-de83aa3b68a2) 在 unittest/obproxy 目录中只有139个文件 ![image](https://github.com/oceanbase/obproxy/assets/29936403/2db592b5-0525-49af-ab9a-a3526e5293d1)

但是将 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" 如注释掉,则可以成功编译,如 ![image](https://github.com/oceanbase/obproxy/assets/29936403/65c5a700-4d72-4c20-b434-37d998c288c8) 在 unittest/obproxy 目录中是140个文件 ![image](https://github.com/oceanbase/obproxy/assets/29936403/663b4148-2198-4f2d-99c3-a316f05004a2) 我之前没有接触过c++,不了解其中机制。希望大佬们解惑

> > > [91b2414](https://github.com/oceanbase/obproxy/commit/91b2414e48d9bcf2efbb60b28e5d80f9ee3de9f6) 这样试一试呢 > > > > > > @donghy-coredumped 好像还是报类似的错误 > > ./build.sh clean 之后再重新编译也还是报错吗? 是的