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 1jUyS3-0001P0-Jj for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 20:09:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUyS2-0008B6-Es for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 20:09:30 +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 1jUyS2-0008Az-7X for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 20:09:30 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUyS0-000754-1q for pgsql-general@postgresql.org; Sat, 02 May 2020 20:09:29 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 1932C1D140FD4 for ; Sat, 2 May 2020 13:09:27 -0700 (MST) Date: Sat, 2 May 2020 13:09:27 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1588450167090-0.post@n3.nabble.com> In-Reply-To: References: <1588447687198-0.post@n3.nabble.com> <4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com> <1588448354769-0.post@n3.nabble.com> <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> <1588449802471-0.post@n3.nabble.com> Subject: Re: Compiling C Extension Functions against PostgreSQL 12 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver-4 wrote > On 5/2/20 1:03 PM, TalGloz wrote: >> Adrian Klaver-4 wrote >>> 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@ >> >> 1) Yes I did. >> 2) Yes I did, though no .o .bc or .so files get created because of the >> error >> when using PostgreSQL 12 settings. > > But they where created when you did the make against Postgres 10, correct? > So where those cleaned up? >> >> >> >> -- >> Sent from: >> https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html >> >> > > > -- > Adrian Klaver > adrian.klaver@ Yes, they were created when using make against Postgres 10 and I clean them every time when I try a different version of Postgres. TalGloz -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html