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

Error when import keys "github.com/binance-chain/go-sdk/keys" #80

Closed
elvis-hp opened this issue Aug 14, 2019 · 2 comments
Closed

Error when import keys "github.com/binance-chain/go-sdk/keys" #80

elvis-hp opened this issue Aug 14, 2019 · 2 comments

Comments

@elvis-hp
Copy link

elvis-hp commented Aug 14, 2019

I added your libs, ex: "github.com/binance-chain/go-sdk/keys"
...
and use NewKeyManager method
and I also use libs: gobcy, btcsuite, go-ethereum ...
but when I run "go run server.go" for my API
I got an error bellow.
Can anybody help me fix this, thank you very much!
I think it ref to zondax lib, because eth new version use this lib too.

Phuong_Mac$ go run server.go 
# command-line-arguments
/usr/local/Cellar/go/1.12.5/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
duplicate symbol _hid_read_timeout in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_get_feature_report in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_send_feature_report in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_exit in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_init in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_error in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_free_enumeration in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_open in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_open_path in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_get_product_string in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_get_manufacturer_string in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_get_serial_number_string in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_get_indexed_string in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_set_nonblocking in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_write in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_enumerate in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_close in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _hid_read in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000031.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000035.o
duplicate symbol _gowchar_set in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000032.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000038.o
duplicate symbol _gowchar_get in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000032.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000038.o
duplicate symbol _SIZEOF_WCHAR_T in:
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000032.o
    /var/folders/96/hxkc6mhn1v711hytk9z4w5wc0000gn/T/go-link-990687738/000038.o
ld: 21 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@elvis-hp
Copy link
Author

elvis-hp commented Aug 16, 2019

fixed. The go-sdk use zondax, and eth new version also use zondax lib, I removed it in go-sdk.

@yanlongLv
Copy link

hi:
How did you remove zondax in go-sdk?

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