Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXYP2-0000Mn-1J for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 20:15:44 +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 1eXYP0-0006MI-RB for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 20:15:42 +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 1eXYP0-0006M7-Ga for pgsql-general@lists.postgresql.org; Fri, 05 Jan 2018 20:15:42 +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 1eXYOs-0001RO-RS for pgsql-general@postgresql.org; Fri, 05 Jan 2018 20:15:41 +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 w05KFULY011376; Fri, 5 Jan 2018 15:15:30 -0500 From: Tom Lane To: Travis Allison cc: Adrian Klaver , pgsql-general@postgresql.org Subject: Re: What generates pg_config.h? In-reply-to: References: <59902831-ba5d-6fb9-8db8-a074c08e8106@aklaver.com> Comments: In-reply-to Travis Allison message dated "Fri, 05 Jan 2018 11:57:18 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11374.1515183330.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 05 Jan 2018 15:15:30 -0500 Message-ID: <11375.1515183330@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Travis Allison writes: > Distro and version: Ubuntu 16.04 LTS. > If memory serves, I installed 9.5 using synaptic and 9.6 using apt-get, > where I followed the instructions from this site: > https://www.postgresql.org/download/linux/ubuntu/ > I also have an anaconda installation of postgresql, but that is a versio= n > less than 9.6. Well, this bit: >>> /usr/include/postgresql/pg_config.h:733:0: warning: "PACKAGE_VERSION" = redefined >>> #define PACKAGE_VERSION "10.0" is proof positive that you've got at least some pieces of a v10 installation as well. The location of the file (i.e., not under a version-named subdirectory, like the others) suggests that that installation was not aware of the conventions Ubuntu's packagers like to use to separate different PG versions from each other. And the lack of any relevant entry in the dpkg output suggests it didn't come from any of your normal packages, either. I'm wondering about an ill-advised manual installation from raw PG source code, for instance. Did you check whether this file is associated with any dpkg-installed package? (Not being an Ubuntu user, I don't know how to do that, but I'm sure they have an equivalent of "rpm -qf".) regards, tom lane