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 1jVARr-00036B-Ld for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2020 08:58:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVARq-0003X5-59 for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2020 08:58:06 +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 1jVARp-0003UV-T4 for pgsql-general@lists.postgresql.org; Sun, 03 May 2020 08:58:05 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVARj-0005GT-9w for pgsql-general@postgresql.org; Sun, 03 May 2020 08:58:04 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 426E41D18B129 for ; Sun, 3 May 2020 01:57:58 -0700 (MST) Date: Sun, 3 May 2020 01:57:58 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1588496278270-0.post@n3.nabble.com> In-Reply-To: <59882a95-e528-0845-e6e3-ad00356c1065@aklaver.com> References: <1588448354769-0.post@n3.nabble.com> <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> <1588449802471-0.post@n3.nabble.com> <1588450167090-0.post@n3.nabble.com> <9443e9f9-1eec-d4f5-eb19-fb6d1da9c587@aklaver.com> <1588452776591-0.post@n3.nabble.com> <1610.1588454290@sss.pgh.pa.us> <1588460637089-0.post@n3.nabble.com> <59882a95-e528-0845-e6e3-ad00356c1065@aklaver.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 4:03 PM, TalGloz wrote: > > Did you? > > In Makefile below I see: > > #PG_LDFLAGS= -L$(INCLUDE_SEAL_LIB) -lseal -pthread > # Seal linker flags > SEAL_LDFLAGS = -L$(INCLUDE_SEAL_LIB) -lseal -pthread > > -- > Adrian Klaver > adrian.klaver@ It actually didn't change a thing but since they are the same I've removed the "SEAL_LDFLAGS" and used "PG_LDFLAGS" instead. The maigor breakthrough was changing "CXXFLAGS" to "PG_CXXFLAGS" this has removed the error: seal_diff_cpp.cpp:2:10: fatal error: postgres.h: No such file or directory 2 | #include | ^~~~~~~~~~~~ All the Makefile steps and their outputs get generated as should. My only concern is regarding the last part below that comes after "seal_mean_cxx_v2.so" was generated and copied to "/usr/pgsql-12/lib" and generates all the errors regarding the seal library I've listed in previous posts. I don't know what triggers it in my Makefile and it not supposed to be executed. /usr/lib64/ccache/clang -xc++ -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/us /include -flto=thin -emit-llvm -c -o seal_mean_cxx_v2.bc seal_mean_cxx_v2.cpp Maybe it is being triggered by the "pgxs.mk" because as of Postgres 12 it has "with_llvm" parts e.g.: ifeq ($(with_llvm), yes) all: $(addsuffix .bc, $(MODULES)) $(patsubst %.o,%.bc, $(OBJS)) endif -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html