Index | Thread | Search

From:
Atanas Vladimirov <vlado@bsdbg.net>
Subject:
Re: [UPDATE] sysutils/telegraf 1.37.0 -> 1.38.3
To:
David Leadbeater <dgl@dgl.cx>
Cc:
Ports <ports@openbsd.org>
Date:
Sat, 02 May 2026 22:55:24 +0300

Download raw body.

Thread
On 2026-05-01 07:55, David Leadbeater wrote:
> 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

Thanks, Lucas, David!

David, I might try to send a PR with your proposal to gosnowflake during 
next week.
And the time will show what will happen .... :)
Will keep you posted of that.

Best wishes,
Atanas.