Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

"Yury V. Zaytsev" <[email protected]> Thu, 1 Aug 2024 07:45:52 +0200
Newsgroups gmane.comp.sysutils.autoconf.general
Message-ID <[email protected]>
Hi Perry,

> On 1. Aug 2024, at 00:39, Perry Hutchison <[email protected]> wrote:
> 
> One could, at build time, include code to do something like (untested):
> 
>  if (strcmp(getenv("XPG_SUS_ENV", "ON")) != 0)
>  {
>    setenv("XPG_SUS_ENV", "ON", 1);
>  }
> 
> (and yes, if AIX has already tested XPG_SUS_ENV before this gets
> control, it might also be necessary for the program to re-exec
> itself).

Well, apparently HotSpot people tried something like that and they couldn’t get it to work - but maybe they didn’t re-exec hard enough ;-) Anyways, -D_OMG_SPEC1170 at compile time would have been nicer in my opinion.

All the best,
Yury