Re: Linker errors while creating a PostgreSQL C extension function.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Linker errors while creating a PostgreSQL C extension function.
Дата
Msg-id 30248.1534706191@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Ответы Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: DrakoRod
Дата:
Сообщение: Re: ERROR: cache lookup failed for function 125940
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: cache lookup failed for function 125940