pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: golang "Cannot write-enable text segment" issue (net/syncthing)



On Tue, 3 Mar 2026 at 17:11, Tobias Nygren <tnn%netbsd.org@localhost> wrote:
>
> On Mon, 2 Mar 2026 19:38:52 +0000 (UTC)
> Benny Siegert <bsiegert%netbsd.org@localhost> wrote:
>
> > - make sure all the C code is compiled with -fPIC, maybe via wrappers?
>
> Ironically it turns out -fPIC *is* the problem. It is added by pkgsrc
> through wrappers by default.
> MKPIE_SUPPORTED=no in the package Makefile solves the issue for me.

Aha - wonderful! With that syncthing 2.0.14 starts just fine.

(It then chokes with the same "panic: crypto/tls bug: where's my
session ticket?" as 1.x when built under go1.26, but locking it to
go1.25 avoids that)

It takes.... a while to migrate to sqlite, and amusingly shows a "UI"
which is just the migration log during the process (I rather like
that).

Once migrated it seems to play nicely with syncthing 1.x systems. Will
leave it running a while before proposing we update net/syncthing -
maybe after the branch.

Thanks for the fix!

David


Home | Main Index | Thread Index | Old Index