Skip to content

Build fails with Go 1.23 #1106

@stefanb

Description

@stefanb

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 arguments you 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

  1. Install Go 1.23 rc1 (per instructions)
  2. get the source code
  3. 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:

Please tag a release after this is resolved and tested, preferably before Go 1.23 is released in August.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions