Not building - errors
This package is not building for me (on Ubuntu Server 15.04). The error is:
go/src/github.com/miekg/dns/dnssec.go:257: undefined: crypto.Signer
go/src/github.com/miekg/dns/dnssec.go:321: undefined: crypto.Signer
go/src/github.com/miekg/dns/sig0.go:16: undefined: crypto.Signer
Am I doing something wrong, or is this an error with the code?
crypto.Signer was introduced in Go 1.4. You probably have an earlier version (you can check with go version).
Yep, I’m running 'go version go1.3.3 linux/amd64’
I’ll try with a newer version.
It's a very annoying problem since Debian stable is at version 1.3.3. Any workaround?
No work around.... go dns supports the last 2 releases. Upgrade your golang is your only option or try installing newer golang from a newer debian. On 13 Oct 2015 09:11, "Stéphane Bortzmeyer" [email protected] wrote:
It's a very annoying problem since Debian stable is at version 1.3.3. Any workaround?
— Reply to this email directly or view it on GitHub https://github.com/miekg/dns/issues/276#issuecomment-147640849.
Currently no backports of Golang for Debian "stable" ("jessie"). And the packages from the newer "testing" version ("stretch") don't install. I had to upgrade a machine to "testing" and to make all my Go DNS compilations there :-( And the executables I build there are not portable on older machines: "exec format error" So, yes, this problem is really painful.
@bortzmeyer you could build your own Go, or implement a crypto.Signer equivalent for <1.4 and use build constraints to bring in the appropriate implementations, interfaces and intermediaries. Is the later something you'd consider accepting a patch for @miekg?
I dunno... crypto.Signer was a major cleanup; don't like to add things back in just to make debian-stable happy. I don't really see why using Go (from source) would be a problem as this only needs to happen on the dev/build machines. Distributing go binaries is a non-issue.
Some I'm leaning towards 'no', but if I can be done cleanly and separately I'm willing to accept PRs to support go 1.3 again.
My idea would not work, it requires too much work for new types in 1.4 and up too...
striking it out.
c̶r̶y̶p̶t̶o̶.̶H̶a̶s̶h̶ ̶i̶s̶ ̶t̶y̶p̶e̶ ̶t̶h̶a̶t̶ ̶w̶a̶s̶ ̶c̶h̶a̶n̶g̶e̶d̶ ̶a̶l̶o̶n̶g̶ ̶t̶h̶e̶ ̶w̶a̶y̶ ̶t̶o̶ ̶c̶r̶e̶a̶t̶e̶ ̶c̶r̶y̶p̶t̶o̶.̶S̶i̶g̶n̶e̶r̶.̶ ̶I̶t̶ ̶w̶o̶u̶l̶d̶ ̶r̶e̶q̶u̶i̶r̶e̶ ̶b̶i̶g̶g̶e̶r̶ ̶c̶h̶a̶n̶g̶e̶s̶ ̶t̶o̶ ̶d̶n̶s̶ ̶l̶i̶b̶ ̶t̶h̶a̶n̶ ̶j̶u̶s̶t̶ ̶a̶d̶d̶i̶n̶g̶ ̶m̶i̶s̶i̶s̶n̶g̶ ̶S̶i̶g̶n̶e̶r̶ ̶a̶n̶d̶ ̶S̶i̶g̶n̶e̶r̶O̶p̶t̶s̶ ̶i̶n̶t̶e̶r̶f̶a̶c̶e̶s̶.̶ ̶S̶u̶r̶e̶ ̶i̶t̶ ̶a̶l̶s̶o̶ ̶c̶o̶u̶l̶d̶ ̶b̶e̶ ̶p̶u̶l̶l̶e̶d̶ ̶t̶o̶ ̶s̶p̶e̶c̶i̶a̶l̶ ̶l̶i̶b̶ ̶t̶h̶a̶t̶ ̶w̶o̶u̶l̶d̶ ̶a̶b̶s̶t̶r̶a̶c̶t̶ ̶t̶h̶i̶n̶g̶s̶ ̶a̶w̶a̶y̶ ̶f̶r̶o̶m̶ ̶D̶N̶S̶ ̶l̶i̶b̶,̶ ̶I̶ ̶j̶u̶s̶t̶ ̶d̶o̶n̶'̶t̶ ̶k̶n̶o̶w̶ ̶w̶h̶a̶t̶ ̶i̶s̶ ̶g̶o̶o̶d̶ ̶p̶a̶t̶t̶e̶r̶n̶.̶.̶.̶ ̶ ̶h̶t̶t̶p̶s̶:̶/̶/̶g̶i̶s̶t̶.̶g̶i̶t̶h̶u̶b̶.̶c̶o̶m̶/̶a̶s̶e̶r̶g̶e̶y̶e̶v̶/̶3̶8̶5̶9̶a̶8̶9̶9̶d̶6̶8̶1̶0̶1̶a̶3̶8̶c̶0̶3̶ ̶ ̶ ̶D̶i̶s̶c̶l̶a̶i̶m̶e̶r̶:̶ ̶I̶ ̶d̶o̶ ̶n̶o̶t̶ ̶c̶a̶r̶e̶ ̶a̶b̶o̶u̶t̶ ̶d̶e̶b̶i̶a̶n̶ ̶a̶s̶ ̶w̶e̶l̶l̶.̶ ̶I̶M̶O̶ ̶t̶h̶e̶r̶e̶ ̶i̶s̶ ̶n̶o̶ ̶n̶e̶e̶d̶ ̶t̶o̶ ̶a̶d̶d̶ ̶t̶h̶i̶s̶,̶ ̶j̶u̶s̶t̶ ̶s̶a̶y̶i̶n̶g̶ ̶i̶t̶'̶s̶ ̶p̶o̶s̶s̶i̶b̶l̶e̶ ̶t̶o̶ ̶p̶u̶t̶ ̶b̶r̶a̶n̶c̶h̶ ̶o̶u̶t̶ ̶t̶h̶e̶r̶e̶ ̶f̶o̶r̶ ̶p̶e̶o̶p̶l̶e̶ ̶w̶h̶o̶ ̶c̶a̶r̶e̶.̶
This can probably be closed. If and when a PR is submitted discussion can continue there.
@bortzmeyer you may use Docker to easily switch from one version to another.
FWIW jessie-backports now ships with golang 1.5.1 so it shouldn't be a problem to build there