Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey1Ic-0004y1-Ag for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 20:22:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ey1Ib-00067L-4n for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 20:22:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey1Ia-00067C-Q9 for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 20:22:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey1IY-0000GW-Dr for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 20:22:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2JKMNgR006866; Mon, 19 Mar 2018 16:22:23 -0400 From: Tom Lane To: Terry Phelps cc: Andres Freund , pgsql-hackers@lists.postgresql.org Subject: Re: Compile error while building postgresql 10.3 In-reply-to: References: <13506.1521487746@sss.pgh.pa.us> <28853.1521489010@sss.pgh.pa.us> <20180319195451.vxymrucrnxwpbzw3@alap3.anarazel.de> <5850.1521489681@sss.pgh.pa.us> <6487.1521490512@sss.pgh.pa.us> Comments: In-reply-to Terry Phelps message dated "Mon, 19 Mar 2018 16:19:13 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6864.1521490943.1@sss.pgh.pa.us> Date: Mon, 19 Mar 2018 16:22:23 -0400 Message-ID: <6865.1521490943@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Terry Phelps writes: > I ran configure like this, because it got errors otherwise. OHHHH. I wonder > if CFLAGS caused this. > LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include ./configure That would've been fine, but configure then adds onto what you specified as CFLAGS. > And then I ran gmake like this: > gmake LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include And here you overrode the additions. Just do "gmake" without these overrides. If you look into src/Makefile.global you should see that your initial specifications got into the selected flag variables. regards, tom lane