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

Ubuntu中构建问题,望赐教 #6

Open
Aloigail opened this issue Jun 29, 2020 · 2 comments
Open

Ubuntu中构建问题,望赐教 #6

Aloigail opened this issue Jun 29, 2020 · 2 comments

Comments

@Aloigail
Copy link

../librocksdb.so.5.16.6: undefined reference to inflateInit2_' ../librocksdb.so.5.16.6: undefined reference to inflate'
../librocksdb.so.5.16.6: undefined reference to deflateSetDictionary' ../librocksdb.so.5.16.6: undefined reference to deflateInit2_'
../librocksdb.so.5.16.6: undefined reference to deflate' ../librocksdb.so.5.16.6: undefined reference to inflateSetDictionary'
../librocksdb.so.5.16.6: undefined reference to deflateEnd' ../librocksdb.so.5.16.6: undefined reference to inflateEnd'
collect2: error: ld returned 1 exit status
deps/rocksdb/tools/CMakeFiles/sst_dump.dir/build.make:97: recipe for target 'deps/rocksdb/tools/sst_dump' failed
make[2]: *** [deps/rocksdb/tools/sst_dump] Error 1
CMakeFiles/Makefile2:707: recipe for target 'deps/rocksdb/tools/CMakeFiles/sst_dump.dir/all' failed
make[1]: *** [deps/rocksdb/tools/CMakeFiles/sst_dump.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/wwsearch.dir/build.make:638: recipe for target 'CMakeFiles/wwsearch.dir/src/index_config.cpp.o' failed
make[2]: *** [CMakeFiles/wwsearch.dir/src/index_config.cpp.o] Error 1
CMakeFiles/wwsearch.dir/build.make:326: recipe for target 'CMakeFiles/wwsearch.dir/src/bool_weight.cpp.o' failed
make[2]: *** [CMakeFiles/wwsearch.dir/src/bool_weight.cpp.o] Error 1
[ 91%] Linking CXX executable write_stress
../librocksdb.so.5.16.6: undefined reference to inflateInit2_' ../librocksdb.so.5.16.6: undefined reference to inflate'
../librocksdb.so.5.16.6: undefined reference to deflateSetDictionary' ../librocksdb.so.5.16.6: undefined reference to deflateInit2_'
../librocksdb.so.5.16.6: undefined reference to deflate' ../librocksdb.so.5.16.6: undefined reference to inflateSetDictionary'
../librocksdb.so.5.16.6: undefined reference to deflateEnd' ../librocksdb.so.5.16.6: undefined reference to inflateEnd'
collect2: error: ld returned 1 exit status
deps/rocksdb/tools/CMakeFiles/rocksdb_undump.dir/build.make:97: recipe for target 'deps/rocksdb/tools/rocksdb_undump' failed
make[2]: *** [deps/rocksdb/tools/rocksdb_undump] Error 1
CMakeFiles/Makefile2:670: recipe for target 'deps/rocksdb/tools/CMakeFiles/rocksdb_undump.dir/all' failed
make[1]: *** [deps/rocksdb/tools/CMakeFiles/rocksdb_undump.dir/all] Error 2
CMakeFiles/wwsearch.dir/build.make:446: recipe for target 'CMakeFiles/wwsearch.dir/src/index_wrapper.cpp.o' failed
make[2]: *** [CMakeFiles/wwsearch.dir/src/index_wrapper.cpp.o] Error 1
../librocksdb.so.5.16.6: undefined reference to inflateInit2_' ../librocksdb.so.5.16.6: undefined reference to inflate'
../librocksdb.so.5.16.6: undefined reference to deflateSetDictionary' ../librocksdb.so.5.16.6: undefined reference to deflateInit2_'
../librocksdb.so.5.16.6: undefined reference to deflate' ../librocksdb.so.5.16.6: undefined reference to inflateSetDictionary'
../librocksdb.so.5.16.6: undefined reference to deflateEnd' ../librocksdb.so.5.16.6: undefined reference to inflateEnd'
collect2: error: ld returned 1 exit status
deps/rocksdb/tools/CMakeFiles/rocksdb_dump.dir/build.make:97: recipe for target 'deps/rocksdb/tools/rocksdb_dump' failed
make[2]: *** [deps/rocksdb/tools/rocksdb_dump] Error 1
CMakeFiles/Makefile2:633: recipe for target 'deps/rocksdb/tools/CMakeFiles/rocksdb_dump.dir/all' failed
make[1]: *** [deps/rocksdb/tools/CMakeFiles/rocksdb_dump.dir/all] Error 2
CMakeFiles/wwsearch.dir/build.make:758: recipe for target 'CMakeFiles/wwsearch.dir/src/virtual_db_rocks.cpp.o' failed
make[2]: *** [CMakeFiles/wwsearch.dir/src/virtual_db_rocks.cpp.o] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/wwsearch.dir/all' failed
make[1]: *** [CMakeFiles/wwsearch.dir/all] Error 2
../librocksdb.so.5.16.6: undefined reference to inflateInit2_' ../librocksdb.so.5.16.6: undefined reference to inflate'
../librocksdb.so.5.16.6: undefined reference to deflateSetDictionary' ../librocksdb.so.5.16.6: undefined reference to deflateInit2_'
../librocksdb.so.5.16.6: undefined reference to deflate' ../librocksdb.so.5.16.6: undefined reference to inflateSetDictionary'
../librocksdb.so.5.16.6: undefined reference to deflateEnd' ../librocksdb.so.5.16.6: undefined reference to inflateEnd'
collect2: error: ld returned 1 exit status
deps/rocksdb/tools/CMakeFiles/db_sanity_test.dir/build.make:97: recipe for target 'deps/rocksdb/tools/db_sanity_test' failed
make[2]: *** [deps/rocksdb/tools/db_sanity_test] Error 1
CMakeFiles/Makefile2:490: recipe for target 'deps/rocksdb/tools/CMakeFiles/db_sanity_test.dir/all' failed
make[1]: *** [deps/rocksdb/tools/CMakeFiles/db_sanity_test.dir/all] Error 2

@mars00772
Copy link

11 set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_COMMON_FLAGS} -lpthread -lrt -lz -g")
12 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_COMMON_FLAGS} -lpthread -std=c++11 -lrt -lz -g")
13 set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl -lrt -lz")

@mars00772
Copy link

添加lz

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