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 1jUyEQ-0000u8-OE for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 19:55:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUyEP-0000Nk-8x for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 19:55:25 +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 1jUyEP-0000Nd-12 for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 19:55:25 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUyEI-0006yF-NM for pgsql-general@postgresql.org; Sat, 02 May 2020 19:55:24 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F0544991; Sat, 2 May 2020 15:55:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 02 May 2020 15:55:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=b jdhWcL74PlDw+V+8Fj4043kHvWXrq8gaW2H8wUlcoA=; b=cfwvKMHiAOniUzZZb IN4aKhZKxLfovqTU7CHOQKfq7RifGpFE4SHMZ0S9LjYG1srf/TonpuktsSlYIm+G I8JlUHsW56SZBfqNYE/PDbpdty4cNUPg3pl4csLRIxk/HDekVLP23PVxga2yBvoQ xi5LuZAZVVDbMzSdcYnG2PfFpuacDj0tPOkhiSnxbZiW19lqwGIiR/pHK8cc8WQ2 /3j1zt6+fJTkdmzYuMvHSjzF5bwYjBlSZEtMDj/IsOv8GUkcstO3Zni7Q8LWkoOH TssEfzXgAFN3er+MqzKYVNeuBgt5qZKg+K+OA8P/8kr5G6Qrhunkng7E/q9iVK/P bRBCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=bjdhWcL74PlDw+V+8Fj4043kHvWXrq8gaW2H8wUlc oA=; b=qWe2SEgGq/CmrH5gFtIzLk1jpdDu9uJNxXTEyvwoDoCc36ghA5UbRnlxX FDgwbc4vFmNPmcfkTLKiyCcIutHS/Rr/2PXjxGrA/jYjhJzkZIfp9WUbSYXn0ZOC LWwhuaEBFbTR9dtDs1Ebi7i+4yKQ0upN45d+vHJBFoiWZmUwsN9X+mo9nEF/f6fa MJ7wCHDNg2gR6Ez6W+SsHIhIf9G86VzpxaEK6FwngNpeEPxlaw3CTJZwlNRHILBZ YrVLu6khTnJuv+HcCkFM7+arCczI68wvzH1sfV6eKxZ7TV0FKuwNdiJ6xwj3sX9m Umd9VkaKJ/kcOAfcD9O02XHsEk+9A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepteejvdetff ejuedvleeifeefheeutdfhgfdvhffhhfekvdduveegvdejudefgfevnecukfhppeejhedr udejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id ED3943065FAC; Sat, 2 May 2020 15:55:15 -0400 (EDT) Subject: Re: Compiling C Extension Functions against PostgreSQL 12 To: TalGloz , pgsql-general@postgresql.org References: <1588447687198-0.post@n3.nabble.com> <4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com> <1588448354769-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> Date: Sat, 2 May 2020 12:55:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1588448354769-0.post@n3.nabble.com> 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 5/2/20 12:39 PM, TalGloz wrote: > Adrian Klaver-4 wrote >> On 5/2/20 12:28 PM, TalGloz wrote: >>> I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all >>> my >>> manually created C extension functions against PostrgreSQL 12 before >>> starting the upgrade process. I have this Makefile that compiles >>> perfectly >>> the seal_diff_cpp.cpp C extension function against PostgreSQL 10: >>> > > Yes, I've installed everything PostgreSQL 12 has to offer: > > dnf list installed | grep "postgresql12" > postgresql12.x86_64 12.2-2PGDG.f31 > @pgdg12 > postgresql12-contrib.x86_64 12.2-2PGDG.f31 > @pgdg12 > postgresql12-devel.x86_64 12.2-2PGDG.f31 > @pgdg12 Yeah, I missed part in your OP where said postgres.h was there. So: 1) Did you do both makes in the same directory? 2) If so did you do a make clean between builds? -- Adrian Klaver adrian.klaver@aklaver.com