FiloSottile / Heartbleed

A checker (site and tool) for CVE-2014-0160
http://filippo.io/Heartbleed
MIT License
2.31k stars 463 forks source link

... Build errors #5

Closed gholol closed 10 years ago

gholol commented 10 years ago

dev@dev:~/Desktop$ go get github.com/titanous/heartbleeder

github.com/titanous/heartbleeder/tls

../dev/Desktop/src/github.com/titanous/heartbleeder/tls/cipher_suites.go:66: undefined: cipher.AEAD ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/cipher_suites.go:133: undefined: cipher.AEAD ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/cipher_suites.go:146: not enough arguments to return ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/cipher_suites.go:149: undefined: cipher.AEAD ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/cipher_suites.go:154: undefined: cipher.NewGCM ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/conn.go:256: undefined: cipher.AEAD ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/conn.go:267: c.Overhead undefined (type interface {} has no field or method Overhead) ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/conn.go:271: c.Open undefined (type interface {} has no field or method Open) ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/conn.go:373: undefined: cipher.AEAD ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/handshake_server.go:556: undefined: crypto.PublicKey ../dev/Desktop/src/github.com/titanous/heartbleeder/tls/conn.go:373: too many errors

PaulNokel commented 10 years ago
git clone https://github.com/FiloSottile/Heartbleed.git
cd Heartbleed
# set $GOPATH
go get ./...
go build
./Heartbleed

works for me

gholol commented 10 years ago

still the same issue on Ubuntu 12.04

Does it require go.crypto package?

DisposaBoy commented 10 years ago

@gholol it sounds like you're using an out-dated version of Go. The latest version is go1.2.1 https://code.google.com/p/go/downloads/list

joudinet commented 10 years ago

Same compilation errors on Ubuntu 13.10 (saucy). I installed golang from official Ubuntu packages: $ go version go version go1.1.2 linux/amd64

DisposaBoy commented 10 years ago

@joudinet that version of Go is out-dated (as distro packages usually are)

FiloSottile commented 10 years ago

Go 1.2 is required. Please install Go from source. Now documented thanks to #9