Re: Build Postgres On AIX - Mailing list pgsql-general

From Tom Lane
Subject Re: Build Postgres On AIX
Date
Msg-id 181970.1654010382@sss.pgh.pa.us
Whole thread Raw
In response to Build Postgres On AIX  (Mark Hill <Mark.Hill@sas.com>)
Responses RE: Build Postgres On AIX
List pgsql-general
Mark Hill <Mark.Hill@sas.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



pgsql-general by date:

Previous
From: Mark Hill
Date:
Subject: Build Postgres On AIX
Next
From: Jeff Ross
Date:
Subject: Logically replicated table has no visible rows