rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

snappy-8.3.2 does not link to snappy when compiled with cmake

Open jasminemoore-verses opened this issue 2 years ago • 0 comments

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

rocksdb 8.3.2. does not honor WITH_SNAPPY=1 on a new build when compiled through cmake.

Compiler and build version:

jasmine@builds-MBP rocksdb % cmake --version                                                                 
cmake version 3.27.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
jasmine@builds-MBP rocksdb % gcc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Expected behavior

./ldb --db=$db scan can load a Snappy-compressed database if ldb was compiled with snappy

Actual behavior

$./ldb --db=$db scan
Failed: Not implemented: Unsupported compression method for this build: Snappy

Steps to reproduce the behavior

git clone [email protected]:facebook/rocksdb.git
git checkout v8.3.2
cmake -DWITH_SNAPPY=1 -DCMAKE_BUILD_TYPE=Release -DWITH_GFLAGS=1 -DWITH_ZLIB=1 .
make -j
./ldb --db=$db scan

jasminemoore-verses avatar Aug 11 '23 19:08 jasminemoore-verses