safchain / ethtool

A simple ethtool "like" library for GO
Apache License 2.0
116 stars 69 forks source link

build error on GOOS=linux and GOARCH=386 #15

Closed monotone closed 6 years ago

monotone commented 6 years ago

when i run GOOS=linux GOARCH=386 go build in my application who use your package ethtool

github.com/safchain/ethtool/ethtool.go:205:35: undefined: syscall.SYS_SOCKET

it is because SYS_SOCKET are not defined on zsysnum_linux_386, but it defined SYS_SOCKETCALL, I do`t known the difference of them.

satta commented 6 years ago

I can confirm this issue, leading to build failures on Debian i386: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/i386/golang-github-safchain-ethtool.html

satta commented 6 years ago

@monotone Does https://github.com/satta/ethtool/commit/b76b421d8c6bb9befdb58f8311e778ce617bbbbd fix your issue?