Closed kayront closed 5 years ago
The syscall package is inherently system dependent. Those constants are not defined on Solaris. There is no simple approach we can take to fix this. If you want your system-dependent code to build on Solaris, you will need to port it to Solaris. Sorry.
What version of Go are you using (
go version
)?go version go1.12.5 solaris/amd64
Does this issue reproduce with the latest release?
Possibly.
What operating system and processor architecture are you using (
go env
)?go env
OutputGOARCH="amd64" GOBIN="" GOCACHE="/home/admin/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="solaris" GOOS="solaris" GOPATH="/home/admin/go" GOPROXY="" GORACE="" GOROOT="/opt/local/go112" GOTMPDIR="" GOTOOLDIR="/opt/local/go112/pkg/tool/solaris_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build234326747=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Attempted to compile dnscrypt-proxy2.
What did you expect to see?
A shiny binary that works on Solaris.
What did you see instead?
Chaos. Failure. Disappointment.