Issue Description
I am trying to build stalwart from source using 11.1.2 of rocksdb however it fails to compile and build.
Expected Behavior
Should be able to compile and use rocksdb 11 as backend
Actual Behavior
stalwart fails to compile with rocksdb 11 libraries
Reproduction Steps
- build rocksdb 11 from source
export ROCKSDB_INCLUDE_DIR=/path/to/rocksdb11/build/includeexport ROCKSDB_LIB_DIR=/pathj/to/rocksdb11/build/lib- build
stalwartfrom source (tag:v0.16.11)
Relevant Log Output
...
Compiling rocksdb v0.24.0
Compiling virtue v0.0.18
Compiling decancer v3.3.3
error[E0425]: cannot find function `rocksdb_options_set_skip_checking_sst_file_sizes_on_db_open` in crate `ffi`
--> /nix/var/nix/builds/nix-47127-4213388205/stalwart-0.16.11-vendor/source-registry-0/rocksdb-0.24.0/src/db_options.rs:2716:18
|
2716 | ffi::rocksdb_options_set_skip_checking_sst_file_sizes_on_db_open(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `ffi`
Compiling constant_time_eq v0.3.1
Compiling prometheus v0.14.0
Compiling totp-rs v5.7.2
error[E0061]: this function takes 5 arguments but 6 arguments were supplied
--> /nix/var/nix/builds/nix-47127-4213388205/stalwart-0.16.11-vendor/source-registry-0/rocksdb-0.24.0/src/slice_transform.rs:49:13
|
49 | ffi::rocksdb_slicetransform_create(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
56 | Some(slice_transform_name_callback),
| ----------------------------------- unexpected argument #6 of type `Option<unsafe extern "C" fn(*mut c_void) -> *const i8 {slice_transfo_`
|
note: function defined here
--> /nix/var/nix/builds/nix-47127-4213388205/source/target/aarch64-apple-darwin/release/build/librocksdb-sys-2aa72d5739d9444c/out/bindings.rs:3:164766
|
3 | ...ut libc :: c_char) ; } unsafe extern "C" { pub fn rocksdb_slicetransform_create (state : * mut libc :: c_void , destructor : :: s...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: remove the extra argument
|
55 - None,
56 - Some(slice_transform_name_callback),
55 + None,
|
Compiling jsonwebtoken v10.4.0
Compiling bincode_derive v2.0.1
Some errors have detailed explanations: E0061, E0425.
For more information about an error, try `rustc --explain E0061`.
Stalwart Version
v0.16.x
Installation Method
Built from source
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
related: Update Request: rocksdb 10.10.1 → 11.1.2 · Issue #536878 · NixOS/nixpkgs · GitHub
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on