969125987 opened a new issue #1350: URL: https://github.com/apache/incubator-brpc/issues/1350
**Describe the bug (描述bug)** server中使用libtorch加载模型,client向server传输图像进行识别。在编译时有以下报错: [/usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipInputStream::~GzipInputStream()': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:74: undefined reference to `inflateEnd' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipInputStream::Inflate(int)': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:119: undefined reference to `inflate' /output/protobuf/src/google/protobuf/io/gzip_stream.cc:91: undefined reference to `inflateInit2_' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipInputStream::Next(void const**, int*)': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:143: undefined reference to `inflateEnd' /output/protobuf/src/google/protobuf/io/gzip_stream.cc:91: undefined reference to `inflateInit2_' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipOutputStream::Init(google::protobuf::io::ZeroCopyOutputStream*, google::protobuf::io::GzipOutputStream::Options const&)': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:240: undefined reference to `deflateInit2_' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipOutputStream::Deflate(int)': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:265: undefined reference to `deflate' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipOutputStream::Close() [clone .part.0]': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:323: undefined reference to `deflateEnd' /usr/local/lib/libprotobuf.a(gzip_stream.o): In function `google::protobuf::io::GzipInputStream::~GzipInputStream()': /output/protobuf/src/google/protobuf/io/gzip_stream.cc:74: undefined reference to `inflateEnd' collect2: error: ld returned 1 exit status CMakeFiles/tps_server.dir/build.make:211: recipe for target 'tps_server' failed make[2]: *** [tps_server] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/tps_server.dir/all' failed make[1]: *** [CMakeFiles/tps_server.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2](url) **To Reproduce (复现方法)** **Expected behavior (期望行为)** 编译成功 **Versions (各种版本)** OS:ubuntu18 Compiler:gcc 7.5 brpc:0.9.7 protobuf:3.15.4(编译安装,安装时已经编译了zlib) (也试过使用apt的方式安装protobuf 3.0.0,报同样的错误) **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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
