Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXqcX-00067K-Gz for pgsql-general@arkaria.postgresql.org; Sat, 06 Jan 2018 15:42:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXqcV-0000W4-Jz for pgsql-general@arkaria.postgresql.org; Sat, 06 Jan 2018 15:42:51 +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.84_2) (envelope-from ) id 1eXqcV-0000Vq-9Y for pgsql-general@lists.postgresql.org; Sat, 06 Jan 2018 15:42:51 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXqcR-0000mc-My for pgsql-general@postgresql.org; Sat, 06 Jan 2018 15:42:50 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1474:d80:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3zDQll5g2Zz3F5s; Sat, 6 Jan 2018 16:42:43 +0100 (CET) Date: Sat, 6 Jan 2018 16:42:43 +0100 From: Christoph Berg To: Adrian Klaver Cc: Travis Allison , Tom Lane , Alvaro Herrera , floriparob@gmail.com, pgsql-general@postgresql.org Subject: Re: What generates pg_config.h? Message-ID: <20180106154243.GD13939@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Adrian Klaver , Travis Allison , Tom Lane , Alvaro Herrera , floriparob@gmail.com, pgsql-general@postgresql.org References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us> <22433.1515194991@sss.pgh.pa.us> <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com> <28314.1515211514@sss.pgh.pa.us> <67591f85-a910-2e0b-1fdd-9c774eacd65f@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67591f85-a910-2e0b-1fdd-9c774eacd65f@aklaver.com> User-Agent: Mutt/1.9.2 (2017-12-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Adrian Klaver 2018-01-06 <67591f85-a910-2e0b-1fdd-9c774eacd65f@aklaver.com> > The problem you are running into is that the build process is using both the > older(9.6.5) and newer(10.0) pg_config.h at the same time. Fwiw, all issues I've seen so far of that kind could be resolved by putting -I$(pg_config --includedir-server) before -I$(pg_config --includedir) in the Makefile. I don't know of any PG extension existing in the wild that does not work with having both /usr/include/postgresql/$version/server/pg_config.h and /usr/include/postgresql/pg_config.h installed - and we are packaging a lot of extensions for apt.postgresql.org for non-latest majors. Christoph