Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXbaz-0008Hv-Et for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 23:40:17 +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 1eXbay-0000DO-Ca for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 23:40:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXbax-0000Bz-Ml for pgsql-general@lists.postgresql.org; Fri, 05 Jan 2018 23:40:16 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXbat-0006uX-1v for pgsql-general@postgresql.org; Fri, 05 Jan 2018 23:40:15 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3DFB321F46; Fri, 5 Jan 2018 18:40:08 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 05 Jan 2018 18:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=KWzagXtrXq6BMBTvuI7ks5vhTMy9N 9NvWPO54Z4LzyY=; b=E3e40rn54xPAHrt+JwSNYz/S+JrOijV1rCOV+DEBUPTgR v/tKz5SGcMw/XrXGxIO7+zfz7f83rZY5YzHhsqivsOEvSDJVIkSLn6VtSsJ4lY1y 9tUswfajlXpZMcICs6UkAdR5yOnOn4j52hW/8j7PXaPLg83tzowMY60qvZD0D/M9 p3A0qkjbfyySrbgdr8zJfKr/t1XI/zbahx7+lHKjWXOAZrmaztZsIWwHPyCb3aCQ nWv7mrJSjEpsGVto6So6FLVK+Q0amytUnTdRJCqwBk9F5PRol9qjqEGxAHe6AX4p a8sawlgAYS+1LhcAYf+2rjhApVCPc3DMjtEAB6V5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=KWzagX trXq6BMBTvuI7ks5vhTMy9N9NvWPO54Z4LzyY=; b=mAZHKHYS5Uif1EaDkTHxwA 72oTZrJsQEMMdaTUK7Y0rl1u112x0HSg8xwj6XJQlxvGOXgCHTlHQmnZlbrKrvUn 7PQSjIPuAOAl36eoQKBxZzRzKenYyE3HVLWLUgBAapT8J+d4sePN+NR4HYpnV8sa HEuy0WXp2x2gePGa5UDcvEHP44gOG3noXzl41dLgnJZ3V5POypIyJgqCjC1rAl8x Mpnz9GYGQkHVZBqICK54+6xUJjZKYZLx2T36C+g/s3oIo2ueYOCJVpVAtppLr5Zs u5vvx5RGwweeNQhxJ46ckWgICmwub1lf9KLzwBcxzzSg8LQ7ilVc3UlA+vfXVMgQ == X-ME-Sender: Received: from [192.168.1.3] (unknown [67.40.177.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 4F0E77E12A; Fri, 5 Jan 2018 18:40:07 -0500 (EST) Subject: Re: What generates pg_config.h? To: Tom Lane , Travis Allison Cc: Alvaro Herrera , floriparob@gmail.com, pgsql-general@postgresql.org, Christoph Berg References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us> <22433.1515194991@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com> Date: Fri, 5 Jan 2018 15:40:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <22433.1515194991@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 01/05/2018 03:29 PM, Tom Lane wrote: > Travis Allison writes: >> Tom, where's the -l switch exactly? What command is it attached to? (I'm >> not sure what to look for.) > > Look into the extension's Makefile for something roughly along the lines > of Assuming the OP is talking about this: https://github.com/timescale/timescaledb I believe there is an intervening step: # Bootstrap the build system ./bootstrap If I am following correctly the -I are in: CMakeLists.txt # Get PostgreSQL configuration from pg_config execute_process( COMMAND ${PG_CONFIG} --includedir OUTPUT_VARIABLE PG_INCLUDEDIR OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process( COMMAND ${PG_CONFIG} --includedir-server OUTPUT_VARIABLE PG_INCLUDEDIR_SERVER OUTPUT_STRIP_TRAILING_WHITESPACE) There does seem to be an apt install: http://docs.timescale.com/v0.8/getting-started/installation/linux/installation-apt with the following caveats: " Note: PostgreSQL 9.6 is required for TimescaleDB on Ubuntu distros. Releases with PostgreSQL 10 are coming soon Prerequisites Ubuntu 16.04 or later Build & Install WARNING:If you have another PostgreSQL installation not via apt, this will likely cause problems. If you wish to maintain your current version of PostgreSQL outside of apt, we recommend installing from source. Otherwise please be sure to remove non-apt installations before using this method. " > > CPPFLAGS = -I/usr/include/postgresql > > Very likely there's some amount of macro-ization involved, so it might > look more like > > INCLUDEDIR = /usr/include/postgresql > ... > CPPFLAGS = -I$(INCLUDEDIR) > > Furthermore, given our current theory, there's going to be more than > one -I switch on that line, and you want to get rid of just one. > > regards, tom lane > -- Adrian Klaver adrian.klaver@aklaver.com