-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
go-sqlite3 "Too many errors" #11
Comments
What version of Go are you using? I found a post on the Go mailing list that claims this was an issue with Go 1.1.1 and is fixed in Go 1.1.2 here. If you're running Go 1.1.2 and still having issues, please try the following: $ go install -ldflags '-linkmode=external' github.com/mattn/go-sqlite3 In the near future, as soon as the package is stable, we plan to move to the pure Go leveldb implementation which will alleviate the need for cgo altogether and will reduce these types of issues. |
The go-sqlite issue is being tracked on mattn/go-sqlite3#80. |
The error causing this is fixed in Go 1.2 and HEAD branch right now. Just installed HEAD ( |
Another go-sqlite3 error
@collindean I'm not able to install @davecgh same error running |
@rdymac This is one of the problems with having a cgo dep. Luckily sqlite is going to be removed in short order in favor of the pure Go leveldb implementation which has already been made the default. Aside from not using cgo, it also happens to be way faster, so it's a net win. However, if you want to try and get it to work in the mean time, does mattn/go-sqlite3#80 (comment) work for you? |
Trying that comment you shared I have just mistakenly installed an older version of gcc, it is taken ages; so I don't think I'll do it again for the correct version. I think I'll wait for the removing of this dep to try btcd out. Thanks for the answer |
After some experimenting, I can also confirm that on OSX 10.8, go1.1.2 will not build go-sqlite3 (and therefore will not build btcd). go tip and hopefully go1.2 when it comes out do work just fine. |
I'm going to close this since it's resolved as of the latest version of Go. |
- Group the new read/writeVarBytes functions together to be consistent with the existing code - Modify the comments on the new read/writeVarBytes to be a little more descriptive and consistent with existing code - Use "test payload" for field name in the tests for the read/writeVarBytes functions which is more accurate - Remove reserved param from NewAlert since there is no point is having the caller deal with a reserved param - Various comment tweaks for clarity and consistency - Use camel case for fuction params for consistency - Move the NewAlert and NewAlertFromPayload functions after the receiver definitions for code layout consistency Closes btcsuite#11.
Update btcd.conf to use ports used by Peercoin
Most stuff in the file was still for dcrd. Closes btcsuite#11
Closes btcsuite#11. ok @davecgh
…ents Utreexo flatfile improvements
mempool/estimatefee: Fix negative index bug
Hi. I am trying to get this running with Go: go1.1.2 darwin/amd64
Running:
go get github.com/conformal/btcd
Gives me the output
$ go get github.com/conformal/btcd
github.com/conformal/btcd
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol close
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol access
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol getcwd
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol stat$INODE64
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fstat$INODE64
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol ftruncate
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fcntl
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol read
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol pread
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol write
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol pwrite
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol fchmod
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol unlink
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol mkdir
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol rmdir
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol mmap
github.com/mattn/go-sqlite3(__DATA/__data): unexpected reloc for dynamic symbol munmap
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for close (type 28 rtype 120)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for access (type 28 rtype 120)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for getcwd (type 28 rtype 120)
github.com/mattn/go-sqlite3(__DATA/__data): unhandled relocation for stat$INODE64 (type 28 rtype 120)
too many errors
Any thoughts?
The text was updated successfully, but these errors were encountered: