Re: Linker errors while creating a PostgreSQL C extension function.
В списке pgsql-general по дате отправления:
| От | 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.
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера