pkgsrc-Users archive

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

Re: text relocations... graphics/ocaml-cairo won't build on 2026Q2



Brad Spencer <brad%anduin.eldar.org@localhost> writes:

> /lhome/WORK/graphics/ocaml-cairo/work/ocaml-cairo-0.6.5/_build/default/src/../config/discover.exe: Cannot write-enable text segment: Permission denied

I see this too.

Ideas:

  `sysctl -w security.pax.mprotect.enabled=0` lets the package build.
  Not recommending that, but a data point.

  Almost certainly, some paxctl invocations will help (+m probably),
  patched into the build after the program is compiled and before it's
  used in a way that triggers this error.  Basically turning off
  mprotect for just this program.

  Probably there's a hard path to actually fixing this correctly.  It's
  a lonely path; ~nobody uses i386 and ~nobody uses ocaml, with the
  intersection of those and NetBSD being perhaps just you.   I know you
  know this already :-)

  Note that NetBSD/amd64 does not have this problem.


Home | Main Index | Thread Index | Old Index