pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: TalGloz <glozmantal@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Date: Sun, 19 Aug 2018 15:16:31 -0400
Message-ID: <30248.1534706191@sss.pgh.pa.us> (raw)
In-Reply-To: <1534704516779-0.post@n3.nabble.com>
References: <1534676183995-0.post@n3.nabble.com>
	<CAAfz9KOKj2rqsd6fBeqEcvMCMNMvcxK7S7AgF+rtmTiP9z27iQ@mail.gmail.com>
	<1534680422044-0.post@n3.nabble.com>
	<2455c526-58ab-4f2b-a9c0-f2b2890ca365@manitou-mail.org>
	<1534704516779-0.post@n3.nabble.com>

TalGloz <glozmantal@gmail.com> writes:
> Thanks, that did the trick. But now I'm getting this
> /usr/bin/ld: /usr/lib64/libseal.a(bigpoly.cpp.o): relocation R_X86_64_32
> against `.rodata.str1.1' can not be used when making a shared object;
> recompile with -fPIC

Ugh, I was wondering if that was really going to work or not.  Your copy
of libseal.a has been built without relocation capability, so it can't
be included in a .so library.

In principle, if you have the source code for libseal, you could recompile
it with -fpic or -fPIC and continue to link against the .a form of the
library.  But it might be better to turn it into a .so in its own right.

			regards, tom lane




view thread (21+ messages)  latest in thread

Message-ID: <30248.1534706191@sss.pgh.pa.us>
Permalink:  ../30248.1534706191@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30248.1534706191@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, glozmantal@gmail.com
  Subject: Re: Linker errors while creating a PostgreSQL C extension function.
  In-Reply-To: <30248.1534706191@sss.pgh.pa.us>
  References: <1534676183995-0.post@n3.nabble.com> <CAAfz9KOKj2rqsd6fBeqEcvMCMNMvcxK7S7AgF+rtmTiP9z27iQ@mail.gmail.com> <1534680422044-0.post@n3.nabble.com> <2455c526-58ab-4f2b-a9c0-f2b2890ca365@manitou-mail.org> <1534704516779-0.post@n3.nabble.com> <30248.1534706191@sss.pgh.pa.us>

* 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