-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Description of the bug or feature request
Environment
Please provide:
- Bettercap version you are using (
bettercap -version): 2.32.0 - OS version and architecture you are using: Ubuntu Linux/amd64, MacOS/arm64
- Go version if building from sources: 1.23rc1 (works with 1.22)
- Command line
argumentsyou are using:make - Caplet code you are using or the interactive session commands.
- Full debug output while reproducing the issue (
bettercap -debug ...).
Steps to Reproduce
- Install Go 1.23 rc1 (per instructions)
- get the source code
- Try building with Go 1.23 (adjust Makefile to use the new Go binary)
Expected behavior:
Build to succeed.
Actual behavior:
Build fails with
# github.com/bettercap/bettercap
link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg
make: *** [build] Error 1
It seems that in referenced package golang.org/x/net/internal/socket there is a now forbidden //go:linkname reference to syscall.recvmsg.
See related:
- Build attempt go 1.23.0, go@1.22 1.22.6 (new formula) Homebrew/homebrew-core#175310
- Formula: https://github.com/Homebrew/homebrew-core/blob/master/Formula/b/bettercap.rb
- Go 1.23 no longer allows
//go:linkname * runtime.*link instructioins, see - Go 1.23 release notes: https://tip.golang.org/doc/go1.23#linker
- Proposal: cmd/link: lock down future uses of linkname golang/go#67401
Please tag a release after this is resolved and tested, preferably before Go 1.23 is released in August.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels