bigeagle / gohop

A VPN implemention in golang, with crypto and obfuscation in nature.
1.33k stars 195 forks source link

Can't build progect from source. #1

Closed andreykyz closed 10 years ago

andreykyz commented 10 years ago

May be I use wrong golang version? Which is golang version acceptable?

andrey@andrey-Extensa-5220:~/sandbox/gohop-0.0.2$ go get github.com/bigeagle/go-logging
andrey@andrey-Extensa-5220:~/sandbox/gohop-0.0.2$ go get github.com/bigeagle/water
andrey@andrey-Extensa-5220:~/sandbox/gohop-0.0.2$ go get code.google.com/p/gcfg
andrey@andrey-Extensa-5220:~/sandbox/gohop-0.0.2$ go get github.com/bigeagle/gohop
# github.com/bigeagle/gohop/hop
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/buffer.go:58: hb.timer.Reset undefined (type *time.Timer has no field or method Reset)
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/buffer.go:68: hb.timer.Reset undefined (type *time.Timer has no field or method Reset)
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:212: method clt.handleHandshakeAck is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:213: method clt.handleHandshakeError is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:214: method clt.handleDataPacket is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:215: method clt.handleDataPacket is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:216: method clt.handleFinishAck is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/iface.go:116: undefined: bufio.NewScanner
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/iface.go:117: undefined: bufio.ScanWords
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/server.go:216: method srv.handleKnock is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/server.go:216: too many errors
andrey@andrey-Extensa-5220:~/sandbox/gohop-0.0.2$ go install github.com/bigeagle/gohop
# github.com/bigeagle/gohop/hop
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/buffer.go:58: hb.timer.Reset undefined (type *time.Timer has no field or method Reset)
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/buffer.go:68: hb.timer.Reset undefined (type *time.Timer has no field or method Reset)
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:212: method clt.handleHandshakeAck is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:213: method clt.handleHandshakeError is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:214: method clt.handleDataPacket is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:215: method clt.handleDataPacket is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:216: method clt.handleFinishAck is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/iface.go:116: undefined: bufio.NewScanner
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/iface.go:117: undefined: bufio.ScanWords
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/server.go:216: method srv.handleKnock is not an expression, must be called
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/server.go:216: too many errors
bigeagle commented 10 years ago

At least go 1.1 is needed.

andreykyz commented 10 years ago

I've solved compiler version problem. But get another one problem:

$ go get github.com/bigeagle/go-logging
$ go get github.com/bigeagle/water
$ go get code.google.com/p/gcfg
$ go get github.com/bigeagle/gohop
$ go build github.com/bigeagle/gohop
# github.com/bigeagle/gohop/hop
/usr/lib/go/src/pkg/github.com/bigeagle/gohop/hop/client.go:31: import /usr/lib/go/pkg/linux_amd64/github.com/bigeagle/water.a: not a package file
bigeagle commented 10 years ago

maybe it's because you've built water in go 1.0, you can first remove /usr/lib/go/pkg/linux_amd64/github.com/bigeagle/water.a, then build it again

andreykyz commented 10 years ago

Exactly. Thanks.