Skip to content

Incompatible with Go 1.23, which doesn't allow //go:linkname to internal symbols, including to net package #247

@stefanb

Description

@stefanb

While testing Go 1.23 rc1 in

there was an error:

  go: downloading github.com/tsosunchia/powclient v0.1.5
  # github.com/nxtrace/NTrace-core
  link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket

Go 1.23 no longer allows //go:linkname * net.* link instructioins, see

It is used several times in this module, see:

//go:linkname internetSocket net.internetSocket
func internetSocket(ctx context.Context, net string, laddr, raddr any, sotype, proto int, mode string, ctrlCtxFn func(context.Context, string, string, syscall.RawConn) error) (fd unsafe.Pointer, err error)
//go:linkname newIPConn net.newIPConn
func newIPConn(fd unsafe.Pointer) *net.IPConn

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