[HACKERS] Linking libpq statically to libssl

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема [HACKERS] Linking libpq statically to libssl
Дата
Msg-id CA+mi_8YjGC9DvHqMhYufcOdXEzJcNUoTYA-O_vuEL5u6o0yFUA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] Linking libpq statically to libssl  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] Linking libpq statically to libssl  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hello,

I have a problem building binary packages for psycopg2. Binary
packages ship with their own copies of libpq and libssl; however if
another python package links to libssl the library will be imported
twice with conflicting symbols, likely resulting in a segfault (see
https://github.com/psycopg/psycopg2/issues/543). This happens e.g. if
a python script both connects to postgres and opens an https resource.

A solution to work around the problem could be to change libssl
symbols names, in the binaries or in the source code
(https://github.com/psycopg/psycopg2-wheels/issues/7). But maybe a
simpler workaround could be just to build libpq linking to libssl
statically. Is this possible?

...and other libs too I guess, because the problem was found on libssl
but conflicts with other libs is possible too, ldap comes to mind...

Any help to solve the problem would be appreciated. Thank you very much.

-- Daniele


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: [HACKERS] Re: Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] MERGE SQL Statement for PG11