Re: Build Postgres On AIX

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Hill <Mark(dot)Hill(at)sas(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Build Postgres On AIX
Date: 2022-05-31 15:19:42
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Mark Hill <Mark(dot)Hill(at)sas(dot)com> writes:
> I'm building Postgres 14.2 on AIX. Apparently the arc4random function is not available in the AIX system libraries. The build
> fails when it tries to build postgresql-14.2/contrib/uuid-ossp/uuid-ossp.c because of the use of arc4random in that source
> file.

AFAICS arc4random is only referenced in the "BSD" code paths, so you
must have tried to specify --with-uuid=bsd. It's not too surprising
that that didn't work. As per the docs, your other alternatives are
to use the OSSP library or the e2fsprogs library. Or you could just
not build uuid-ossp; it's fairly vestigial these days, now that we
offer gen_random_uuid() in core.

regards, tom lane

In response to


Browse pgsql-general by date

  From Date Subject
Next Message Nathan Bossart 2022-05-31 15:28:55 Re: Extension pg_trgm, permissions and pg_dump order
Previous Message Mark Hill 2022-05-31 14:53:01 Build Postgres On AIX