gorocksdb icon indicating copy to clipboard operation
gorocksdb copied to clipboard

Not enough arguments in call to _Cfunc_rocksdb_approximate_sizes

Open arlottang opened this issue 4 years ago • 5 comments

go: github.com/tecbot/gorocksdb upgrade => v0.0.0-20191217155057-f0fad39f321c #github.com/tecbot/gorocksdb ../DB/GOPATH/pkg/mod/github.com/tecbot/[email protected]/db.go:609:29: not enough arguments in call to _Cfunc_rocksdb_approximate_sizes have (*_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, _Ctype_ulong) want (_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, _Ctype_ulong, **_Ctype_char) ../DB/GOPATH/pkg/mod/github.com/tecbot/[email protected]/db.go:650:32:not enough arguments in call to _Cfunc_rocksdb_approximate_sizes_cf have (_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, _Ctype_ulong) want (_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong, **_Ctype_char)

arlottang avatar Jan 29 '21 11:01 arlottang

Hello,Rocksdb has made incompatible changes to the functions rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in version 6.16.0. Refer to: https://github.com/facebook/rocksdb/blob/master/HISTORY.md, The content is:rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in the C API now requires an error pointer (char** errptr) for receiving any error. Therefore, there will be no errors when compiling with 6.15.x or earlier versions of rocksdb.

zengzhiying avatar Mar 17 '21 13:03 zengzhiying

Hello,Rocksdb has made incompatible changes to the functions rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in version 6.16.0. Refer to: https://github.com/facebook/rocksdb/blob/master/HISTORY.md, The content is:rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in the C API now requires an error pointer (char** errptr) for receiving any error. Therefore, there will be no errors when compiling with 6.15.x or earlier versions of rocksdb.

Thanks for your answer

arlottang avatar Mar 25 '21 10:03 arlottang

Hello, I meet the same question, have any plan to fix it?

bestkillua avatar Jul 17 '21 16:07 bestkillua

have the same problem. Looks like the repo is dead.

magmel48 avatar Oct 16 '21 12:10 magmel48

Hello,Rocksdb has made incompatible changes to the functions rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in version 6.16.0. Refer to: https://github.com/facebook/rocksdb/blob/master/HISTORY.md, The content is:rocksdb_approximate_sizes and rocksdb_approximate_sizes_cf in the C API now requires an error pointer (char** errptr) for receiving any error. Therefore, there will be no errors when compiling with 6.15.x or earlier versions of rocksdb.

Hi, I still met this problem with RocksDB 6.15.2:

if ( APPLE )
    set( ROCKSDB_VERSION "6.27.3" )
    set( ROCKSDB_SOURCE_URL
            "https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz")
else ()
    set( ROCKSDB_VERSION "6.15.2" )
    set( ROCKSDB_SOURCE_URL
            "https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz")
endif ()

bigsheeper avatar Jun 24 '22 02:06 bigsheeper