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 1jV02z-0005Kf-Dx for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 21:51:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jV02y-000836-1u for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 21:51:44 +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 1jV02w-00082J-6L for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 21:51:43 +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 1jV02u-00089f-1F for pgsql-general@postgresql.org; Sat, 02 May 2020 21:51:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B462180C; Sat, 2 May 2020 17:51:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 02 May 2020 17:51:38 -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=7 OBtMmikhtFUutUL6SdBCxryDFefSlsDhypD4W16LD4=; b=qR9dQtgEYZnn3GAix sLyWaTjYP9XmdrZp2qYTvax7It2sXLV8AeHVvackexSPrYwcDoQOb46sUF/2MJbf RSsm4ZOLIB+rMHmQxp3kNSh4y0+13b81aTKzOKfW9dsp3FJH+yO5+c5NFlsiPCTz YX2M1HR/8iLuG4e1yQZjNDEYTSqZq9+SZBYluRe7zD8CSoayu/5slYn8H+v05n97 W+E4o6JJwLo6uZ7LYntnPPMw0TrIjUzxV2sEzZaI60MLZapG3cSYI6VXwoqlcC0K /eK6Xv5u7gNqLLLBgjfHC8z8RY+oGq1ZTEqpandbTVwXTIBiVF0SqCh7yMWLH6AD xL1Tw== 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=7OBtMmikhtFUutUL6SdBCxryDFefSlsDhypD4W16L D4=; b=n0neZI/MavYM5GOJGQwHiIvBccoEb2Ld40I1P1G52zuotCJ81teeB/5fF 2p/SvKQMSM9adGfuMGpmTj6ejN7y5k9ZDM/1eNOitJXF+j+Mi3HK97bMaf1e5l5g 4teodkBjIIacW0hON1vU/VZ0l4s/8p+F84/17rg+stUf1gP+tGe3CiMaQwWsmHQg xmcMA9bjL3CwRl+o/1zhyQteUOLr3BYivJQvAIG5oN/nTnqbWYSdeJCPNy3hbCun m/17Z+XnjCQarDZskyo0SZx8R7AtZ5keMMy9Bjb6MwVB5r8al6MT2LKU8eh0BuH5 zDPLQBk8MbKygJLRwEZPNmTPUa2Sw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjedtucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfe ejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepteejvdetffejuedvle eifeefheeutdfhgfdvhffhhfekvdduveegvdejudefgfevnecukfhppeejhedrudejvddr hedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm 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 A82E53065F98; Sat, 2 May 2020 17:51:37 -0400 (EDT) Subject: Re: Compiling C Extension Functions against PostgreSQL 12 To: TalGloz , pgsql-general@postgresql.org References: <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> <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> <173180ca-67f8-b925-fe5c-7c08de5bb9c1@aklaver.com> <1588455846755-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com> Date: Sat, 2 May 2020 14:51:36 -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: <1588455846755-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 2:44 PM, TalGloz wrote: > Adrian Klaver-4 wrote >> On 5/2/20 2:18 PM, Tom Lane wrote: >>> TalGloz < > > >> adrian.klaver@ > > The "include $(PGXS)" is defined in the Makefile. After changig the CXXFLAGS Hmm, time to clean my glasses. Have no idea what the below means. > to PG_CXXFLAGS I get: > > *g++ -std=c++17 -fPIC -Wall -Werror -g -O0 -pthread > -I/usr/pgsql-12/include/server -I/usr/local/include > -I/usr/local/include/cppcodec -o seal_diff_cpp.o -c seal_diff_cpp.cpp > g++ -shared -o seal_diff_cpp.so seal_diff_cpp.o -L/usr/pgsql-12/lib > -L/usr/lib64 -L/usr/lib64 -Wl,--as-needed > -Wl,-rpath,'/usr/pgsql-12/lib',--enable-new-dtags -L/usr/local/lib -lseal > -pthread > /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/usr/include -flto=thin -emit-llvm -c -o seal_diff_cpp.bc > seal_diff_cpp.cpp* > In file included from seal_diff_cpp.cpp:23: > In file included from /usr/local/include/seal/seal.h:3: > In file included from /usr/local/include/seal/bigpoly.h:9: > In file included from /usr/local/include/seal/biguint.h:6: > In file included from /usr/local/include/seal/memorypoolhandle.h:6: > In file included from /usr/local/include/seal/util/mempool.h:12: > /usr/local/include/seal/util/locks.h:12:50: error: no template named > 'shared_mutex' in namespace 'std'; did you mean 'shared_ptr'? > using ReaderLock = std::shared_lock; > ~~~~~^ > /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/shared_ptr.h:103:11: > note: 'shared_ptr' declared here > class shared_ptr : public __shared_ptr<_Tp> > ^ -- Adrian Klaver adrian.klaver@aklaver.com