triump2020 commented on issue #5253:
URL: 
https://github.com/apache/incubator-doris/issues/5253#issuecomment-761800160


   Here is the error msg :
   `[230/242] Linking CXX executable output/bin/protoc-gen-mcpack
   FAILED: output/bin/protoc-gen-mcpack
   : && /usr/bin/g++  -DBRPC_WITH_GLOG=1 -DGFLAGS_NS=google 
-DBTHREAD_USE_FAST_PTHREAD_MUTEX -D__const__= -D_GNU_SOURCE -DUSE_SYMBOLIZE 
-DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -DBRPC_REVISION=\"73a67901e\" -D__STRICT_ANSI__ -g  
-O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof 
-Wno-unused-parameter -fno-omit-frame-pointer -msse4 -msse4.2 -Wno-aligned-new 
-DNDEBUG  -L/home/luofei/incubator-doris/thirdparty/installed/lib 
-static-libstdc++ -static-libgcc  -rdynamic 
src/CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o  -o 
output/bin/protoc-gen-mcpack  
-Wl,-rpath,/home/luofei/incubator-doris/thirdparty/src/incubator-brpc-0.9.5/doris_build/output/lib
  output/lib/libbrpc.so  -lgflags  -lprotobuf  -lpthread  -lleveldb  -lprotoc  
-lpthread  -lleveldb  -lprotoc  -lssl  -lcrypto  -ldl  -lz  -Wl,-Bstatic  
-lglog  -Wl,-Bdynamic  -lrt  -Wl,-Bstatic  -lglog  -Wl,-Bdynamic  -lrt && :
   /usr/bin/ld: output/lib/libbrpc.so: undefined reference to 
`snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)'
   /usr/bin/ld: output/lib/libbrpc.so: undefined reference to 
`snappy::MaxCompressedLength(unsigned long)'
   /usr/bin/ld: output/lib/libbrpc.so: undefined reference to 
`snappy::RawUncompress(char const*, unsigned long, char*)'
   /usr/bin/ld: output/lib/libbrpc.so: undefined reference to 
`snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)'
   collect2: error: ld returned 1 exit status
   [231/242] Linking CXX executable output/bin/parallel_http
   FAILED: output/bin/parallel_http
   : && /usr/bin/g++  -DBRPC_WITH_GLOG=1 -DGFLAGS_NS=google -DNDEBUG -O2 
-D__const__= -D__STRICT_ANSI__ -pipe -W -Wall -Wno-unused-parameter -fPIC 
-fno-omit-frame-pointer  
-L/home/luofei/incubator-doris/thirdparty/installed/lib -static-libstdc++ 
-static-libgcc  -rdynamic 
tools/parallel_http/CMakeFiles/parallel_http.dir/parallel_http.cpp.o  -o 
output/bin/parallel_http  output/lib/libbrpc.a  -lgflags  -lprotobuf  -lpthread 
 -lleveldb  -lprotoc  -lpthread  -lssl  -lcrypto  -lcrypto  -ldl  -lz  
-Wl,-Bstatic  -lglog  -Wl,-Bdynamic  -lrt  -lleveldb  -lprotoc  -lssl  -lcrypto 
 -ldl  -lz  -Wl,-Bstatic  -lglog  -Wl,-Bdynamic  -lrt && :
   /usr/bin/ld: 
/home/luofei/incubator-doris/thirdparty/installed/lib/libleveldb.a(table_builder.o):
 in function `leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*, 
leveldb::BlockHandle*)':
   table_builder.cc:(.text+0x6fd): undefined reference to 
`snappy::MaxCompressedLength(unsigned long)'
   /usr/bin/ld: table_builder.cc:(.text+0x735): undefined reference to 
`snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)'
   /usr/bin/ld: 
/home/luofei/incubator-doris/thirdparty/installed/lib/libleveldb.a(format.o): 
in function `leveldb::ReadBlock(leveldb::RandomAccessFile*, 
leveldb::ReadOptions const&, leveldb::BlockHandle const&, 
leveldb::BlockContents*)':
   format.cc:(.text+0x55f): undefined reference to 
`snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)'
   /usr/bin/ld: format.cc:(.text+0x583): undefined reference to 
`snappy::RawUncompress(char const*, unsigned long, char*)'
   collect2: error: ld returned 1 exit status
   [232/242] Building CXX object 
tools/rpc_press/CMakeFiles/rpc_press.dir/rpc_press_impl.cpp.o
   ninja: build stopped: subcommand failed.`


----------------------------------------------------------------
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]

Reply via email to