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

go get 报错 #22

Open
wongchao opened this issue Apr 16, 2018 · 1 comment
Open

go get 报错 #22

wongchao opened this issue Apr 16, 2018 · 1 comment

Comments

@wongchao
Copy link

wongchao commented Apr 16, 2018

Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

echo $GOPATH
/root/go

pwd
/root/go/src/github.com/open-falcon/mymon

go get ./...

golang.org/x/sys/unix

../../../golang.org/x/sys/unix/syscall_solaris.go:40: Pipe redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux_amd64.go:97
../../../golang.org/x/sys/unix/syscall_solaris.go:54: (*SockaddrInet4).sockaddr redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:363
../../../golang.org/x/sys/unix/syscall_solaris.go:68: (*SockaddrInet6).sockaddr redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:377
../../../golang.org/x/sys/unix/syscall_solaris.go:83: (*SockaddrUnix).sockaddr redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:392
../../../golang.org/x/sys/unix/syscall_solaris.go:109: Getsockname redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:776
../../../golang.org/x/sys/unix/syscall_solaris.go:120: GetsockoptString redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:808
../../../golang.org/x/sys/unix/syscall_solaris.go:130: ImplementsGetwd redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:232
../../../golang.org/x/sys/unix/syscall_solaris.go:134: Getwd redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:236
../../../golang.org/x/sys/unix/syscall_solaris.go:155: Getgroups redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:249
../../../golang.org/x/sys/unix/syscall_solaris.go:180: Setgroups redeclared in this block
previous declaration at ../../../golang.org/x/sys/unix/syscall_linux.go:275
../../../golang.org/x/sys/unix/syscall_solaris.go:180: too many errors

解决:
go version
go version go1.10.1 linux/amd64

@martianzhang
Copy link
Contributor

Duplicated with #36, now all the dependencies are managed with govendor tool.

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