Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw3eu-0005KI-7W for pgsql-general@arkaria.postgresql.org; Tue, 31 May 2022 15:19:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw3es-00026v-Rn for pgsql-general@arkaria.postgresql.org; Tue, 31 May 2022 15:19:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw3es-00026l-HC for pgsql-general@lists.postgresql.org; Tue, 31 May 2022 15:19:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw3eq-0008TO-DA for pgsql-general@lists.postgresql.org; Tue, 31 May 2022 15:19:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24VFJg6P181971; Tue, 31 May 2022 11:19:43 -0400 From: Tom Lane To: Mark Hill cc: "pgsql-general@lists.postgresql.org" Subject: Re: Build Postgres On AIX In-reply-to: References: Comments: In-reply-to Mark Hill message dated "Tue, 31 May 2022 14:53:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <181969.1654010382.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 31 May 2022 11:19:42 -0400 Message-ID: <181970.1654010382@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Hill 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=3Dbsd. 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