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

Not enough arguments in call to _Cfunc_rocksdb_approximate_sizes #203

Open
arlottang opened this issue Jan 29, 2021 · 5 comments
Open

Not enough arguments in call to _Cfunc_rocksdb_approximate_sizes #203

arlottang opened this issue Jan 29, 2021 · 5 comments

Comments

@arlottang
Copy link

arlottang commented Jan 29, 2021

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 arlottang changed the title ot enough arguments in call to _Cfunc_rocksdb_approximate_sizes Not enough arguments in call to _Cfunc_rocksdb_approximate_sizes Jan 29, 2021
@zengzhiying
Copy link

zengzhiying commented Mar 17, 2021

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.

flier added a commit to flier/gorocksdb that referenced this issue Mar 22, 2021
@arlottang
Copy link
Author

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

roysc pushed a commit to roysc/gorocksdb that referenced this issue Jul 14, 2021
roysc added a commit to roysc/gorocksdb that referenced this issue Jul 14, 2021
@bestkillua
Copy link

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

@magmel48
Copy link

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

@bigsheeper
Copy link

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 ()

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

5 participants