gorocksdb icon indicating copy to clipboard operation
gorocksdb copied to clipboard

could not determine kind of name for C.*

Open LikeTheWindGone opened this issue 1 year ago • 6 comments

my env

os: ubuntu 22 amd 64
go version: 1.22
rocksdb version: 9.2.0

the header files is at '/usr/include/rocksdb' and librocksdb.so is at '/usr/lib/x86_64-linux-gnu' ,

get gorocksdb by

CGO_CFLAGS="-I/usr/include" CGO_LDFLAGS="-L/usr/lib/x86_64-linux-gnu -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd"   go get github.com/tecbot/gorocksdb

output:

# github.com/tecbot/gorocksdb
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:948:2: could not determine kind of name for C.rocksdb_options_set_access_hint_on_compaction_start
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:759:2: could not determine kind of name for C.rocksdb_options_set_hard_rate_limit
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:498:2: could not determine kind of name for C.rocksdb_options_set_max_mem_compaction_level
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:871:2: could not determine kind of name for C.rocksdb_options_set_purge_redundant_kvs_while_flush
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:767:2: could not determine kind of name for C.rocksdb_options_set_rate_limit_delay_max_milliseconds
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:910:2: could not determine kind of name for C.rocksdb_options_set_skip_log_error_on_recovery
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:750:2: could not determine kind of name for C.rocksdb_options_set_soft_rate_limit
../../../gopath/pkg/mod/github.com/tecbot/[email protected]/options.go:793:2: could not determine kind of name for C.rocksdb_options_set_table_cache_remove_scan_count_limit

help wanted

LikeTheWindGone avatar Apr 24 '24 13:04 LikeTheWindGone

Same error

Fantasim avatar Apr 26 '24 09:04 Fantasim

same error, ubuntu18 is ok

Tsan1024 avatar Jun 24 '24 08:06 Tsan1024

https://github.com/linxGnu/grocksdb.git is ok

Tsan1024 avatar Jun 24 '24 08:06 Tsan1024

Hi, I encouterde the same error, and i solve it throughing down grade the rocksdb version, which my os is ubuntu 20.04, and go version is 1.21, the rocksdb version is 6.8.1

obrr-hhx avatar Jul 04 '24 03:07 obrr-hhx

github.com/tecbot/gorocksdb

/root/go/pkg/mod/github.com/tecbot/[email protected]/db.go:783:2: could not determine kind of name for C.rocksdb_delete_file

theamosburton avatar Jan 27 '25 18:01 theamosburton