Index | Thread | Search

From:
David Leadbeater <dgl@dgl.cx>
Subject:
Re: [UPDATE] sysutils/telegraf 1.37.0 -> 1.38.3
To:
Atanas Vladimirov <vlado@bsdbg.net>
Cc:
Ports <ports@openbsd.org>
Date:
Fri, 1 May 2026 14:55:12 +1000

Download raw body.

Thread
On Thu, Apr 30, 2026 at 11:01:33PM +0300, Atanas Vladimirov wrote:
[...]
> I found it was because gosnowflake >= 1.19.x enables minicore code paths that
> add #cgo LDFLAGS: -ldl, but OpenBSD has no separate libdl.
> The solution was to disabled the minicore.

Disabling it seems fine here, as the code later is looking for Linux
specific libc kinds, so isn't going to do anything useful. However for
future reference making dlopen work cross platform in Go is as simple as
something like:

#cgo !openbsd LDFLAGS: -ldl