[GH-ISSUE #365] Build fails with "invalid reference to syscall.recvmsg" on Go 1.23 #206

Open
opened 2026-03-13 16:09:00 +03:00 by kerem · 7 comments
Owner

Originally created by @svoop on GitHub (Oct 1, 2024).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/365

I'm trying to rebuild acme-dns on a Gentoo box after upping to Go 1.23 and it fails with:

link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg

Apparently, access to internal symbols has changed with Go 1.23, at least that's what's causing this error on other programs.

I'm not familiar with Go, so that's pretty much the end of the line for me. Any ideas how to rewrite the offending code not to use internal symbols?

Originally created by @svoop on GitHub (Oct 1, 2024). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/365 I'm trying to rebuild acme-dns on a Gentoo box after upping to Go 1.23 and it fails with: ``` link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg ``` Apparently, access to internal symbols has changed with Go 1.23, at least that's what's [causing this error on other programs](https://github.com/chipmk/docker-mac-net-connect/issues/39#issuecomment-2299898790). I'm not familiar with Go, so that's pretty much the end of the line for me. Any ideas how to rewrite the offending code not to use internal symbols?
Author
Owner

@svoop commented on GitHub (Nov 25, 2024):

@joohoi The trend for now is to pin Go to 1.22 as a workaround. Since I don't know Go, could you drop a line as to how likely it is to make acme-dns compatible with newer versions of Go at all? From the frequency of commits, you might have bigger fish to fry which I'd totally understand!

In my particular case, I could switch to a ACME plugin which directly updates recs on my DNS provider, but I'd have to write an OS package (Gentoo ebuild that is) for this plugin first. I'm more inclined to stay with acme-dns, but if you intend to sunset acme-dns e.g. because of the workload to keep up with newer versions of Go, I'd start working on the package.

Thanks a bunch for a small update on where you intend to go with acme-dns. And big thanks for all the work you've already done... from one FOSS author to another! 👍

<!-- gh-comment-id:2498924560 --> @svoop commented on GitHub (Nov 25, 2024): @joohoi The trend for now is to pin Go to 1.22 as a workaround. Since I don't know Go, could you drop a line as to how likely it is to make acme-dns compatible with newer versions of Go at all? From the frequency of commits, you might have bigger fish to fry which I'd totally understand! In my particular case, I could switch to a ACME plugin which directly updates recs on my DNS provider, but I'd have to write an OS package (Gentoo ebuild that is) for this plugin first. I'm more inclined to stay with acme-dns, but if you intend to sunset acme-dns e.g. because of the workload to keep up with newer versions of Go, I'd start working on the package. Thanks a bunch for a small update on where you intend to go with acme-dns. And big thanks for all the work you've already done... from one FOSS author to another! 👍
Author
Owner

@svoop commented on GitHub (Dec 14, 2024):

@joohoi The missing compatibility with Go 1.23 starts to produce trouble with other software built with Go. Could you give a hint as to whether an update for Go 1.23 is realistic or not so folks like me can work around or move on? I'm a big fan of acme-dns, really like the way it solves the problems that come with DNS proof with Cerbot.

I see that you didn't commit much recently which is totally okay of course. But please drop a word here on whether you plan to abandon acme-dns... which would be sad but totally okay as well. Just, we have to know.

Thanks a bunch!!

<!-- gh-comment-id:2543083675 --> @svoop commented on GitHub (Dec 14, 2024): @joohoi The missing compatibility with Go 1.23 starts to produce trouble with other software built with Go. Could you give a hint as to whether an update for Go 1.23 is realistic or not so folks like me can work around or move on? I'm a big fan of acme-dns, really like the way it solves the problems that come with DNS proof with Cerbot. I see that you didn't commit much recently which is totally okay of course. But please drop a word here on whether you plan to abandon acme-dns... which would be sad but totally okay as well. Just, we have to know. Thanks a bunch!!
Author
Owner

@joohoi commented on GitHub (Dec 14, 2024):

Hi @svoop

I made the required changes and pushed a PR for Go 1.23 support #368

While it mentions the minimum required version of Go being 1.22, I tested it out with 1.23 as well. With the newest versions of all dependencies, 1.22 is the minimum required version though.

<!-- gh-comment-id:2543337191 --> @joohoi commented on GitHub (Dec 14, 2024): Hi @svoop I made the required changes and pushed a PR for Go 1.23 support #368 While it mentions the minimum required version of Go being 1.22, I tested it out with 1.23 as well. With the newest versions of all dependencies, 1.22 is the minimum required version though.
Author
Owner

@thedix commented on GitHub (Dec 15, 2024):

@joohoi Thanks for your work!
Are there any plans to merge it to master?

<!-- gh-comment-id:2543410454 --> @thedix commented on GitHub (Dec 15, 2024): @joohoi Thanks for your work! Are there any plans to merge it to master?
Author
Owner

@joohoi commented on GitHub (Dec 15, 2024):

Yeah, and to bump version to be sure. There seems to be an issue with the
linter, so I’ll have to fix that first though.

On Sun 15. Dec 2024 at 4.06, Dmitry Kononov @.***>
wrote:

@joohoi https://github.com/joohoi Thanks for your work!
Are there any plans to merge it to master?


Reply to this email directly, view it on GitHub
https://github.com/joohoi/acme-dns/issues/365#issuecomment-2543410454,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABH6DJKNWFWB2DYWTY4E5M32FTPZTAVCNFSM6AAAAABPGPDZ6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGQYTANBVGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

<!-- gh-comment-id:2543726655 --> @joohoi commented on GitHub (Dec 15, 2024): Yeah, and to bump version to be sure. There seems to be an issue with the linter, so I’ll have to fix that first though. On Sun 15. Dec 2024 at 4.06, Dmitry Kononov ***@***.***> wrote: > @joohoi <https://github.com/joohoi> Thanks for your work! > Are there any plans to merge it to master? > > — > Reply to this email directly, view it on GitHub > <https://github.com/joohoi/acme-dns/issues/365#issuecomment-2543410454>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABH6DJKNWFWB2DYWTY4E5M32FTPZTAVCNFSM6AAAAABPGPDZ6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGQYTANBVGQ> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@svoop commented on GitHub (Dec 15, 2024):

@joohoi Great, thanks so much!!

<!-- gh-comment-id:2543748973 --> @svoop commented on GitHub (Dec 15, 2024): @joohoi Great, thanks so much!!
Author
Owner

@hemna commented on GitHub (Aug 11, 2025):

go: downloading github.com/MickaelBergem/dnsstresss v0.0.0-20231025101534-00dcd6dafb95
go: downloading github.com/logrusorgru/aurora v2.0.3+incompatible
go: downloading github.com/miekg/dns v1.1.31
go: downloading golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
go: downloading golang.org/x/net v0.0.0-20190923162816-aa69164e4478
go: downloading golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe
# github.com/MickaelBergem/dnsstresss
link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg

└─> go version
go version go1.24.6 darwin/arm64
<!-- gh-comment-id:3176723661 --> @hemna commented on GitHub (Aug 11, 2025): ```└─> go install github.com/MickaelBergem/dnsstresss@latest go: downloading github.com/MickaelBergem/dnsstresss v0.0.0-20231025101534-00dcd6dafb95 go: downloading github.com/logrusorgru/aurora v2.0.3+incompatible go: downloading github.com/miekg/dns v1.1.31 go: downloading golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 go: downloading golang.org/x/net v0.0.0-20190923162816-aa69164e4478 go: downloading golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe # github.com/MickaelBergem/dnsstresss link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg └─> go version go version go1.24.6 darwin/arm64 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#206
No description provided.