ivanallen opened a new issue, #2913: URL: https://github.com/apache/brpc/issues/2913
**Describe the bug (描述bug)** ``` [100%] Linking CXX executable ../output/bin/protoc-gen-mcpack cd brpc/1.7.0/source/brpc/build_07a8f21d/src && cmake -E cmake_link_script CMakeFiles/protoc-gen-mcpack.dir/link.txt --verbose=1 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DBRPC_WITH_GLOG=1 -DBRPC_WITH_RDMA=0 -DGFLAGS_NS=google -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D__const__=__unused__ -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DBRPC_REVISION=\"1.7.0\|HEAD\|65e6e76\|2023-10-22T19:06:26+08:00\" -D__STRICT_ANSI__ -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -msse4 -msse4.2 -Wno-aligned-new -DNDEBUG -O2 -g -DNDEBUG -lz -rdynamic "CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o" -o ../output/bin/protoc-gen-mcpack ../output/lib/libbrpc.a /packages/g/gflags/v2.2.2/0f545414272c459b907061d5e923ed20/lib/libgflags.a /packages/p/protobuf-cpp/3.15.8/752e7d0cb4e5451faf923a9904438974/lib/libprotobuf.a /packages/l/leveldb/1.23/0197f88191c248fda41eca3afbed88d6/lib/libleveldb.a /packages/p/protobuf-cpp/3.15.8/752e7d0cb4e5451faf923a9904438974/lib/libprotoc.a -lcrypto -ldl -lz - lssl /packages/g/glog/0.6.0/61aa77d3b3d14acdb81c3d203236d31f/lib/libglog.a /packages/s/snappy/1.1.8/c105db593d9c43e99ba18ab81549619c/lib/libsnappy.a -lrt -lpthread /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /packages/g/glog/0.6.0/61aa77d3b3d14acdb81c3d203236d31f/lib/libglog.a(logging.cc.o): in function `_GLOBAL__sub_I_logging.cc': logging.cc:(.text.startup+0x289): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: logging.cc:(.text.startup+0x2fb): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: logging.cc:(.text.startup+0x36d): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: logging.cc:(.text.startup+0x3e0): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: logging.cc:(.text.startup+0x453): undefined reference to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /packages/g/glog/0.6.0/61aa77d3b3d14acdb81c3d203236d31f/lib/libglog.a(logging.cc.o):logging.cc:(.text.startup+0x4c5): more undefined references to `google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' follow /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /packages/g/glog/0.6.0/61aa77d3b3d14acdb81c3d203236d31f/lib/libglog.a(logging.cc.o): in function `_GLOBAL__sub_I_logging.cc': logging.cc:(.text.startup+0x566): undefined reference to `google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)' ``` **To Reproduce (复现方法)** **Expected behavior (期望行为)** **Versions (各种版本)** OS: Compiler: brpc: protobuf: **Additional context/screenshots (更多上下文/截图)** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org