benjojo / sping

Split ping, see what direction the loss or latency is on
MIT License
308 stars 19 forks source link

undefined unix.* ? #1

Closed job closed 3 years ago

job commented 3 years ago

On this system

job@bench sping$ uname -a
OpenBSD bench.sobornost.net 6.9 GENERIC.MP#368 amd64

I see this error when trying to build:

job@bench sping$ go build .
go: downloading github.com/beevik/ntp v0.3.0
go: downloading github.com/prometheus/client_golang v1.9.0
go: downloading github.com/vmihailenco/msgpack/v4 v4.3.12
go: downloading golang.org/x/sys v0.0.0-20210123111255-9b0068b26619
go: downloading golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
go: downloading golang.org/x/net v0.0.0-20210119194325-5f4716e94777
go: downloading github.com/vmihailenco/tagparser v0.1.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.15.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/procfs v0.2.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading google.golang.org/protobuf v1.25.0
# github.com/benjojo/sping
./pps.go:27:8: undefined: unix.PPSKParams
./pps.go:28:56: undefined: unix.PPS_GETPARAMS
./pps.go:36:70: undefined: unix.PPS_SETPARAMS
./pps.go:54:7: undefined: unix.PPSFData
./pps.go:56:69: undefined: unix.PPS_FETCH
nalzok commented 3 years ago

I'm also getting a similar error on macOS 10.14

$ go build
go: downloading github.com/beevik/ntp v0.3.0
go: downloading github.com/prometheus/client_golang v1.9.0
go: downloading github.com/vmihailenco/msgpack/v4 v4.3.12
go: downloading golang.org/x/sys v0.0.0-20210123111255-9b0068b26619
go: downloading golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
go: downloading golang.org/x/net v0.0.0-20210119194325-5f4716e94777
go: downloading github.com/vmihailenco/tagparser v0.1.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.15.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/procfs v0.2.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading google.golang.org/protobuf v1.25.0
# github.com/benjojo/sping
./pps.go:27:8: undefined: unix.PPSKParams
./pps.go:28:56: undefined: unix.PPS_GETPARAMS
./pps.go:36:70: undefined: unix.PPS_SETPARAMS
./pps.go:54:7: undefined: unix.PPSFData
./pps.go:56:69: undefined: unix.PPS_FETCH
benjojo commented 3 years ago

Alas, I had not considered !Linux, Allow me some time to remove the PPS function from non-Linux OS targest

benjojo commented 3 years ago

Should now build on Darwin and OpenBSD, just without PPS support

hellt commented 3 years ago

Hi Ben, Do you want me to contribute automated release build on semver tag and with storing artifacts in gh releases?

On Wed, 3 Mar 2021, 00:06 Ben Cox, notifications@github.com wrote:

Should now build on Darwin and OpenBSD, just without PPS support

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/benjojo/sping/issues/1#issuecomment-789287921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLKV5KNMIP5GAUUHYIQFYTTBVVP3ANCNFSM4YMPNV7Q .