You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am opening this issue as I am facing the error for building the static library. the static library is not linked to use lz4 or cityhash. I don't see this error when using shared libraries but for my case I need to opt in for static library. @Enmk any hints?
/usr/local/lib/libclickhouse-cpp-lib.a(types.cpp.o): In function `clickhouse::Type::GetTypeUniqueId() const':
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/types/types.cpp:166: undefined reference to `CityHash64WithSeed(char const*, unsigned long, unsigned long)'
/usr/local/lib/libclickhouse-cpp-lib.a(compressed.cpp.o): In function `clickhouse::CompressedOutput::Compress(void const*, unsigned long)':
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/base/compressed.cpp:145: undefined reference to `LZ4_compress_default'
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/base/compressed.cpp:159: undefined reference to `CityHash128(char const*, unsigned long)'
/usr/local/lib/libclickhouse-cpp-lib.a(compressed.cpp.o): In function `clickhouse::CompressedOutput::PreallocateCompressBuffer(unsigned long)':
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/base/compressed.cpp:167: undefined reference to `LZ4_compressBound'
/usr/local/lib/libclickhouse-cpp-lib.a(compressed.cpp.o): In function `clickhouse::CompressedInput::Decompress()':
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/base/compressed.cpp:90: undefined reference to `CityHash128(char const*, unsigned long)'
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/base/compressed.cpp:97: undefined reference to `LZ4_decompress_safe'
/usr/local/lib/libclickhouse-cpp-lib.a(lowcardinality.cpp.o): In function `clickhouse::ColumnLowCardinality::computeHashKey(clickhouse::ItemView const&)':
/home/kousha.2/projects/release_inam/inam/clickhouse-cpp/clickhouse/columns/lowcardinality.cpp:225: undefined reference to `CityHash64(char const*, unsigned long)'
The text was updated successfully, but these errors were encountered:
Here you are cmake .. -DBUILD_TESTS=ON -DCMAKE_CXX_FLAGS="-std=c++17" -DCMAKE_CXX_COMPILER=/opt/gcc/7.5.0/bin/g++ -DCMAKE_C_COMPILER=/opt/gcc/7.5.0/bin/gcc -DCMAKE_EXE_LINKER_FLAGS="-L/opt/gcc/7.5.0/lib64" -DBUILD_SHARED_LIBS=OFF
I am opening this issue as I am facing the error for building the static library. the static library is not linked to use lz4 or cityhash. I don't see this error when using shared libraries but for my case I need to opt in for static library. @Enmk any hints?
The text was updated successfully, but these errors were encountered: