pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Compiling C Extension Functions against PostgreSQL 12
Date: Sat, 2 May 2020 14:51:36 -0700
Message-ID: <1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com> (raw)
In-Reply-To: <1588455846755-0.post@n3.nabble.com>
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>
	<ec76736a-7842-d1ed-13a9-82789ed08017@aklaver.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>

On 5/2/20 2:44 PM, TalGloz wrote:
> Adrian Klaver-4 wrote
>> On 5/2/20 2:18 PM, Tom Lane wrote:
>>> TalGloz &lt;
> 

> 
>> 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<std::shared_mutex>;
>                                              ~~~~~^
> /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





view thread (20+ messages)  latest in thread

Message-ID: <1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com>
Permalink:  ../1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com/
Also on:    postgresql.org/message-id/1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, glozmantal@gmail.com
  Subject: Re: Compiling C Extension Functions against PostgreSQL 12
  In-Reply-To: <1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com>
  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> <ec76736a-7842-d1ed-13a9-82789ed08017@aklaver.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> <1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox