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 Mon, 2 Mar 2026 at 19:38, Benny Siegert <bsiegert%netbsd.org@localhost> wrote:
>
> On Mon, 2 Mar 2026, David Brownlee wrote:
>
> > Would anyone have any thoughts on how to debug this?
> >
> > Have pushed a package which easily demonstrates this to
> > pkgsrc/wip/syncthing - you don't even need to try to do anything
> > useful to trigger the issue - just "syncthing" after build is enough
>
> I have not looked, but two things you could try are:
>
> - set GOFLAGS=-buildmode=pie
>
> - make sure all the C code is compiled with -fPIC, maybe via wrappers?
"GOFLAGS+=-buildmode=pie" did not seem to help. I tried a quick brute
force test of also adding "CFLAGS+=-fPIC" and "LDFLAGS+=-pie" (which
probably gives a clear idea of how vague my understanding is :), which
also did not help :(
Thanks
David
Home |
Main Index |
Thread Index |
Old Index