OpenMLDB icon indicating copy to clipboard operation
OpenMLDB copied to clipboard

remove boost and in favor of c++ std/abseil

Open aceforeverd opened this issue 5 months ago • 1 comments

current boost version won't compile on macOS 13, or higher gcc version. Most usage to boost can easily replaced from std or absl, its generally preferred to rm it.

Or if there is the case a lower gcc required, like centos 6 ?, use C macros to wrapper those functionality ? Anyway if centos 6 is able to compile gcc 8, macros are not necessary

aceforeverd avatar Mar 01 '24 10:03 aceforeverd

yet many warning generated about boost

ld: warning: direct access in function 'boost::cpp_regex_traits::get_catalog_name()' from file '/Users/runner/work/OpenMLDB/OpenMLDB/.deps/usr/lib/libboost_regex.a(cpp_regex_traits.o)' to global weak symbol 'guard variable for boost::cpp_regex_traits::get_catalog_name_inst()::s_name' from file 'libhybridse_core.a(sql_case.cc.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

aceforeverd avatar Mar 01 '24 10:03 aceforeverd