You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ env GOOS=linux GOARCH=arm GOARM=6 go get
# github.com/google/gopacket/pcap
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:30:22: undefined: pcapErrorNotActivated
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:52:17: undefined: pcapTPtr
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:64:10: undefined: pcapPkthdr
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:102:7: undefined: pcapBpfProgram
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:103:7: undefined: pcapPkthdr
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:261:33: undefined: pcapErrorActivated
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:262:33: undefined: pcapWarningPromisc
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:263:33: undefined: pcapErrorNoSuchDevice
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:264:33: undefined: pcapErrorDenied
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:265:33: undefined: pcapErrorNotUp
/usr/local/go/bin/pkg/mod/github.com/google/gopacket@v1.1.17/pcap/pcap.go:265:33: too many errors
# github.com/google/gousb
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/config.go:40:11: undefined: Milliamperes
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/device.go:83:10: undefined: libusbDevHandle
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/endpoint.go:45:12: undefined: EndpointDirection
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/endpoint.go:49:15: undefined: TransferType
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/endpoint.go:55:14: undefined: IsoSyncType
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/endpoint.go:57:12: undefined: UsageType
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/interface.go:47:8: undefined: Class
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/interface.go:49:11: undefined: Class
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/interface.go:51:11: undefined: Protocol
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/usb.go:130:10: undefined: libusbContext
/usr/local/go/bin/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/usb.go:130:10: too many errors
$ go version
go version go1.14.4 linux/amd64
Those error seems to be connected with bettercap dependencies but I do have e.g libpcap-dev installed(for amd64 not arm) and I'm able to launch the same command successfully without GOARCH defined. Even If I should put those libraries in ARM version I'm not sure how to do this without breaking my host system.
What operating system and processor architecture are you using (go env)?
This is because cgo is disabled when cross compiling. Try with CGO_ENABLED=1 to force cgo, but this will likely fail as it will require a c cross compiler installed on your system.
I'm trying to compile https://github.com/bettercap/bettercap by cloning git repo and running:
Those error seems to be connected with bettercap dependencies but I do have e.g libpcap-dev installed(for amd64 not arm) and I'm able to launch the same command successfully without GOARCH defined. Even If I should put those libraries in ARM version I'm not sure how to do this without breaking my host system.
What operating system and processor architecture are you using (
go env
)?go env
OutputThe text was updated successfully, but these errors were encountered: