From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Hill <Mark.Hill@sas.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Build Postgres On AIX
Date: Tue, 31 May 2022 11:19:42 -0400
Message-ID: <181970.1654010382@sss.pgh.pa.us> (raw)
In-Reply-To: <BN8PR05MB665774158D5EA74781A8266AEEDC9@BN8PR05MB6657.namprd05.prod.outlook.com>
References: <BN8PR05MB665774158D5EA74781A8266AEEDC9@BN8PR05MB6657.namprd05.prod.outlook.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, Mark.Hill@sas.com
Subject: Re: Build Postgres On AIX
In-Reply-To: <181970.1654010382@sss.pgh.pa.us>
References: <BN8PR05MB665774158D5EA74781A8266AEEDC9@BN8PR05MB6657.namprd05.prod.outlook.com> <181970.1654010382@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox