I was getting linking issues while trying @boost.log , try couple of stuff like adding -l flags to linkopt, , -static, add #define dynamic link directive, etc.
bazel_dep(name = "boost.log", version = "1.83.0.bzl.1")
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11]() [clone .cold]: error: undefined reference to 'boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11]() [clone .cold]: error: undefined reference to 'boost::log::v2s_mt_posix::record_view::public_data::destroy(boost::log::v2s_mt_posix::record_view::public_data const*)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11]() [clone .cold]: error: undefined reference to 'boost::log::v2s_mt_posix::core::push_record_move(boost::log::v2s_mt_posix::record&)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11]() [clone .cold]: error: undefined reference to 'boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11]() [clone .cold]: error: undefined reference to 'boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::trivial::logger::get()'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::core::get_logging_enabled() const'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::core::push_record_move(boost::log::v2s_mt_posix::record&)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::trivial::logger::get()'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::aux::stream_provider<char>::allocate_compound(boost::log::v2s_mt_posix::record&)'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::sources::aux::get_severity_level()'
bazel-out/k8-opt/bin/apps/gatekeeper/_objs/gatekeeper/main.o:main.cpp:function printBannar[abi:cxx11](): error: undefined reference to 'boost::log::v2s_mt_posix::core::open_record(boost::log::v2s_mt_posix::attribute_set const&)'
I was getting linking issues while trying @boost.log , try couple of stuff like adding -l flags to linkopt, , -static, add #define dynamic link directive, etc. bazel_dep(name = "boost.log", version = "1.83.0.bzl.1")