mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

build fails on debian jessie x86_64: undefined: unix.Errno #33

Closed atkinsj closed 5 years ago

atkinsj commented 5 years ago

Any suggestions?

root@31e07f454ad2:~# go get github.com/mdlayher/raw
# github.com/mdlayher/raw
/go/src/github.com/mdlayher/raw/raw_linux.go:317: undefined: unix.Errno
/go/src/github.com/mdlayher/raw/raw_linux.go:330: undefined: unix.Errno
root@31e07f454ad2:/go/src/github.com/mdlayher/raw# uname -a
Linux 31e07f454ad2 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 GNU/Linux
root@31e07f454ad2:/go/src/github.com/mdlayher/raw# cat /etc/*elease
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
mdlayher commented 5 years ago

https://godoc.org/golang.org/x/sys/unix#Errno

You're most likely either using an old version of Go (1.11.1 is current) or your clone of x/sys is out of date:

$ go get -u golang.org/x/sys/unix
atkinsj commented 5 years ago

Bah! That was it, was still on Go 1.8.7. Sorry for taking up your time, thanks for the super quick response!

mdlayher commented 5 years ago

No worries!