Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86带glog编译出来的静态库没有GLOG相关符号 #2861

Open
chongg039 opened this issue Jan 3, 2025 · 1 comment
Open

x86带glog编译出来的静态库没有GLOG相关符号 #2861

chongg039 opened this issue Jan 3, 2025 · 1 comment

Comments

@chongg039
Copy link

Describe the bug (描述bug)
x86的环境下在输出一个错误日志:
image
查看代码好像是用了自己的log实现,而不是glog
image
实际编译库的时候带上了glog的选项,编译命令:
sudo sh config_brpc.sh --headers=/usr/local/include --libs=/usr/local/lib --with-glog; sudo make clean; sudo make -j8

arm的环境就没有这个问题,编译都是默认带了glog的选项,对比了一下静态库,发现x86的没有GLOG相关的符号,arm的有:

x86:
image

arm:
image

请问这是什么原因

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本)
OS: centos
Compiler:gcc492
brpc: release 1.5
protobuf: 2.4.1

Additional context/screenshots (更多上下文/截图)

@yanglimingcn
Copy link
Contributor

yanglimingcn commented Jan 13, 2025

image 应该是x86环境走到了这个分支了吧,这个应该和环境有关系。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants