Subject: Errors building NNCP with Go 1.22

From: John Goerzen <[email-masked]>
Date: Mon, 22 Jul 2024 23:51:31 -0500

Hi Sergey,

I received an email earlier this week about problems building NNCP with
Golang 1.22:

vendor/gvisor.dev/gvisor/pkg/sync/gate_unsafe.go:114:3: undefined: goready
vendor/gvisor.dev/gvisor/pkg/sync/gate_unsafe.go:144:2: undefined: gopark
vendor/gvisor.dev/gvisor/pkg/sync/rwmutex_unsafe.go:76:3: undefined: semacquire
vendor/gvisor.dev/gvisor/pkg/sync/rwmutex_unsafe.go:102:4: undefined: semrelease
vendor/gvisor.dev/gvisor/pkg/sync/rwmutex_unsafe.go:152:3: undefined: semacquire
vendor/gvisor.dev/gvisor/pkg/sync/rwmutex_unsafe.go:179:3: undefined: semrelease
vendor/gvisor.dev/gvisor/pkg/sync/rwmutex_unsafe.go:207:3: undefined: semrelease
vendor/gvisor.dev/gvisor/pkg/sync/seqcount.go:87:6: undefined: canSpin
vendor/gvisor.dev/gvisor/pkg/sync/seqcount.go:89:4: undefined: doSpin

I can confirm that myself.  Maybe the fix would be as easy as updating
the dependencies?

By the way, still going strong with NNCP over here.  The quux.org public
node is slowly adding new peers also.  Thanks for what you do for NNCP!

- John