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

build failed under Debian Buster #1132

Closed
kairaven opened this issue Jan 3, 2020 · 2 comments
Closed

build failed under Debian Buster #1132

kairaven opened this issue Jan 3, 2020 · 2 comments

Comments

@kairaven
Copy link

kairaven commented Jan 3, 2020

What is affected by this bug?

build of the dnscrypt-proxy binary. The build process aborts with:
# vendor/github.com/kardianos/service ../vendor/github.com/kardianos/service/service_linux.go:66:6: isInteractive redeclared in this block previous declaration at ../vendor/github.com/kardianos/service/service_aix.go:75:29

When does this occur?

after the command
go build -ldflags="-s -w" -o $GOPATH/linux-amd64/dnscrypt-proxy

Where does it happen?

after
/opt/git/dcp$ export GOPATH=$PWD
/opt/git/dcp$ cd src/dnscrypt-proxy/
in /opt/git/dcp/src/dnscrypt-proxy

How do we replicate the issue?

sudo aptitude install git golang

mkdir /opt/git/dcp
cd dcp
git clone https://github.com/jedisct1/dnscrypt-proxy src
export GOPATH=$PWD
cd src/dnscrypt-proxy/
go clean
go build -ldflags="-s -w" -o $GOPATH/linux-amd64/dnscrypt-proxy

@jedisct1
Copy link
Member

jedisct1 commented Jan 4, 2020

It is only tested with the current stable version of Go.

Looks like Debian has a pretty old version of the compiler. Messing with GOPATH hasn't been necessary for quite some time.

Releases are built with:

cd dnscrypt-proxy
env CGO_ENABLED=0 go build -mod vendor

Also this error seems to be in a 3rd party package (kardianos/service) not in dnscrypt-proxy. So bugs should be reported and fixed there.

@jedisct1 jedisct1 closed this as completed Jan 4, 2020
@kairaven
Copy link
Author

kairaven commented Jan 4, 2020

Thx for you info. After installing go 1.13 from the Debian testing repository, all works fine (with the mentioned command and without errors regarding kardianos/service).

@DNSCrypt DNSCrypt locked and limited conversation to collaborators Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants