bigeagle / gohop

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

too many errors on Debian #2

Closed paway closed 10 years ago

paway commented 10 years ago

~# 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

bigeagle commented 10 years ago

Gohop need go 1.1, I guess your go version is 1.0

paway commented 10 years ago

yea,my golang version 1.02. Now go version go1.2 linux/386, i can install but gohop can not work ether. well, it has to be go 1.1, right?

bigeagle commented 10 years ago

No, go 1.2 is OK, actually I'm using Go 1.2 now, can u provide the error log?

paway commented 10 years ago

main.go:51: ERROR: invalid variable: section "server" subsection "" variable "port". thanks it's the config file problem.

bigeagle commented 10 years ago

I see, there's a bug in server.ini, please fetch the latest code and try again.

paway commented 10 years ago

i download the source and build. with default server.ini config, i get

main.go:51: ERROR: invalid variable: section "server" subsection "" variable "fixmss"

after add # before "fixmss = true" it runs!!! is there any problem?

bigeagle commented 10 years ago

Interesting, I cannot reproduce this.

could u provide gohop -version?

paway commented 10 years ago

unzip the source package go build i get "gohop-0.3.1-dev" chmod +x gohop-0.3.1-dev ./gohop-0.3.1-dev server.ini

for gohop version ./gohop-0.3.1-dev version i get " main.go:51: ERROR: open version: no such file or directory"

bigeagle commented 10 years ago

gohop -version instead of gohop version. But it's OK since I've known u're using gohop v0.3.1.

U still get "fixmss" error? Try deleting $GOPATH/pkg/github.com/bigeagle dir and build again.

paway commented 10 years ago

hi,your "https://github.com/bigeagle/gohop/releases/download/v0.3.1-dev/gohop.tar.bz2" works! but mine not.

bigeagle commented 10 years ago

it's strange and i've no idea.