Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apple build ? #121

Open
gedw99 opened this issue Feb 12, 2024 · 6 comments
Open

apple build ? #121

gedw99 opened this issue Feb 12, 2024 · 6 comments

Comments

@gedw99
Copy link

gedw99 commented Feb 12, 2024

Not sure if this is just not possible, but would be cool if it worked on Mac laptops too :)

fails at

github.com/nextdhcp/nextdhcp/core/socket

../../../pkg/mod/github.com/nextdhcp/nextdhcp@v0.6.0/core/socket/paket_conn.go:20:42: undefined: syscall.ETH_P_IP

go install github.com/nextdhcp/nextdhcp@latest
go: downloading github.com/nextdhcp/nextdhcp v0.6.0
go: downloading github.com/caddyserver/caddy v1.0.4
go: downloading github.com/apex/log v1.1.1
go: downloading github.com/mattn/go-isatty v0.0.11
go: downloading github.com/eclipse/paho.mqtt.golang v1.2.0
go: downloading github.com/insomniacslk/dhcp v0.0.0-20200102182701-53297fb6d37d
go: downloading github.com/gotify/go-api-client/v2 v2.0.4
go: downloading github.com/Knetic/govaluate v3.0.0+incompatible
go: downloading github.com/google/gopacket v1.1.17
go: downloading github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065
go: downloading go.etcd.io/bbolt v1.3.3
go: downloading github.com/ppacher/webthings-mqtt-gateway v0.0.0-20190827095024-c29a6f0aa947
go: downloading github.com/go-openapi/runtime v0.19.9
go: downloading golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553
go: downloading github.com/go-openapi/errors v0.19.3
go: downloading github.com/go-openapi/strfmt v0.19.4
go: downloading github.com/go-openapi/swag v0.19.6
go: downloading github.com/fatih/color v1.8.0
go: downloading github.com/mattn/go-colorable v0.1.4
go: downloading github.com/u-root/u-root v6.0.0+incompatible
go: downloading golang.org/x/sys v0.0.0-20200103143344-a1369afcdac7
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/mailru/easyjson v0.7.0
go: downloading gopkg.in/yaml.v2 v2.2.7
go: downloading github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading go.mongodb.org/mongo-driver v1.2.0
go: downloading github.com/go-openapi/analysis v0.19.7
go: downloading github.com/go-openapi/loads v0.19.4
go: downloading github.com/go-openapi/spec v0.19.5
go: downloading github.com/go-openapi/validate v0.19.5
go: downloading github.com/go-openapi/jsonreference v0.19.3
go: downloading github.com/go-openapi/jsonpointer v0.19.3
go: downloading golang.org/x/text v0.3.2
# github.com/nextdhcp/nextdhcp/core/socket
../../../pkg/mod/github.com/nextdhcp/nextdhcp@v0.6.0/core/socket/paket_conn.go:20:42: undefined: syscall.ETH_P_IP
make: *** [Makefile:23: build-dhcp] Error 1
@gaby
Copy link
Member

gaby commented Feb 12, 2024

@gedw99 Whats your go version? Is that using Apple M cpu's ?

@gedw99
Copy link
Author

gedw99 commented Feb 12, 2024

Yes it’s an m2 Mac Laptop

it’s the latest stable go version. Sorry can’t give exact version number as I am on a mobile.

@gedw99
Copy link
Author

gedw99 commented Feb 17, 2024

go version go1.21.7 darwin/arm64
M2 Mac ( latest version )

@gaby
Copy link
Member

gaby commented Feb 17, 2024

I noticed the unit tests fail when using MacOS. They get stuck and never finish. I have to investigate.

What happens if you try this:

go install github.com/nextdhcp/nextdhcp@master

@gedw99
Copy link
Author

gedw99 commented Feb 19, 2024

works

 go install github.com/nextdhcp/nextdhcp@master
go: downloading github.com/nextdhcp/nextdhcp v0.6.1-0.20240212133446-ea03f980da3b
go: downloading github.com/caddyserver/caddy v1.0.5
go: downloading github.com/insomniacslk/dhcp v0.0.0-20221215072855-de60144f33f8
go: downloading github.com/eclipse/paho.mqtt.golang v1.4.3
go: downloading github.com/google/gopacket v1.1.19
go: downloading github.com/mdlayher/raw v0.1.0
go: downloading go.etcd.io/bbolt v1.3.8
go: downloading github.com/fatih/color v1.14.1
go: downloading github.com/go-openapi/runtime v0.25.0
go: downloading github.com/go-openapi/errors v0.20.3
go: downloading github.com/go-openapi/strfmt v0.21.3
go: downloading github.com/go-openapi/swag v0.22.3
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading golang.org/x/net v0.17.0
go: downloading golang.org/x/sync v0.1.0
go: downloading github.com/opentracing/opentracing-go v1.2.0
go: downloading go.opentelemetry.io/otel v1.12.0
go: downloading go.opentelemetry.io/otel/trace v1.12.0
go: downloading github.com/go-openapi/analysis v0.21.4
go: downloading github.com/go-openapi/loads v0.21.2
go: downloading github.com/go-openapi/spec v0.20.8
go: downloading github.com/go-openapi/validate v0.22.1
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
go: downloading github.com/oklog/ulid v1.3.1
go: downloading go.mongodb.org/mongo-driver v1.11.1
go: downloading github.com/u-root/uio v0.0.0-20221213070652-c3537552635f
go: downloading github.com/go-openapi/jsonpointer v0.19.6
go: downloading github.com/go-logr/logr v1.2.3
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/go-openapi/jsonreference v0.20.2
go: downloading github.com/josharian/native v1.1.0

@gaby
Copy link
Member

gaby commented Feb 19, 2024

@gedw99 Thanks for testing that, I will see when we can do another release 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants