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

按照官网的操作在centos上编译报错了 #2779

Open
mykittylover opened this issue Oct 12, 2024 · 6 comments
Open

按照官网的操作在centos上编译报错了 #2779

mykittylover opened this issue Oct 12, 2024 · 6 comments

Comments

@mykittylover
Copy link

Describe the bug (描述bug)

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本)
OS:
Compiler:
brpc:
protobuf:

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

src/bthread/key.cpp:37:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DEFINE_uint32(key_table_list_size, 5000,
^
src/bthread/key.cpp:42:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DEFINE_uint32(borrow_from_globle_size, 100,

@Huixxi
Copy link
Contributor

Huixxi commented Nov 9, 2024

是用什么编译的,现在解决了么

@wasphin
Copy link
Member

wasphin commented Nov 30, 2024

印象中有一版centos系统中自带gflags有问题,需要升级下

@Zizor
Copy link

Zizor commented Dec 8, 2024

阿里云镜像源,CENTOS8.5.2111,gcc8.5.0,
protobuf-compiler-3.5.0-13.el8.x86_64
protobuf-3.5.0-13.el8.x86_64
protobuf-devel-3.5.0-13.el8.x86_64
protobuf-c-1.3.0-6.el8.x86_64
gflags-2.1.2-6.el8.x86_64
gflags-devel-2.1.2-6.el8.x86_64
编译stable和release-1.10都可以成功,但是编译release-1.11就报这个错误

@wasphin
Copy link
Member

wasphin commented Dec 8, 2024

没有 centos 8 的环境,试了下 rockylinux 8,gflags 版本一致,不过现象不一样,rockylinux 8 下需要给 gflags 打上这个补丁

@wasphin
Copy link
Member

wasphin commented Dec 9, 2024

用 centos 8 复现了,晚点我看下

@wasphin
Copy link
Member

wasphin commented Dec 9, 2024

gflags 2.1.2-6 中未包含 uint32 flags 的支持,centos 8 gflags中看未支持,

image

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

4 participants