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

brpc作为子模块,cmake编译时error: 'z_stream' does not name a type #2593

Open
aMagicNeko opened this issue Apr 8, 2024 · 0 comments

Comments

@aMagicNeko
Copy link

Describe the bug (描述bug)

In file included from /root/MEVpp/third-party/brpc/src/brpc/policy/gzip_compress.h:23, from /root/MEVpp/third-party/brpc/src/brpc/builtin/flot_min_js.cpp:21: /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h:95:3: error: 'z_stream' does not name a type 95 | z_stream zcontext_; | ^~~~~~~~ /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h: In member function 'const char* google::protobuf::io::GzipInputStream::ZlibErrorMessage() const': /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h:81:56: error: 'zcontext_' was not declared in this scope 81 | inline const char* ZlibErrorMessage() const { return zcontext_.msg; } | ^~~~~~~~~ /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h: At global scope: /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h:183:3: error: 'z_stream' does not name a type 183 | z_stream zcontext_; | ^~~~~~~~ /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h: In member function 'const char* google::protobuf::io::GzipOutputStream::ZlibErrorMessage() const': /root/vcpkg/installed/arm64-linux/include/google/protobuf/io/gzip_stream.h:149:56: error: 'zcontext_' was not declared in this scope 149 | inline const char* ZlibErrorMessage() const { return zcontext_.msg; } | ^~~~~~~~~ make[2]: *** [third-party/brpc/src/CMakeFiles/SOURCES_LIB.dir/build.make:678: third-party/brpc/src/CMakeFiles/SOURCES_LIB.dir/brpc/builtin/flot_min_js.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:380: third-party/brpc/src/CMakeFiles/SOURCES_LIB.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
To Reproduce (复现方法)
brpc作为子模块,vcpkg安装各个依赖(zip, protobuf, gflags, openssl)

Expected behavior (期望行为)

Versions (各种版本)
OS: Ubuntu 20.04 arm
Compiler: gcc12
brpc:1.8.0
protobuf: arm64-linux 3.21.12

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

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

1 participant