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

undefined reference error when building #14

Closed
003random opened this issue Nov 6, 2022 · 2 comments
Closed

undefined reference error when building #14

003random opened this issue Nov 6, 2022 · 2 comments

Comments

@003random
Copy link

Hi!

Im trying to follow the steps in https://github.com/facebookincubator/dns/blob/main/dnsrocks/docs/getting_started.md but im getting an error when trying to build dnsrocks-data for the first step.

Im running CGO_CFLAGS_ALLOW="(?s).*" CGO_LDFLAGS_ALLOW="(?s).*" CGO_CXXFLAGS_ALLOW="(?s).*" go build cmd/dnsrocks-data/dnsrocks-data.go.
Expected was a successfully builded dnsrocks-data bin. But im getting the following output/errors:

/usr/bin/ld: $WORK/b079/_x005.o: in function `_cgo_1d2241184754_Cfunc_rocksdb_open_as_secondary':
/tmp/go-build/cgo-gcc-prolog:263: undefined reference to `rocksdb_open_as_secondary'
/usr/bin/ld: $WORK/b079/_x005.o: in function `_cgo_1d2241184754_Cfunc_rocksdb_try_catch_up_with_primary':
/tmp/go-build/cgo-gcc-prolog:338: undefined reference to `rocksdb_try_catch_up_with_primary'
/usr/bin/ld: $WORK/b079/_x009.o: in function `_cgo_1d2241184754_Cfunc_rocksdb_options_set_bottommost_compression':
/tmp/go-build/cgo-gcc-prolog:163: undefined reference to `rocksdb_options_set_bottommost_compression'
collect2: error: ld returned 1 exit status
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C
# github.com/facebookincubator/dns/dnsrocks/cgo-rocksdb
cc1: warning: command line option ‘-std=c++17’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-faligned-new=1’ is valid for C++/ObjC++ but not for C

Im running Debian 10 on a digitalocean droplet.

@deathowl
Copy link
Member

deathowl commented Nov 7, 2022

Hi, thanks for reaching out! The build is expected to work against rocksdb v7.3 as per our github actions build scripts . We'll add a documentation on how to build dnsrocks soon!

@deathowl
Copy link
Member

deathowl commented Nov 7, 2022

Added docs in c19f415 closing

@deathowl deathowl closed this as completed Nov 7, 2022
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

2 participants