Re: Linker errors while creating a PostgreSQL C extension function. - Mailing list pgsql-general

From Tom Lane
Subject Re: Linker errors while creating a PostgreSQL C extension function.
Date
Msg-id 30248.1534706191@sss.pgh.pa.us
Whole thread Raw
In response to Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Responses Re: Linker errors while creating a PostgreSQL C extension function.
List pgsql-general
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


pgsql-general by date:

Previous
From: DrakoRod
Date:
Subject: Re: ERROR: cache lookup failed for function 125940
Next
From: Tom Lane
Date:
Subject: Re: ERROR: cache lookup failed for function 125940